*{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg:#05070a;
  --bg-2:#08101b;
  --panel:#0b1420;
  --panel-2:#101b29;
  --text:#f7f7f4;
  --muted:#a9afb7;
  --muted-2:#707883;
  --line:rgba(255,255,255,.13);
  --accent:#d77a38;
  --accent-2:#c8d0da;
  --accent-gradient:linear-gradient(90deg,#f7f7f4 0%,#d9dee5 100%);
}

html{scroll-behavior:smooth}

body{
  background:
    radial-gradient(circle at 82% 0%,rgba(40,65,92,.14),transparent 24%),
    radial-gradient(circle at 12% 8%,rgba(24,52,84,.2),transparent 31%),
    var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  line-height:1.6;
  font-weight:300;
}

a{color:inherit}

.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 28px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(5,7,10,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.nav-wrap{
  max-width:1120px;
  margin:0 auto;
  min-height:76px;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.nav-logo{
  display:block;
  width:170px;
  max-height:42px;
  object-fit:contain;
}

.nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:.94rem;
  font-weight:450;
  color:var(--muted);
}

.nav a{
  text-decoration:none;
  transition:color .2s ease;
}

.nav a:hover{color:var(--text)}

.nav-cta:hover{
  border-color:rgba(255,255,255,.34);
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
}

.nav-cta{
  padding:9px 15px;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--text)!important;
}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  border-radius:6px;
  padding:8px 14px;
  font:inherit;
}

.hero{
  padding:110px 0 96px;
}

.subhero{
  padding-bottom:72px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.72fr);
  gap:56px;
  align-items:center;
}

.eyebrow{
  color:var(--muted);
  background:none;
  -webkit-text-fill-color:currentColor;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.78rem;
  font-weight:520;
  margin-bottom:18px;
}

h1{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(2.8rem,6.5vw,6.2rem);
  line-height:.98;
  letter-spacing:-.025em;
  font-weight:300;
  max-width:860px;
}

.hero-text{
  margin-top:28px;
  max-width:690px;
  color:var(--muted);
  font-size:1.18rem;
}

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

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:7px;
  text-decoration:none;
  font-weight:650;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}

.button:hover{transform:translateY(-2px)}

.primary{
  background:var(--accent-gradient);
  color:#080b10;
  font-weight:560;
}

.secondary{
  border:1px solid var(--line);
  color:var(--text);
}

.system-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border-radius:16px;
  padding:28px;
  box-shadow:0 24px 80px rgba(0,0,0,.24);
}

.card-header{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-weight:650;
  margin-bottom:22px;
}

.status-dot{
  position:relative;
  display:inline-block;
  flex:0 0 auto;
  width:9px;
  height:9px;
  border-radius:99px;
  background:linear-gradient(135deg,#d36a3a 0%,#b74767 100%);
  box-shadow:0 0 5px rgba(200,82,79,.24);
  animation:status-breathe 3.6s ease-in-out infinite;
}

@keyframes status-breathe{
  0%,100%{box-shadow:0 0 4px 1px rgba(200,82,79,.18);filter:brightness(.94);transform:scale(1);}
  50%{box-shadow:0 0 13px 3px rgba(200,82,79,.42);filter:brightness(1.14);transform:scale(1.08);}
}

@media(prefers-reduced-motion:reduce){
  .status-dot{animation:none;}
}

.flow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:22px;
}

.flow div{
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.045);
  border-radius:7px;
  padding:12px 14px;
  color:#dfdff0;
  font-size:.94rem;
}

.system-card p{
  color:var(--muted);
}

.section{
  padding:94px 0;
  border-top:1px solid rgba(255,255,255,.08);
}

.split{
  display:grid;
  grid-template-columns:.86fr 1fr;
  gap:72px;
  align-items:start;
}

h2{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(2rem,4vw,3.8rem);
  line-height:1.02;
  letter-spacing:-.012em;
  font-weight:300;
  max-width:760px;
}

.split p,
.compliance p,
.company-grid p{
  color:var(--muted);
  font-size:1.05rem;
  max-width:720px;
}

.workflow{
  margin-top:54px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.step{
  min-height:190px;
  border-top:1px solid var(--line);
  padding:22px 2px;
}

.step span{
  color:var(--muted-2);
  font-size:.85rem;
}

.step h3{
  font-size:1.16rem;
  font-weight:300;
  letter-spacing:.035em;
  margin:14px 0 8px;
}

.step p{
  color:var(--muted);
  max-width:280px;
}

.dark-panel{
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.055));
}

.product-grid{
  margin-top:42px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.product{
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  border-radius:14px;
  padding:26px;
  min-height:240px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:32px;
}

.product.featured{
  background:rgba(255,255,255,.045);
}

.label{
  color:var(--accent-2);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.72rem;
  font-weight:520;
  margin-bottom:12px;
}

.product h3{
  font-size:1.45rem;
  font-weight:300;
  letter-spacing:.025em;
  margin-bottom:10px;
}

.product p{
  color:var(--muted);
  font-size:.93rem;
  font-weight:300;
  line-height:1.55;
}

.product span{
  color:var(--muted-2);
  font-size:.9rem;
}

.feature-list{
  display:grid;
  gap:28px;
}

.feature-list h3{
  font-size:1.12rem;
  font-weight:300;
  letter-spacing:.025em;
  margin-bottom:7px;
}

.feature-list p{
  color:var(--muted);
  font-size:.93rem;
  font-weight:300;
  line-height:1.55;
}

.compliance{
  background:rgba(0,0,0,.14);
}

.policy-links{
  margin-top:28px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.policy-links a{
  color:var(--text);
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:6px;
  padding:10px 16px;
}

.company-grid{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:72px;
  align-items:start;
}

.contact-card{
  border-left:1px solid var(--line);
  padding-left:28px;
}

.contact-card h3{
  font-weight:300;
  letter-spacing:.025em;
  margin-bottom:16px;
}

.contact-card a{
  color:var(--text);
  text-decoration:none;
}

.footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:34px 0;
  color:var(--muted-2);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  font-size:.92rem;
}

.footer a{
  color:var(--muted-2);
  text-decoration:none;
  margin-left:18px;
}

.footer a:hover{color:var(--text)}

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

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

.legal{
  max-width:880px;
}

.legal h1{
  font-size:clamp(2.8rem,6vw,5.4rem);
  margin-bottom:12px;
}

.legal h2{
  font-size:1.45rem;
  margin-top:42px;
  margin-bottom:12px;
  letter-spacing:-.03em;
}

.legal p{
  color:var(--muted);
  max-width:820px;
  margin-bottom:14px;
}

.legal a{
  color:var(--text);
}

.contact-buttons{
  margin-top:22px;
}

@media(max-width:860px){
  .menu-toggle{display:block}
  .nav{
    display:none;
    position:absolute;
    left:18px;
    right:18px;
    top:76px;
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    background:#08101b;
    border:1px solid var(--line);
    border-radius:12px;
  }
  .nav.open{display:flex}
  .hero-grid,
  .split,
  .company-grid{
    grid-template-columns:1fr;
    gap:38px;
  }
  .workflow,
  .product-grid{
    grid-template-columns:1fr;
  }
  .hero{padding:86px 0 76px}
  .system-card{max-width:520px}
  .footer-inner{
    align-items:flex-start;
    flex-direction:column;
  }
  .footer a{margin:0 18px 0 0}
}

@media(max-width:560px){
  .container,.nav-wrap{padding-left:22px;padding-right:22px}
  .nav-logo{width:145px}
  h1{font-size:3.05rem}
  .hero-text{font-size:1.04rem}
  .section{padding:72px 0}
  .flow{grid-template-columns:1fr}
}


.action-section{
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.055));
}

.action-intro{
  margin-bottom:42px;
}

.current-video-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.current-video-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 14px 22px;
  background:rgba(255,255,255,.035);
}

.current-video-card .video-frame{
  max-width:none!important;
  margin-bottom:20px;
}

.current-video-card h3{
  font-size:1.22rem;
  font-weight:300;
  letter-spacing:.025em;
  margin:0 8px 8px;
}

.current-video-card > .label,
.current-video-card > p:last-child{
  margin-left:8px;
  margin-right:8px;
}

.current-video-card > p:last-child{
  color:var(--muted);
  font-size:.94rem;
}

.video-showcase{
  display:grid;
  gap:26px;
}

.video-card{
  display:grid;
  grid-template-columns:minmax(280px,420px) 1fr;
  gap:34px;
  align-items:center;
  padding:24px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}

.video-frame{
  border:1px solid rgba(255,255,255,.12);
  background:#03030f;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}

.video-frame video{
  display:block;
  width:100%;
  aspect-ratio:9/16;
  object-fit:cover;
  background:#000;
}

@media(max-width:860px){
  .video-card{grid-template-columns:1fr!important;}
  .workflow{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:560px){
  .workflow{grid-template-columns:1fr;}
}

.video-meta h3{
  font-size:clamp(1.45rem,3vw,2.2rem);
  letter-spacing:.02em;
  margin-bottom:12px;
  font-weight:300;
}

.video-meta p{
  color:var(--muted);
  max-width:560px;
}

.video-meta ul{
  list-style:none;
  margin-top:22px;
  display:grid;
  gap:10px;
  color:#d8d8e4;
}

.video-meta li::before{
  content:"✓";
  color:var(--accent-2);
  margin-right:10px;
}

.status-section{
  background:rgba(0,0,0,.16);
}

.status-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.status-grid div{
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
  background:rgba(255,255,255,.045);
}

.status-grid span{
  display:block;
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:10px;
}

.status-grid strong{
  font-size:2rem;
  letter-spacing:-.04em;
}

@media(max-width:860px){
  .video-card{
    grid-template-columns:1fr;
    gap:38px;
  }

  .status-grid{
    grid-template-columns:1fr;
  }

  .current-video-grid{
    grid-template-columns:1fr 1fr;
  }

  .video-frame{
    max-width:360px;
  }
}

@media(max-width:560px){
  .video-card{
    padding:18px;
    border-radius:14px;
  }

  .current-video-grid{
    grid-template-columns:1fr;
  }
}


/* v5 video controls fix */
.video-card{transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease;}
.video-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.26);background:rgba(255,255,255,.055);box-shadow:0 22px 80px rgba(0,0,0,.28);}
.video-card:nth-child(even) .video-frame{order:2;}
.video-card:nth-child(even) .video-meta{order:1;}
.video-kicker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:4px;}
.video-kicker .label{margin-bottom:0;}
.video-kicker span{display:inline-flex;align-items:center;min-height:28px;padding:0 11px;border:1px solid rgba(255,255,255,.12);border-radius:5px;color:#d8d8e4;font-size:.76rem;background:rgba(255,255,255,.045);}
.video-frame{position:relative;}
.video-frame::before,
.video-frame::after{display:none!important;content:none!important;}
.status-panel{border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));padding:26px;}
.status-head{display:flex;align-items:center;gap:10px;margin-bottom:18px;}
.status-note{margin-top:20px;}
.last-updated{margin-top:18px;color:var(--muted-2);font-size:.9rem!important;}
.architecture-section{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.045));}
.architecture-card{border:1px solid var(--line);border-radius:30px;padding:26px;background:rgba(255,255,255,.04);}
.engine-node{text-align:center;border:1px solid var(--line);background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(23,45,72,.18));border-radius:12px;padding:22px;font-size:1.35rem;font-weight:400;letter-spacing:-.03em;margin-bottom:22px;}
.branch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
.branch-grid div{border:1px solid var(--line);border-radius:18px;padding:18px;background:rgba(255,255,255,.035);}
.branch-grid span{display:block;color:var(--accent-2);font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px;font-weight:700;}
.branch-grid strong{display:block;font-size:1.1rem;margin-bottom:4px;}
.branch-grid small{color:var(--muted);}
.workflow-motion{overflow:hidden;}
.motion-flow{margin-top:38px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.motion-flow div{border:1px solid var(--line);background:rgba(255,255,255,.045);border-radius:6px;padding:12px 16px;color:#ededf5;}
.motion-flow span{width:32px;height:1px;background:linear-gradient(90deg,#737d89,transparent);}
@media(max-width:860px){.video-card:nth-child(even) .video-frame,.video-card:nth-child(even) .video-meta{order:initial;}.branch-grid{grid-template-columns:1fr;}.motion-flow{align-items:flex-start;flex-direction:column;}.motion-flow span{width:1px;height:26px;margin-left:22px;background:linear-gradient(180deg,#737d89,transparent);}}

/* v6 fixed video sizing */
.video-card:nth-child(even) .video-frame,
.video-card:nth-child(even) .video-meta{
  order:initial!important;
}

.video-card{
  grid-template-columns:minmax(280px,420px) 1fr!important;
}

.video-frame{
  width:100%!important;
  max-width:420px!important;
  aspect-ratio:9/16!important;
}

.video-frame video{
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:9/16!important;
  object-fit:cover!important;
}


/* Login / Demo / Request Demo additions */
.nav-cta-login{
  background:rgba(255,255,255,.05);
  border-color:var(--line)!important;
}
.request-demo-section .demo-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  padding:2rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.request-demo-section .demo-card h3{font-size:1.1rem;color:var(--text);}
.request-demo-section .demo-card p{color:var(--muted);font-size:.9rem;}
.demo-note{font-size:.78rem!important;color:var(--muted-2)!important;}

/* M23 square-edge, light-type system */
.button,
.nav-cta,
.menu-toggle,
.system-card,
.flow div,
.product,
.policy-links a,
.current-video-card,
.video-card,
.video-frame,
.status-panel,
.status-grid div,
.architecture-card,
.engine-node,
.branch-grid div,
.motion-flow div,
.request-demo-section .demo-card,
.nav{
  border-radius:0!important;
}

.nav,
.button,
.card-header,
.step h3,
.product h3,
.feature-list h3,
.contact-card h3,
.current-video-card h3,
.video-meta h3{
  font-weight:300;
}

.eyebrow,
.label,
.product span,
.video-kicker span{
  color:var(--muted)!important;
  font-size:.75rem!important;
  font-weight:400!important;
  letter-spacing:.15em!important;
  line-height:1.35!important;
  text-transform:uppercase!important;
}

.home-page .eyebrow,
.home-page .label,
.home-page .product span,
.home-page .video-kicker span{
  color:var(--muted)!important;
}

/* Restrained brand accent: section markers only */
.eyebrow,
.home-page .eyebrow{
  width:fit-content;
  background:linear-gradient(90deg,#d36a3a 0%,#b74767 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  -webkit-text-fill-color:transparent;
  font-weight:450!important;
}

.current-video-card > .label{
  width:fit-content;
  background:linear-gradient(90deg,#d36a3a 0%,#b74767 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  -webkit-text-fill-color:transparent;
  font-weight:450!important;
}

.eyebrow,
.label{
  margin-bottom:16px;
}

.product-link{
  color:inherit;
  text-decoration:none;
  background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(23,45,72,.18));
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.product.product-link.featured{
  background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(23,45,72,.18));
}

.product-link:hover{
  border-color:rgba(255,255,255,.28);
  background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(23,45,72,.22));
  transform:translateY(-2px);
}

.product.product-link.featured:hover{
  background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(23,45,72,.22));
}

.product-link .label{
  color:var(--muted)!important;
}

.product-link > span{
  color:#e2e6eb!important;
}

.product span,
.video-kicker span,
.step span,
.footer{
  font-weight:300;
}

/* Secondary card descriptors: Core, Active, Building, Planned, etc. */
.product:not(.product-link) > span{
  font-size:.64rem!important;
  letter-spacing:.13em!important;
  line-height:1.25!important;
  font-weight:300!important;
}

@media(max-width:860px){
  .video-card{grid-template-columns:1fr!important;}
  .workflow{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:560px){
  .workflow{grid-template-columns:1fr;}
}
