:root {
  --navy-950: #07182c;
  --navy-900: #0b1f38;
  --navy-850: #102846;
  --navy-800: #153153;
  --panel: #122b4b;
  --panel-2: #0d223c;
  --text: #f6f8fb;
  --muted: #b9c4d3;
  --muted-2: #8190a4;
  --red: #ef4338;
  --red-2: #ff5b50;
  --line: rgba(255,255,255,.11);
  --shadow: 0 30px 80px rgba(0,0,0,.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-850);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.section-pad { padding: 104px 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.scrolled {
  background: rgba(7, 24, 44, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 43px;
  color: var(--red);
}

.brand-copy {
  display: grid;
  line-height: 1;
  letter-spacing: .08em;
}

.brand-copy strong { font-size: 1rem; }
.brand-copy small {
  font-size: .58rem;
  letter-spacing: .34em;
  margin-top: 6px;
  color: #d6deea;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  color: #e8edf4;
  text-decoration: none;
  font-size: .93rem;
  transition: color .2s ease;
}

.site-nav a:hover { color: var(--red-2); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: white;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 820px;
  padding-top: 180px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 36%, rgba(239,67,56,.08), transparent 26%),
    linear-gradient(180deg, #102846 0%, #102846 76%, #0d223c 100%);
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 700px;
  height: 70px;
  transform: translateX(-8%);
  background: radial-gradient(ellipse, rgba(0,0,0,.43), transparent 68%);
  filter: blur(9px);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
}
.hero-glow-a { width: 280px; height: 280px; right: 4%; top: 25%; background: rgba(239,67,56,.07); }
.hero-glow-b { width: 340px; height: 340px; left: -12%; bottom: 0; background: rgba(70,126,194,.08); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: #f4766f;
  margin-bottom: 20px;
}

.hero h1,
.section-heading h2,
.section-copy h2,
.cta-box h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  max-width: 760px;
}

.hero h1 span { color: var(--red-2); }
.hero-lede {
  max-width: 700px;
  margin: 28px 0 0;
  color: #d0d9e6;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
}

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 30px rgba(239,67,56,.2); }
.btn-primary:hover { background: #ff4d42; }
.btn-ghost { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.025); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.btn-light { background: white; color: var(--navy-950); white-space: nowrap; }

.hero-proof {
  display: flex;
  gap: 18px 26px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: #95a7bb;
  font-size: .8rem;
  font-weight: 600;
}
.hero-proof span { position: relative; padding-left: 14px; }
.hero-proof span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  left: 0;
  top: .6em;
}

.hero-visual { position: relative; min-height: 520px; z-index: 2; }
.visual-shell {
  position: relative;
  height: 520px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    #0a1f39;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 28px;
}
.visual-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}
.visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .64rem;
  letter-spacing: .15em;
  color: #8da1b8;
  position: relative;
  z-index: 2;
}
.visual-topline > div { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #64d096; box-shadow: 0 0 0 6px rgba(100,208,150,.09); }
.visual-main-card {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  width: 64%;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(8,24,43,.75);
  border-radius: 20px;
  backdrop-filter: blur(14px);
}
.mini-heading { font-size: .65rem; color: #7f92a8; letter-spacing: .16em; margin-bottom: 14px; }
.workflow-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 14px;
  color: #dce4ef;
}
.workflow-row + .workflow-row { margin-top: 4px; }
.workflow-row.active { background: rgba(239,67,56,.11); border: 1px solid rgba(239,67,56,.22); }
.workflow-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.055); color: #9cb0c7; font-size: .68rem; font-weight: 800;
}
.workflow-row strong { display: block; font-size: .86rem; }
.workflow-row small { display: block; color: #8498ae; font-size: .7rem; margin-top: 2px; }
.visual-metrics {
  position: absolute;
  left: 28px; bottom: 28px;
  z-index: 2;
  display: flex; gap: 10px;
}
.visual-metrics > div {
  min-width: 135px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
}
.visual-metrics small { display: block; color: #70859c; font-size: .63rem; }
.visual-metrics strong { display: block; margin-top: 3px; font-size: .78rem; }

.phone-frame {
  width: 155px;
  height: 318px;
  background: #04070b;
  border: 5px solid #1b2028;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0,0,0,.48);
  padding: 7px;
  position: absolute;
  z-index: 3;
}
.phone-one { right: 95px; top: 82px; transform: rotate(-7deg); }
.phone-two { right: -13px; top: 54px; transform: rotate(6deg); }
.phone-notch { width: 66px; height: 17px; border-radius: 0 0 11px 11px; background: #05070a; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 5; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #173c60 0%, #112b49 44%, #182b25 45%, #203e2e 100%);
  padding: 24px 10px 10px;
}
.phone-screen-alt { background: linear-gradient(180deg, #67a2d2 0%, #9ac3e0 43%, #29482f 44%, #183520 100%); }
.screen-kicker { font-size: .43rem; letter-spacing: .12em; color: rgba(255,255,255,.8); }
.scan-box {
  width: 84px; height: 112px; margin: 44px auto 0; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; position: relative;
}
.scan-box::before, .scan-box::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid white; }
.scan-box::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-box::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.screen-pill { width: max-content; margin: 46px auto 0; padding: 4px 8px; border-radius: 99px; font-size: .44rem; background: rgba(239,67,56,.9); }
.house-shape { position: relative; height: 180px; margin-top: 32px; }
.roof { position: absolute; width: 0; height: 0; border-left: 55px solid transparent; border-right: 55px solid transparent; border-bottom: 66px solid #e7edf2; left: 50%; transform: translateX(-50%); top: 8px; }
.house-body { position: absolute; width: 98px; height: 98px; background: #d7dde2; left: 50%; transform: translateX(-50%); top: 70px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.result-bar { margin: 18px 10px 0; height: 5px; border-radius: 10px; background: rgba(255,255,255,.2); overflow: hidden; }
.result-bar span { display: block; width: 78%; height: 100%; background: var(--red); }

.about { background: #0d223c; }
.split-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 90px; align-items: start; }
.section-label { font-size: .74rem; letter-spacing: .16em; font-weight: 700; color: #6f849c; }
.section-copy h2, .section-heading h2, .cta-box h2 { font-size: clamp(2.15rem, 4vw, 3.8rem); }
.section-copy p { color: #aebccd; font-size: 1.05rem; max-width: 790px; margin: 24px 0 0; }

.capabilities { background: #0a1d34; }
.section-heading { max-width: 800px; margin-bottom: 44px; }
.section-heading p { color: #94a5b9; max-width: 700px; margin-top: 20px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap-card {
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  position: relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(239,67,56,.35); background: rgba(255,255,255,.045); }
.cap-index { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.cap-card h3 { margin: 58px 0 10px; font-size: 1.1rem; }
.cap-card p { color: #92a3b7; font-size: .9rem; margin: 0; }

.solutions { background: #102846; }
.solution-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(135deg, #112d4d 0%, #0b213b 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.solution-content { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.solution-badge { width: max-content; color: #f47d75; font-size: .68rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 26px; }
.solution-brand-row { display: flex; align-items: center; gap: 15px; }
.solution-mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--red); font-weight: 800; letter-spacing: -.04em; }
.solution-brand-row h3 { margin: 0; font-size: 1.55rem; }
.solution-brand-row a { color: #94a9c0; font-size: .84rem; text-decoration: none; }
.solution-summary { color: #aebdce; font-size: 1rem; margin: 26px 0 20px; max-width: 540px; }
.solution-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.solution-tags span { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #bdcad8; font-size: .73rem; padding: 7px 10px; border-radius: 99px; }
.solution-content .btn { align-self: flex-start; }

.solution-preview {
  display: grid;
  place-items: center;
  padding: 46px;
  background:
    radial-gradient(circle at 62% 38%, rgba(239,67,56,.13), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.preview-window {
  width: min(100%, 540px);
  aspect-ratio: 1.3;
  background: #07182c;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,.4);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
}
.preview-toolbar { height: 42px; padding: 0 14px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.preview-toolbar > span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.preview-toolbar small { margin-left: auto; color: #607791; font-size: .48rem; letter-spacing: .14em; }
.preview-canvas { height: calc(100% - 42px); display: grid; grid-template-columns: 30% 70%; }
.preview-sidepanel { padding: 18px 14px; background: rgba(255,255,255,.025); border-right: 1px solid rgba(255,255,255,.06); }
.tiny-line { display: block; width: 55%; height: 6px; border-radius: 4px; background: rgba(255,255,255,.13); margin-bottom: 7px; }
.tiny-line.wide { width: 82%; }
.tiny-card { display: block; height: 48px; border-radius: 8px; background: rgba(255,255,255,.05); margin-top: 12px; border: 1px solid rgba(255,255,255,.04); }
.preview-house { position: relative; overflow: hidden; }
.preview-sky { position: absolute; inset: 0 0 42% 0; background: linear-gradient(180deg, #6da2ce, #b4d0e2); }
.preview-house::after { content: ''; position: absolute; inset: 58% 0 0; background: linear-gradient(180deg, #36583a, #19351f); }
.preview-home-shape { position: absolute; z-index: 2; width: 210px; height: 210px; left: 50%; top: 55%; transform: translate(-50%,-50%); }
.preview-roof { position: absolute; left: 4px; top: 22px; width: 0; height: 0; border-left: 101px solid transparent; border-right: 101px solid transparent; border-bottom: 84px solid #27313d; }
.preview-wall { position: absolute; left: 34px; top: 103px; width: 142px; height: 98px; background: #dce1e5; }
.preview-door { position: absolute; z-index: 3; left: 91px; top: 146px; width: 29px; height: 55px; background: #5c6772; }
.preview-window-one, .preview-window-two { position: absolute; z-index: 3; top: 130px; width: 25px; height: 32px; background: #53667a; border: 3px solid white; }
.preview-window-one { left: 53px; }.preview-window-two { right: 53px; }
.gutter-line { position: absolute; z-index: 4; width: 172px; height: 5px; top: 100px; left: 18px; background: var(--red); border-radius: 99px; box-shadow: 0 0 12px rgba(239,67,56,.45); }
.preview-label { position: absolute; z-index: 4; right: 16px; bottom: 16px; background: rgba(7,24,44,.82); color: white; border: 1px solid rgba(255,255,255,.1); padding: 8px 10px; border-radius: 8px; font-size: .48rem; letter-spacing: .11em; }

.cta { background: #0a1d34; }
.cta-box {
  border-radius: 26px;
  background: var(--red);
  min-height: 290px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.cta-box .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 14px; }
.cta-box p { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,.82); }

.site-footer { background: #07182c; padding: 54px 0 38px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 70px; align-items: end; }
.footer-brand { margin-bottom: 15px; }
.footer-grid p { color: #7f93a9; margin: 0; font-size: .88rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: #a6b5c6; font-size: .84rem; }
.footer-meta { display: grid; gap: 7px; color: #60748d; text-align: right; font-size: .76rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(100%, 720px); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card { grid-template-columns: 1fr; }
  .solution-preview { min-height: 440px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .section-pad { padding: 76px 0; }
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 15px;
    right: 15px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(7,24,44,.96);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 10px; }
  .site-nav a:hover { background: rgba(255,255,255,.05); }
  .hero { padding-top: 128px; }
  .hero-grid { gap: 46px; }
  .hero-visual { min-height: 440px; }
  .visual-shell { height: 440px; padding: 20px; }
  .visual-main-card { width: 72%; padding: 16px; }
  .workflow-row { grid-template-columns: 32px 1fr auto; padding: 10px 8px; }
  .workflow-icon { width: 30px; height: 30px; }
  .phone-frame { width: 126px; height: 258px; border-radius: 23px; }
  .phone-one { right: 72px; top: 116px; }
  .phone-two { right: -8px; top: 88px; }
  .screen-pill { margin-top: 26px; }
  .house-shape { transform: scale(.82); transform-origin: top center; }
  .visual-metrics > div { min-width: 110px; padding: 10px 12px; }
  .split-grid { grid-template-columns: 1fr; gap: 22px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 220px; }
  .solution-content, .solution-preview { padding: 30px; }
  .solution-preview { min-height: 340px; }
  .cta-box { padding: 36px 28px; flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 520px) {
  .brand-mark { width: 37px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 380px; }
  .visual-shell { height: 380px; }
  .visual-main-card { width: 100%; margin-top: 23px; }
  .visual-metrics { display: none; }
  .phone-frame { display: none; }
  .solution-content { padding: 28px 22px; }
  .solution-preview { padding: 22px; min-height: 300px; }
  .preview-window { transform: none; }
  .preview-home-shape { transform: translate(-50%,-50%) scale(.8); }
  .cta-box { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cap-card { transition: none; }
}
