:root{
  color-scheme:dark;
  --bg:#000; --fg:#fff; --soft:#e4e4e4; --muted:#a3a3a3;
  --brand:92,168,248; /* #5CA8F8 */
  --accent:#6aa8f7; --frame:#141414; --line:rgba(255,255,255,.12);
  --tint:rgba(255,255,255,.04); --container:1200px; --gutter:32px;
  --ease:cubic-bezier(.22,1,.36,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--fg); overflow-x:hidden;
  font-family:"Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased; line-height:1.5;
}

/* Background: brand-blue radial glows (top-left, bottom-right) */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 55% at 0% 0%, rgba(var(--brand),.30), transparent 70%),
    radial-gradient(55% 50% at 100% 100%, rgba(var(--brand),.24), transparent 70%),
    radial-gradient(35% 30% at 100% 0%, rgba(var(--brand),.07), transparent 70%);
}
.site-header,main,.site-footer{position:relative; z-index:1}
img{display:block; max-width:100%; height:auto}
a{color:inherit; text-decoration:none}
a:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
ul{list-style:none; margin:0; padding:0}

/* Container: max 1200px, 32px side padding */
.container{
  width:100%; max-width:var(--container); margin-inline:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left));
  padding-right:max(var(--gutter),env(safe-area-inset-right));
}

/* Entrance animation (soft fade + gentle rise) */
.js .reveal{
  opacity:0; transform:translateY(14px);
  transition:opacity 1.1s ease, transform 1.2s var(--ease);
  transition-delay:var(--d,0s);
  will-change:opacity,transform;
}
.js .reveal-lg{transform:translateY(24px)}
.js .reveal.in{opacity:1; transform:none}
/* once the entrance has finished, drop the stagger so hover effects respond instantly */
.js .reveal.done{will-change:auto; transition-delay:0s !important; transition-duration:.35s !important}

/* Buttons */
.btn{
  position:relative; isolation:isolate; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font:inherit; font-weight:700; line-height:1; white-space:nowrap;
}
.btn::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);
  transform:translateX(-120%); transition:transform .7s var(--ease);
}
.btn .arrow{transition:transform .3s var(--ease)}
.btn-blue{
  background:linear-gradient(180deg,#7db6fa,var(--accent)); color:#0b0c0c;
  font-size:1.2rem; padding:1.15rem 1.9rem; border-radius:14px;
  box-shadow:0 0 0 0 rgba(106,168,247,0);
}
/* the button also animates box-shadow for its hover glow */
.js .btn.reveal{
  transition-property:opacity,transform,box-shadow;
  transition-duration:1.1s,1.2s,.35s;
  transition-delay:var(--d,0s),var(--d,0s),0s;
}
@media (hover:hover){
  .btn:hover::after{transform:translateX(120%)}
  .btn:hover .arrow{transform:translate(2px,-2px)}
  .btn-blue:hover{
    transform:translateY(-3px);
    box-shadow:0 0 0 1px rgba(160,205,255,.6), 0 10px 32px rgba(106,168,247,.55), 0 0 72px rgba(106,168,247,.35);
  }
}
.btn:focus-visible{outline:none}
.btn-blue:focus-visible{box-shadow:0 0 0 2px #fff, 0 0 32px rgba(106,168,247,.6)}
.btn:active{transform:translateY(0) scale(.98)}

/* Header */
.site-header{padding-top:env(safe-area-inset-top)}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-block:1.25rem}
.logo img{height:22px; width:auto}

/* Social icons */
.social{display:flex; align-items:center; gap:.625rem}
.social a{
  display:grid; place-items:center; width:40px; height:40px; border-radius:12px;
  color:var(--soft); background:rgba(255,255,255,.04); border:1px solid var(--line);
  transition:color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .35s ease, transform .35s var(--ease);
}
.social svg{width:18px; height:18px}
.social svg.tv{width:20px; height:auto}
@media (hover:hover){
  .social a:hover{
    color:#fff; background:rgba(var(--brand),.16); border-color:rgba(var(--brand),.55);
    box-shadow:0 0 22px rgba(var(--brand),.4); transform:translateY(-2px);
  }
}
.social a:focus-visible{box-shadow:0 0 0 2px rgba(var(--brand),.8)}

/* Hero */
.hero{padding-block:clamp(1.5rem,4vw,2.5rem) clamp(2rem,5vw,3rem); text-align:center}
.hero h1{
  margin:0; font-weight:700; letter-spacing:-.02em; line-height:1.1;
  font-size:clamp(2.1rem,7.5vw,4.25rem); text-wrap:balance;
}
.lead{
  margin:1.25rem auto 2.25rem; max-width:44rem; color:var(--soft);
  font-size:clamp(1.05rem,2.6vw,1.45rem); line-height:1.55; text-wrap:balance;
}
.br-lg{display:none}
@media (min-width:1024px){.lead{max-width:none; text-wrap:initial} .br-lg{display:inline}}

/* Preview mockups: two separate frames, each image keeps its own aspect ratio */
/* Line chart sits behind the screenshots + features (they have no background of their own) */
.chart-zone{
  position:relative; isolation:isolate;
  overflow-x:hidden; overflow-x:clip; /* the line may be wider than the screen on phones: never let it scroll the page */
}
.chart-zone::before{
  /* the box has the SVG's own proportions (1602x472) and is as wide as the page,
     so the line looks identical on desktop and tablet at any width */
  content:""; position:absolute; top:6rem; left:0; right:0; z-index:-1; pointer-events:none;
  /* full page width up to 2300px, then it stays centered and the side edges fade out */
  width:min(100%,2300px); margin-inline:auto;
  aspect-ratio:1602 / 472;
  background:url("bg-line.svg") center/100% 100% no-repeat;
  opacity:.9;
  -webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent);
  mask-image:linear-gradient(to bottom,#000 70%,transparent);
}
/* very wide screens: the line stops growing; both ends dissolve instead of ending abruptly */
@media (min-width:2300px){
  .chart-zone::before{
    -webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent),linear-gradient(to right,transparent,#000 10%,#000 90%,transparent);
    -webkit-mask-composite:source-in;
    mask-image:linear-gradient(to bottom,#000 70%,transparent),linear-gradient(to right,transparent,#000 10%,#000 90%,transparent);
    mask-composite:intersect;
  }
}
/* the line fades in together with the screenshots: opacity only, no movement */
.js .chart-zone::before{opacity:0; transition:opacity 1.8s ease 1s}
.js .chart-zone.chart-in::before{opacity:.9}
@media (prefers-reduced-motion:reduce){
  .js .chart-zone::before{opacity:.9; transition:none}
}
.mock{
  --gap:1rem; --p:clamp(6px,1.2vw,14px);
  container-type:inline-size; display:flex; gap:var(--gap);
}
.frame{
  flex:0 0 auto; display:block; padding:var(--p); background:var(--frame);
  border:1px solid var(--line);
  border-radius:clamp(14px,2.8vw,28px);
  box-shadow:0 24px 60px -16px rgba(0,0,0,.6), 0 8px 24px -8px rgba(0,0,0,.4);
}
/* both images share one height so their natural ratios (1800x936 and 498x936) fill the row exactly */
.frame img{
  max-width:none; width:auto;
  height:calc((100cqw - var(--gap) - 4 * var(--p) - 4px) * 936 / 2298);
  border-radius:clamp(8px,1.6vw,16px); background:#000;
}
@supports not (width:1cqw){
  .mock{display:grid; grid-template-columns:1800fr 498fr}
  .frame img{width:100%; height:auto; max-width:100%}
}

/* Features */
.features{padding-block:clamp(2rem,4vw,2.75rem) clamp(4rem,9vw,7rem)}
.grid{display:grid; grid-template-columns:repeat(4,1fr); gap:2.25rem 2rem}
.feat-icon{display:block; margin-bottom:1rem; color:#8cc3fb}
.feat-icon svg{display:block; width:24px; height:24px}
.features h2{margin:0 0 .75rem; font-weight:400; font-size:1rem; line-height:1.25}
.features p{margin:0; color:var(--muted); font-size:.875rem; line-height:1.55}

/* Footer */
.site-footer{
  background:var(--tint); border-top:1px solid var(--line); text-align:center;
  padding-block:clamp(2.5rem,5vw,3.5rem) max(2.5rem,env(safe-area-inset-bottom));
}
.footer-top{display:flex; flex-direction:column; align-items:center; gap:1.25rem}
.footer-top img{height:22px; width:auto}
.footer-top p{margin:0; max-width:28rem; color:var(--muted); font-size:.875rem; line-height:1.6; text-wrap:balance}
.footer-top .social{margin-top:.25rem}
.legal{max-width:60rem; margin:2.5rem auto 0}
.disclaimer{margin:0; color:var(--muted); font-size:.6875rem; line-height:1.7; opacity:.55; text-wrap:pretty}
.copy{margin:1.25rem 0 0; color:var(--muted); font-size:.6875rem; opacity:.55}

/* Tablet */
@media (max-width:1023px){
  .grid{grid-template-columns:repeat(2,1fr)}
}
/* Tablet only: pull the line up a little to trim the empty space above it */
@media (min-width:640px) and (max-width:1023px){
  .chart-zone::before{top:10vw}
}

/* Mobile */
@media (max-width:639px){
  :root{--gutter:42px;}
  .btn-blue{font-size:1.05rem; padding:1rem 1.5rem}
  /* narrow screens: show the compact panel only so the preview stays legible */
  .mock{display:block; max-width:22rem; margin-inline:auto}
  .frame-desktop{display:none}
  .frame img{width:100%; height:auto; max-width:100%}
  .grid{grid-template-columns:1fr; gap:1.75rem; padding: 0 2rem 0 2rem;}
  /* tall single-column layout: keep the line compact instead of stretching it */
  /* phones: keep the line a readable size instead of squeezing it into 390px */
  .chart-zone::before{left:50%; right:auto; width:1100px; margin-inline:-550px 0; top:5rem}
}

@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1; transform:none; transition:none}
  .btn::after,.btn .arrow,.social a{transition:none}
}
