:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: #0d1418;
  --ink: #f6fbfc;
  --muted: #a8bac0;
  --soft: #d9e7e9;
  --line: rgba(183, 225, 230, 0.16);
  --cyan: #22d3ee;
  --mint: #68e69d;
  --teal: #2dd4bf;
  --light: #f4faf9;
  --dark: #0d171a;
  --dark-muted: #587077;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(5, 7, 10, 0.95); }
.brand img { width: clamp(154px, 18vw, 218px); }
.desktop-nav { display: flex; justify-content: center; gap: clamp(16px, 2vw, 30px); color: var(--muted); font-size: 14px; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--ink); }
.header-action, .button { border-radius: 8px; }
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.1);
  font-size: 14px;
  font-weight: 850;
}
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--ink); }
.menu-button span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }
.mobile-nav {
  position: fixed;
  z-index: 49;
  top: 80px;
  left: 12px;
  right: 12px;
  display: grid;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 10, 0.97);
}
.mobile-nav a { padding: 12px; color: var(--muted); }

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92svh;
  padding: 118px clamp(18px, 5vw, 72px) 44px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,7,10,0.95) 0%, rgba(5,7,10,0.8) 44%, rgba(5,7,10,0.34) 100%),
    linear-gradient(180deg, rgba(5,7,10,0.18), #05070a 92%),
    url("/assets/hicontrol-bg.png") center / cover;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(180deg, rgba(5,7,10,0), #05070a); }
.hero-copy { width: min(920px, 100%); margin-bottom: clamp(34px, 8vw, 86px); }
.eyebrow, .kicker { margin: 0 0 14px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(58px, 13vw, 136px); line-height: 0.9; letter-spacing: 0; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 5.5vw, 64px); line-height: 1.03; letter-spacing: 0; }
h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.18; }
.lead { width: min(820px, 100%); color: #d9e9ec; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.55; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--line); font-weight: 900; transition: transform .16s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: rgba(45,212,191,.52); background: linear-gradient(135deg, var(--cyan), var(--mint)); color: #031014; }
.button.secondary { background: rgba(255,255,255,.07); color: var(--ink); }
.button.light { border-color: rgba(13,23,26,.14); background: #eaf3f3; color: var(--dark); }
.product-signal {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 22, 0.72);
  backdrop-filter: blur(18px);
}
.product-signal img { width: 86px; border-radius: 8px; }
.product-signal span { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-signal strong { display: block; margin: 4px 0; font-size: 30px; }
.product-signal p { margin: 0; color: var(--muted); }

.section-inner { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.summary, .flow, .modules, .ai, .technology, .portfolio, .screens, .contact { padding: clamp(78px, 9vw, 126px) 0; }
.summary { border-top: 1px solid var(--line); background: #071015; }
.summary-grid, .ai-grid, .tech-grid, .screens-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}
.text-block p, .section-head p, .ai p, .screens p, .contact p { color: var(--muted); font-size: 17px; line-height: 1.78; }
.proof-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.proof-row span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; color: #dcebee; background: rgba(255,255,255,.045); font-size: 13px; font-weight: 800; }

.flow, .modules, .contact { background: var(--light); color: var(--dark); }
.flow .kicker, .modules .kicker, .portfolio .kicker, .contact .kicker { color: #05727b; }
.section-head { width: min(790px, 100%); margin-bottom: 38px; }
.section-head.narrow { width: min(820px, 100%); }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow-grid article { min-height: 260px; padding: 24px; border: 1px solid rgba(6,104,112,.16); border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(8,36,41,.08); }
.flow-grid span { display: inline-flex; margin-bottom: 38px; color: #05727b; font-weight: 900; }
.flow-grid p, .modules .section-head p, .contact p { color: var(--dark-muted); }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.module-grid article { min-height: 142px; padding: 18px; border: 1px solid rgba(6,104,112,.14); border-radius: 8px; background: #fff; }
.module-grid strong { display: block; margin-bottom: 10px; color: #0a171a; }
.module-grid span { color: #5c7076; font-size: 14px; }

.ai { background: linear-gradient(135deg, rgba(34,211,238,.08), transparent 40%, rgba(104,230,157,.08)), #070e13; }
.agent-panel { display: grid; gap: 12px; }
.agent-panel div, .tech-list article, .screen-policy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.agent-panel div { min-height: 126px; padding: 22px; }
.agent-panel span { display: block; margin-bottom: 14px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.agent-panel strong { font-size: 22px; line-height: 1.28; }
.technology { background: #071015; }
.tech-list { display: grid; gap: 12px; }
.tech-list article { padding: 22px; }
.tech-list strong { display: block; margin-bottom: 8px; color: #eafcff; }
.tech-list span { color: var(--muted); }

.portfolio { background: #edf6f5; color: var(--dark); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card { min-height: 310px; padding: 28px; border: 1px solid rgba(6,104,112,.16); border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(8,36,41,.08); }
.product-card.premium { background: #091318; color: var(--ink); border-color: rgba(34,211,238,.22); }
.product-card span { color: #05727b; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.product-card.premium span { color: var(--cyan); }
.product-card p { color: var(--dark-muted); font-size: 17px; }
.product-card.premium p { color: var(--muted); }
.product-card a { display: inline-flex; margin-top: 14px; color: #05727b; font-weight: 900; }
.product-card.premium a { color: var(--cyan); }

.screens { background: #10171a; }
.screens-grid { align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(255,255,255,.035)); }
.screen-policy { padding: 24px; }
.screen-policy strong { display: block; margin-bottom: 16px; font-size: 20px; }
.screen-policy ul { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: var(--soft); }
.contact-grid { align-items: center; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(6,104,112,.16); border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(8,36,41,.08); }
.footer { padding: 34px 0; border-top: 1px solid var(--line); background: #05070a; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 14px; }
.footer-inner img { width: 170px; }

@media (max-width: 1080px) {
  .flow-grid, .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .desktop-nav, .header-action { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-button { display: block; }
  .summary-grid, .ai-grid, .tech-grid, .screens-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { min-height: 94svh; padding-top: 110px; }
  .product-signal { grid-template-columns: 64px 1fr; }
  .product-signal img { width: 64px; }
  .flow-grid, .module-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
