:root{
  --bg:#f5f7fd;
  --bg-2:#eef3fb;
  --surface:rgba(255,255,255,.72);
  --surface-strong:#ffffff;
  --text:#111a38;
  --muted:#5d6889;
  --line:rgba(17,26,56,.09);
  --line-strong:rgba(17,26,56,.14);
  --brand-1:#4361ee;
  --brand-2:#6d4df2;
  --brand-3:#d946b8;
  --glow:0 26px 70px rgba(60,76,129,.12);
  --radius:26px;
  --radius-sm:18px;
  --max:1240px;
}

body[data-theme="dark"]{
  --bg:#07111f;
  --bg-2:#09172b;
  --surface:rgba(255,255,255,.045);
  --surface-strong:rgba(255,255,255,.065);
  --text:#eef4ff;
  --muted:#b6c4de;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.12);
  --glow:0 28px 70px rgba(0,0,0,.34);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(109,93,252,.16), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(16,183,255,.14), transparent 22%),
    radial-gradient(circle at 70% 84%, rgba(255,77,184,.10), transparent 20%),
    linear-gradient(180deg,var(--bg),var(--bg-2) 48%,var(--bg));
  transition:background .3s ease,color .3s ease;
}

a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{width:min(calc(100% - 32px),var(--max));margin:0 auto}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.nav-shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:86px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand strong{
  display:block;
  font-size:1.1rem;
  line-height:1.1;
}

.brand small{
  display:block;
  color:var(--muted);
  font-size:.95rem;
}

.brand-logo{
  width:58px;
  height:58px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
  filter:drop-shadow(0 14px 28px rgba(109,93,252,.18));
}

.nav-pill{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
}

.nav-pill a{
  padding:13px 20px;
  border-radius:999px;
  color:var(--muted);
  font-weight:700;
}

.nav-pill a.active,
.nav-pill a:hover{
  background:var(--surface-strong);
  color:var(--text);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-menu-toggle{
  display:none;
  width:58px;
  height:58px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}

.mobile-menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  border-radius:999px;
  background:var(--text);
  transition:transform .22s ease, opacity .22s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2){
  opacity:0;
}

.mobile-menu-toggle.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-menu{
  display:none;
  border-top:1px solid var(--line);
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(18px);
}

.mobile-menu.open{
  display:block;
}

.mobile-menu-inner{
  padding:16px 0 22px;
}

.mobile-nav-links{
  display:grid;
  gap:10px;
}

.mobile-nav-links a{
  display:block;
  padding:16px 18px;
  border-radius:18px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:700;
}

.mobile-nav-links a.active{
  color:var(--text);
  background:var(--surface-strong);
}

.mobile-menu-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.mobile-menu-actions .btn{
  flex:1;
}

.mobile-theme-toggle{
  flex:0 0 58px;
}

.theme-toggle{
  width:58px;
  height:58px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  font-size:1.2rem;
  cursor:pointer;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 22px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:800;
  transition:.2s transform,.2s box-shadow;
}

.btn:hover{transform:translateY(-1px)}
.btn-sm{padding:14px 20px}

.btn-primary{
  background:linear-gradient(135deg,var(--brand-1),var(--brand-3));
  color:#fff;
  box-shadow:0 16px 34px rgba(160,90,255,.24);
}

.btn-secondary{
  background:var(--surface);
  border-color:var(--line);
  color:var(--text);
}

main{overflow:hidden}

.hero{
  padding:52px 0 26px;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:36px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:700;
  margin-bottom:18px;
}

.hero h1{
  font-size:clamp(2.8rem,4.8vw,4.9rem);
  line-height:.95;
  letter-spacing:-.055em;
  margin:0 0 18px;
  max-width:9ch;
}

.accent{
  background:linear-gradient(90deg,#4361ee 0%, #6d4df2 38%, #8f48e8 62%, #d946b8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  max-width:640px;
  margin:0;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.82;
}

.hero-actions,.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.hero-actions{margin-top:28px}
.hero-tags{margin-top:22px}

.tag{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-weight:600;
  color:var(--muted);
}

.hero-visual{
  position:relative;
  min-height:620px;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.parallax-layer{
  position:absolute;
  transition:transform .12s linear;
}

.frame-main{
  position:relative;
  inset:auto;
  width:min(100%, 620px);
  padding:22px;
  border-radius:36px;
  background:linear-gradient(180deg,color-mix(in srgb, var(--surface-strong) 88%, transparent),var(--surface));
  border:1px solid var(--line-strong);
  box-shadow:var(--glow);
  z-index:1;
}

.frame-card{
  padding:18px;
  border-radius:24px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--glow);
}

.hero-badges{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;
}

.hero-badge{
  position:absolute;
  width:220px;
  backdrop-filter:blur(16px);
  background:color-mix(in srgb, var(--surface) 88%, transparent);
}

.hero-badge-top{
  right:-8px;
  top:96px;
}

.hero-badge-bottom{
  left:-6px;
  bottom:26px;
}

.hero-badge h3{
  margin:0 0 8px;
  font-size:1rem;
}

.hero-badge p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  font-size:.95rem;
}

.frame-note h3,
.frame-growth h3,
.story-card h3{
  margin:0 0 10px;
  font-size:1.04rem;
}

.frame-note p,
.frame-growth p,
.story-card p,
.card p,
.section-lead,
.page-hero p{
  color:var(--muted);
  line-height:1.8;
  margin:0;
}

.ui-browser{
  height:100%;
  border-radius:28px;
  padding:18px;
  background:linear-gradient(180deg,color-mix(in srgb, var(--bg) 80%, transparent),color-mix(in srgb, var(--bg-2) 92%, transparent));
  border:1px solid var(--line);
}

.browser-top{
  display:flex;
  gap:8px;
  margin-bottom:18px;
}

.browser-dot{
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--line-strong);
}

.ui-canvas{
  height:420px;
  border-radius:24px;
  padding:18px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 80%, transparent),color-mix(in srgb,var(--surface-strong) 85%, transparent));
  display:grid;
  grid-template-columns:170px 1fr;
  gap:14px;
}

.ui-side,.ui-main,.mini-panel,.stat,.story-card,.feature-card,.pricing-card,.contact-panel,.showcase-card,.tech-card,.client-card,.client-featured{
  background:var(--surface);
  border:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.ui-side{
  border-radius:20px;
  padding:14px;
  display:grid;
  gap:12px;
}

.ui-item{
  height:42px;
  border-radius:14px;
  background:color-mix(in srgb,var(--brand-1) 12%, var(--surface));
  border:1px solid var(--line);
}

.ui-item.active{
  background:linear-gradient(135deg,rgba(109,93,252,.28),rgba(16,183,255,.16));
}

.ui-main{
  border-radius:20px;
  padding:16px;
}

.stat-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:12px;
}

.stat{
  border-radius:18px;
  padding:14px;
  min-height:104px;
}

.stat b{
  display:block;
  font-size:1.35rem;
  margin:.35rem 0 .45rem;
}

.stat small{color:var(--muted)}

.bar{
  height:9px;
  border-radius:999px;
  background:var(--line);
  overflow:hidden;
}

.bar span{
  display:block;
  height:100%;
  background:linear-gradient(135deg,var(--brand-2),var(--brand-3));
  border-radius:inherit;
}

.lower-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:12px;
}

.mini-panel{
  border-radius:18px;
  padding:16px;
  min-height:180px;
}

.bars{
  display:flex;
  align-items:end;
  gap:10px;
  height:112px;
  margin-top:18px;
}

.bars span{
  flex:1;
  border-radius:12px 12px 5px 5px;
  background:linear-gradient(180deg,var(--brand-2),var(--brand-1));
  opacity:.92;
}

.activity{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.activity div{
  display:flex;
  justify-content:space-between;
  padding:12px;
  border-radius:14px;
  background:color-mix(in srgb,var(--surface) 92%, transparent);
  border:1px solid var(--line);
}

.section{padding:42px 0}

.metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.metric{
  padding:24px;
  border-radius:24px;
  background:var(--surface);
  border:1px solid var(--line);
  text-align:center;
  box-shadow:var(--glow);
}

.metric strong{
  display:block;
  font-size:2.2rem;
  margin-bottom:8px;
}

.metric span{color:var(--muted)}

.section-title{
  font-size:clamp(2rem,3vw,3.25rem);
  letter-spacing:-.045em;
  line-height:1.05;
  margin:0 0 12px;
}

.section-lead{max-width:760px}

.title-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:end;
  margin-bottom:22px;
}

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

.feature-card,
.pricing-card,
.showcase-card,
.tech-card,
.contact-panel,
.story-card,
.client-card,
.client-featured{
  padding:24px;
  border-radius:28px;
  box-shadow:var(--glow);
}

.feature-icon,.tech-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:1.3rem;
  background:linear-gradient(135deg,rgba(109,93,252,.20),rgba(16,183,255,.16));
  margin-bottom:18px;
}

.feature-card h3,
.pricing-card h3,
.showcase-card h3,
.tech-card h3,
.client-card h3,
.client-featured h3{
  margin:0 0 10px;
  font-size:1.22rem;
}

.story-section{
  position:relative;
  padding:24px 0 12px;
}

.story-track{
  display:grid;
  gap:26px;
}

.story-step{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:22px;
  align-items:center;
}

.story-step.reverse{
  grid-template-columns:1.1fr .9fr;
}

.story-step.reverse .story-card:first-child{order:2}

.story-visual{
  min-height:300px;
  padding:18px;
  border-radius:30px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface-strong) 92%, transparent),var(--surface));
  border:1px solid var(--line-strong);
  box-shadow:var(--glow);
  display:grid;
  place-items:center;
}

.placeholder-visual{
  width:100%;
  height:100%;
  min-height:260px;
  border-radius:24px;
  border:1px dashed color-mix(in srgb,var(--text) 18%, transparent);
  background:linear-gradient(135deg,rgba(109,93,252,.08),rgba(16,183,255,.06));
  position:relative;
  overflow:hidden;
}

.placeholder-visual::before,
.placeholder-visual::after{
  content:"";
  position:absolute;
  border-radius:20px;
  background:rgba(255,255,255,.36);
  border:1px solid rgba(255,255,255,.26);
}

.placeholder-visual::before{
  inset:18px 18px auto 18px;
  height:56px;
}

.placeholder-visual::after{
  inset:92px 18px 18px 18px;
}

.placeholder-grid{
  position:absolute;
  inset:110px 36px 36px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:14px;
}

.placeholder-grid span{
  border-radius:18px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.28);
}

.story-card .eyebrow-mini{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:var(--surface-strong);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.84rem;
  margin-bottom:12px;
}

.story-card h2{
  font-size:clamp(1.9rem,3vw,3.2rem);
  letter-spacing:-.05em;
  line-height:1.02;
  margin:0 0 14px;
}

.link-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.link-btn{
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-weight:700;
}

.client-section{
  padding-top:28px;
}

.client-featured{
  margin-bottom:18px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface-strong) 92%, transparent),var(--surface));
  position:relative;
}

.client-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  font-size:.84rem;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-3));
  margin-bottom:16px;
}

.client-featured-grid{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:22px;
  align-items:start;
}

.client-mark,
.client-mini-mark{
  display:grid;
  place-items:center;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2),var(--brand-3));
  box-shadow:0 16px 34px rgba(109,93,252,.18);
}

.client-mark{
  width:96px;
  height:96px;
  border-radius:28px;
  font-size:2rem;
}

.client-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 12px;
}

.client-chip{
  padding:9px 12px;
  border-radius:999px;
  background:var(--surface-strong);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.9rem;
  font-weight:700;
}

.client-chip.live{
  color:#fff;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-3));
  border-color:transparent;
}

.client-featured p,
.client-card p{
  color:var(--muted);
  line-height:1.8;
  margin:0;
}

.client-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.client-points span{
  padding:10px 12px;
  border-radius:999px;
  background:var(--surface-strong);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:600;
  font-size:.92rem;
}

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

.client-card-top{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.client-mini-mark{
  width:56px;
  height:56px;
  border-radius:18px;
  font-size:1.2rem;
}

.client-card small{
  color:var(--muted);
}

.page-hero{
  padding:46px 0 24px;
}

.page-hero .wrap{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:26px;
  align-items:center;
}

.page-hero h1{
  font-size:clamp(2.6rem,4.4vw,4.4rem);
  line-height:.97;
  letter-spacing:-.05em;
  margin:0 0 16px;
  max-width:11ch;
}

.page-chip{
  display:inline-flex;
  padding:11px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  font-weight:700;
  margin-bottom:14px;
}

.showcase-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.showcase-card .placeholder-visual{
  min-height:220px;
  margin-top:14px;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.pricing-card.featured{
  background:linear-gradient(180deg,rgba(109,93,252,.20),rgba(255,255,255,.04));
  border-color:rgba(109,93,252,.26);
}

.price-tag{
  font-size:2.55rem;
  font-weight:900;
  letter-spacing:-.05em;
  margin:.2rem 0 .7rem;
}

.price-desc{
  color:var(--muted);
  line-height:1.75;
}

.price-list{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:grid;
  gap:11px;
}

.price-list li{
  position:relative;
  padding-left:22px;
  color:var(--muted);
}

.price-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:#50d6ab;
  font-weight:800;
}

.cta-stack{
  display:grid;
  gap:12px;
  margin-top:22px;
}

.cta-stack a{
  display:flex;
  align-items:center;
  justify-content:center;
}

.contact-grid{
  display:grid;
  grid-template-columns:.96fr 1.04fr;
  gap:20px;
}

.contact-list{
  display:grid;
  gap:12px;
  margin-top:18px;
}

.contact-list a,
.contact-list div{
  padding:16px;
  border-radius:16px;
  background:var(--surface-strong);
  border:1px solid var(--line);
  font-weight:600;
}

.field{
  width:100%;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  font:inherit;
}

.field::placeholder{color:var(--muted)}
textarea.field{min-height:150px;resize:vertical}
.form-grid{display:grid;gap:14px}

.site-footer{
  padding:24px 0 42px;
}

.footer-card{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  padding:24px;
  border-radius:28px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--glow);
}

.footer-copy{
  max-width:560px;
  color:var(--muted);
  line-height:1.75;
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
}
.footer-brand .brand-logo{
  width:56px;
  height:56px;
}

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

.reveal.visible{
  opacity:1;
  transform:none;
}

@media (max-width:1100px){
  .hero-grid,
  .page-hero .wrap,
  .story-step,
  .story-step.reverse,
  .contact-grid,
  .pricing-grid,
  .grid-3,
  .showcase-grid,
  .metrics,
  .client-grid{
    grid-template-columns:1fr 1fr;
  }

  .story-step.reverse .story-card:first-child{order:0}
  .hero h1{max-width:none}
  .page-hero h1{max-width:none}
}

@media (max-width:820px){
  .nav-pill,
  .desktop-demo-btn,
  .nav-actions > .theme-toggle{
    display:none;
  }

  .mobile-menu-toggle{
    display:flex;
  }

  .nav-shell{
    min-height:78px;
  }

  .brand{
    gap:10px;
  }

  .brand strong{
    font-size:1rem;
  }

  .brand small{
    font-size:.88rem;
  }

  .brand-logo{
    width:52px;
    height:52px;
  }

  .hero-grid,
  .page-hero .wrap,
  .story-step,
  .story-step.reverse,
  .contact-grid,
  .pricing-grid,
  .grid-3,
  .showcase-grid,
  .metrics,
  .stat-row,
  .lower-grid,
  .client-grid,
  .client-featured-grid{
    grid-template-columns:1fr;
  }

  .hero-visual{
    min-height:auto;
    display:grid;
    gap:12px;
  }

  .parallax-layer{
    position:relative;
    inset:auto !important;
    width:auto !important;
    transform:none !important;
  }

  .hero-badges{
    position:relative;
    inset:auto;
    display:grid;
    gap:12px;
    pointer-events:auto;
  }

  .hero-badge{
    position:relative;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    width:auto;
  }

  .frame-main{
    margin-bottom:0;
  }

  .hero h1{
    font-size:3rem;
  }

  .page-hero h1{
    font-size:2.8rem;
  }

  .ui-canvas{
    grid-template-columns:1fr;
    height:auto;
  }

  .title-row{
    display:block;
  }

  .mobile-menu-actions{
    flex-wrap:wrap;
  }
}