:root {
  color-scheme: dark;
  --bg: #05070d;
  --navy: #081120;
  --panel: #101d31;
  --panel2: #0d2438;
  --text: #ffffff;
  --muted: #b9c5d6;
  --line: rgba(45, 212, 255, .18);
  --blue: #2dd4ff;
  --blue2: #1d75ff;
  --gold: #ffc857;
  --soft: #f7e3a1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: max(20px, calc((100vw - 1240px) / 2));
  background: rgba(5, 7, 13, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--bg);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--blue));
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; direction: ltr; text-align: right; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 10px 13px;
  border-radius: 8px;
  font-weight: 700;
}
.nav-links a:hover { background: rgba(45, 212, 255, .09); color: var(--blue); }
.menu-button { display: none; background: none; border: 0; color: var(--text); font-size: 28px; }
.section { padding: 96px 0; }
.hero {
  padding-top: 154px;
  background: linear-gradient(180deg, var(--bg), var(--navy), var(--bg));
}
.hero-grid, .split {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 28px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 200, 87, .35);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 200, 87, .08);
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.08; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.2; margin-bottom: 12px; }
h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.lead, .section-title p, .card p, .about-box p { color: var(--muted); }
.lead { font-size: 19px; max-width: 760px; }
.actions, .metrics { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.primary { color: var(--bg); background: linear-gradient(135deg, var(--blue2), var(--blue)); }
.secondary { color: var(--text); border: 1px solid rgba(45, 212, 255, .42); background: rgba(255,255,255,.04); }
.btn:hover, .card:hover { transform: translateY(-5px); }
.metrics span { min-width: 136px; color: var(--muted); font-weight: 700; }
.metrics strong { display: block; color: var(--blue); font-size: 28px; }
.console {
  min-height: 430px;
  padding: 22px;
  border: 1px solid rgba(45, 212, 255, .22);
  border-radius: 8px;
  background: rgba(16, 29, 49, .82);
  box-shadow: 0 24px 44px rgba(45, 212, 255, .13);
}
.console-top { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; direction: ltr; }
.console-top i { width: 10px; height: 10px; border-radius: 50%; background: #ff8a8a; }
.console-top i:nth-child(2) { background: #ffe082; }
.console-top i:nth-child(3) { background: #69f0ae; }
.console-top span { margin-left: auto; }
pre {
  direction: ltr;
  white-space: pre-wrap;
  color: var(--blue);
  font: 700 16px/1.9 Consolas, monospace;
  margin: 30px 0;
}
.status-panel {
  margin-top: 34px;
  padding: 16px;
  border: 1px solid rgba(255, 200, 87, .3);
  border-radius: 8px;
  background: rgba(5, 7, 13, .88);
}
.status-panel p { display: flex; gap: 10px; margin: 8px 0; }
.status-panel span { color: var(--blue); }
.status-panel b { margin-right: auto; color: var(--soft); }
.section-title { max-width: 760px; margin-bottom: 42px; }
.section-title i {
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.cards { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease;
}
.card b {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(45, 212, 255, .1);
  font-size: 24px;
}
.project { background: var(--panel2); }
.project small { color: var(--blue); font-weight: 900; }
.band { background: var(--navy); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-grid span, .about-box, .contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 13, .72);
}
.feature-grid span { padding: 18px; font-weight: 900; }
.about-box { padding: 26px; }
.about-box strong { display: block; color: var(--text); font-size: 18px; }
.contact-form { display: grid; gap: 16px; padding: 24px; background: var(--panel); }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(8, 17, 32, .78);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(45, 212, 255, .45); }
.hidden { display: none; }
.form-state { margin: 0; color: var(--soft); }
footer { padding: 34px 0; background: var(--navy); border-top: 1px solid var(--line); }
.footer-grid { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); }
.footer-grid strong { color: var(--text); }
.footer-grid span:nth-child(2) { color: var(--blue); direction: ltr; font-weight: 900; }
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .65s ease forwards; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .14s; }
.reveal:nth-child(4) { animation-delay: .2s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 920px) {
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    inset: 82px 0 auto;
    display: none;
    flex-direction: column;
    padding: 18px 20px;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1240px); }
  .site-header { height: 74px; }
  .hero { padding-top: 120px; }
  .section { padding: 70px 0; }
  .services-grid, .portfolio-grid, .feature-grid { grid-template-columns: 1fr; }
  .console { min-height: auto; }
  .footer-grid { display: grid; }
}
