:root{
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #15141B;
  --ink-soft: #55535E;
  --ink-faint: #8B8996;
  --line: #E7E4DC;
  --accent: #5B3DF5;
  --accent-soft: #EFEBFF;
  --accent-ink: #FFFFFF;
  --gold: #E08A2C;
  --gold-soft: #FCF0DE;
  --teal: #12857A;
  --teal-soft: #DFF1EE;
  --tint: #F3F0FF;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 10px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

p{ margin: 0; }

a{ color: inherit; }

img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250,250,248,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-die{ color: var(--accent); }

.nav{ display: flex; gap: 26px; }
.nav a{
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav a:hover{ color: var(--ink); }
.nav a.is-current{ color: var(--ink); }
.nav a.is-current::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.page{ display: none; }
.page.is-active{
  display: block;
  animation: page-in .45s ease both;
}
@keyframes page-in{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.kicker{
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}

.page-title{
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 20ch;
  padding-top: 44px;
}

.page-lead{
  margin: 22px 0 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 60px 28px 72px;
}

.hero-title{
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reveal-line{ display: block; overflow: hidden; }
.reveal-line > span{ display: block; }

.hero-sub{
  margin: 26px 0 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  font-family: var(--font-body);
}
.btn-primary{ background: linear-gradient(135deg, #6E4DFF, #4C2FE0); color: #fff; }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91,61,245,0.32); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

.device-frame{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(21,20,27,0.18);
}
.device-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.device-label{ margin-left: 8px; font-size: 0.8rem; color: var(--ink-faint); }

.device-screen{ aspect-ratio: 4 / 3; background: #0F0E14; position: relative; }
.device-screen iframe{ width: 100%; height: 100%; border: 0; display: block; }

.demo-placeholder{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; color: #C9C7D3;
}
.demo-placeholder-title{ font-family: var(--font-display); font-weight: 600; color: #fff; margin: 0 0 8px; }
.demo-placeholder-text{ margin: 0; max-width: 32ch; font-size: 0.92rem; color: #9C99AA; }

.feature-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature-row-tight{ padding-top: 40px; padding-bottom: 40px; border-top: none; margin-top: 8px; }

.feature-card h3{ font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p{ color: var(--ink-soft); font-size: 0.94rem; max-width: 32ch; }

.home-cta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 0 72px;
  border-top: 1px solid var(--line);
}
.home-cta-row p{ color: var(--ink-soft); font-size: 0.98rem; }
.home-cta-links{ display: flex; gap: 24px; }
.home-cta-links a{
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.home-cta-links a:hover{ border-color: var(--ink); }

.section-title{
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.section-lead{
  margin: 16px 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.about-hero{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 44px;
}
.about-hero .page-title{ padding-top: 0; }

.avatar{
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: #EFEDE6;
  border: 1px solid var(--line);
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; }
.avatar-empty img{ display: none; }
.avatar-empty{
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), #F5F3EE);
}
.avatar-empty::after{
  content: 'I';
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
}

.about-intro .page-lead{ max-width: 56ch; }

.about-body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.about-body p{ color: var(--ink-soft); font-size: 1rem; }

.mission-block{
  margin-top: 64px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.values-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.value-card h3{ font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.value-card p{ color: var(--ink-soft); font-size: 0.92rem; }

.quote-block{
  margin: 64px 0 80px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}
.quote-block p{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 28ch;
  color: var(--ink);
}
.quote-block cite{
  display: block;
  margin-top: 16px;
  font-style: normal;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.stat-ledger{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.stat{ padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child{ border-left: none; }

.stat-value{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-highlight .stat-value{ color: var(--gold); }

.stat-label{ display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.stat-label em{ display: block; font-style: normal; color: var(--ink-faint); font-size: 0.82rem; margin-top: 2px; }

.bonus-ledger{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.bonus-stat{
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.bonus-stat-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.bonus-stat-head strong{
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
}
.bar{
  height: 8px;
  border-radius: 999px;
  background: #EFEDE6;
  overflow: hidden;
  display: flex;
}
.bar-fill{ height: 100%; background: var(--accent); border-radius: 999px; }
.bar-split .bar-fill{ border-radius: 0; }
.bar-split .bar-fill:first-child{ border-radius: 999px 0 0 999px; }
.bar-fill-alt{ background: var(--gold); border-radius: 0 999px 999px 0 !important; }
.bonus-stat-note{ margin-top: 10px; font-size: 0.82rem; color: var(--ink-faint); }

.math-footnote{
  margin: 24px 2px 60px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  max-width: 62ch;
}

.case-list{
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.case{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.case:first-child{ border-top: none; }
.case-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.case-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.case-body h3{ font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; max-width: 42ch; }
.case-body p{ margin: 8px 0; color: var(--ink-soft); max-width: 62ch; font-size: 0.98rem; }
.case-body strong{ color: var(--ink); }

.stack-block{ margin-top: 72px; padding-top: 8px; }
.stack-groups{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stack-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.stack-card-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stack-card-head .icon-badge{ margin-bottom: 0; width: 38px; height: 38px; }
.stack-card-head h3{ font-size: 1rem; font-weight: 600; }
.stack-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stack-list li{
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.stack-list li::before{
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.stack-list em{ font-style: normal; color: var(--ink-faint); }

.portfolio-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; margin-bottom: 80px; }
.pf-card{ border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .15s ease; }
.pf-live:hover{ border-color: var(--ink); }
.pf-soon{ border-style: dashed; }
.pf-thumb{ aspect-ratio: 16 / 10; background: #EFEDE6; overflow: hidden; }
.pf-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.pf-thumb-empty{ display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #EFEDE6, #EFEDE6 10px, #F5F3EE 10px, #F5F3EE 20px); }
.pf-thumb-empty img{ display: none; }
.pf-body{ padding: 20px 22px 24px; }
.pf-status{ display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 10px; }
.pf-status-live{ color: var(--accent); }
.pf-body h3{ font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.pf-body p{ margin: 0 0 6px; color: var(--ink-soft); font-size: 0.92rem; }
.pf-tags{ font-size: 0.82rem !important; color: var(--ink-faint) !important; }

.faq-list{ margin: 40px 0 80px; border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 2px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q svg{ flex-shrink: 0; color: var(--ink-faint); transition: transform .25s ease; }
.faq-item.is-open .faq-q svg{ transform: rotate(180deg); color: var(--accent); }
.faq-a{ max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease; }
.faq-item.is-open .faq-a{ max-height: 260px; opacity: 1; }
.faq-a p{ padding: 0 2px 22px; color: var(--ink-soft); font-size: 0.96rem; max-width: 62ch; }

.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 90px; }
.contact-links{ list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-links li{ display: flex; align-items: center; gap: 10px; }
.contact-links svg{ color: var(--ink-faint); flex-shrink: 0; }
.contact-links a{ text-decoration: none; font-weight: 600; font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; width: max-content; }
.contact-links a:hover{ border-color: var(--ink); }

.contact-form{
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-top: 44px;
  align-self: start;
}
.contact-form label{ font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-top: 12px; }
.contact-form label:first-child{ margin-top: 0; }
.contact-form input, .contact-form textarea{
  font-family: var(--font-body); font-size: 0.96rem; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{ border-color: var(--accent); }
.contact-form .btn{ margin-top: 18px; }
.form-status{ min-height: 1.2em; margin: 10px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.form-status.is-error{ color: #C0392B; }
.form-status.is-ok{ color: #1E7A46; }

.site-footer{ border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--ink-faint); font-size: 0.86rem; }
.footer-row{ display: flex; justify-content: space-between; }
.footer-row a{ text-decoration: none; color: var(--ink-faint); }
.footer-row a:hover{ color: var(--ink); }

.reveal-line > span{ transform: translateY(100%); opacity: 0; animation: line-up .7s cubic-bezier(.22,1,.36,1) forwards; }
.hero-title .reveal-line:nth-child(1) > span{ animation-delay: .05s; }
.hero-title .reveal-line:nth-child(2) > span{ animation-delay: .16s; }
.reveal-fade{ opacity: 0; transform: translateY(10px); animation: fade-up .7s ease forwards; animation-delay: .32s; }
.hero-actions.reveal-fade{ animation-delay: .42s; }
.reveal-scale{ opacity: 0; transform: scale(.97) translateY(8px); animation: scale-in .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: .2s; }

@keyframes line-up{ to{ transform: translateY(0); opacity: 1; } }
@keyframes fade-up{ to{ transform: translateY(0); opacity: 1; } }
@keyframes scale-in{ to{ transform: scale(1) translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce){
  .reveal-line > span, .reveal-fade, .reveal-scale, .page.is-active{
    animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important;
  }
}

.jump-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0 0 8px;
}
.jump-row a{
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.jump-row a:hover{ color: var(--ink); border-color: var(--ink); }

.home-section{ padding: 72px 0; scroll-margin-top: 80px; }
.home-section-alt{
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.section-head .kicker{ margin-bottom: 10px; }
.section-more{
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-more:hover{ border-color: var(--accent); }

.about-hero-home{ padding-top: 32px; }
.about-hero-home .about-intro{ display: flex; flex-direction: column; gap: 16px; }
.home-section .values-row{ margin-top: 40px; }
.home-section .stat-ledger{ margin-top: 32px; }
.home-section .stack-block{ margin-top: 56px; }
.home-section .stack-block .section-title{ font-size: 1.25rem; }
.math-footnote-home{ margin-bottom: 0; }
.case-list-home{ margin-top: 32px; }
.case-list-home .case-body h3{ margin-bottom: 8px; }
.portfolio-grid-home{ margin-top: 36px; margin-bottom: 0; }
.faq-list-home{ margin: 32px 0 0; }

.cta-band{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cta-band .kicker{ margin-bottom: 10px; }
.cta-band-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

.prose{
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.prose .section-title{ margin-top: 40px; }
.prose .section-title:first-child{ margin-top: 0; }
.prose p{
  margin-top: 16px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.phase-list{
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
.phase{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.phase-num{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 3px;
}
.phase h3{ font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.phase p{ color: var(--ink-soft); font-size: 0.98rem; max-width: 64ch; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; padding-top: 40px; }
  .feature-row{ grid-template-columns: 1fr; gap: 32px; }
  .stat-ledger{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3){ border-left: none; }
  .stat{ border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2){ border-top: none; }
  .bonus-ledger{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .case{ grid-template-columns: 1fr; }
  .case-icon{ margin-bottom: 4px; }
  .about-hero{ grid-template-columns: 1fr; }
  .avatar{ width: 140px; height: 140px; }
  .about-body{ grid-template-columns: 1fr; }
  .values-row{ grid-template-columns: 1fr; }
  .stack-groups{ grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-row { height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(250, 250, 248, 0.95);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    flex-direction: column;
    padding: 8px 28px 28px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 25;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .hero { padding: 32px 20px 56px; }
  .page-title { padding-top: 28px; }
}

@media (max-width: 900px){
  .home-section{ padding: 56px 0; }
  .phase{ grid-template-columns: 1fr; gap: 6px; }
  .cta-band{ padding: 32px 24px; }
  .section-head{ align-items: flex-start; }
}

.page.is-active{ padding-top: 34px; }
.page.is-active .hero{ padding-top: 34px; }

.feature-row .feature-card:nth-child(2) .icon-badge{ background: var(--gold-soft); color: var(--gold); }
.feature-row .feature-card:nth-child(3) .icon-badge{ background: var(--teal-soft); color: var(--teal); }
.values-row .value-card:nth-child(2) .icon-badge{ background: var(--gold-soft); color: var(--gold); }
.values-row .value-card:nth-child(3) .icon-badge{ background: var(--teal-soft); color: var(--teal); }
.case-list .case:nth-child(2) .case-icon{ background: var(--gold-soft); color: var(--gold); }
.case-list .case:nth-child(3) .case-icon{ background: var(--teal-soft); color: var(--teal); }
.stack-groups .stack-card:nth-child(2) .icon-badge{ background: var(--gold-soft); color: var(--gold); }
.stack-groups .stack-card:nth-child(3) .icon-badge{ background: var(--teal-soft); color: var(--teal); }

.home-section-alt{ background: linear-gradient(180deg, #FDFCFF, var(--tint)); }

.jump-row a{
  border-bottom: none;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 16px;
}
.jump-row a:hover{ background: var(--accent); color: #fff; }

.pf-status{
  background: #F1EFE8;
  border-radius: 999px;
  padding: 4px 10px;
}
.pf-status-live{ background: var(--accent-soft); color: var(--accent); }
.pf-live{ border-color: #DCD5FA; }

.btn-play{ margin-top: 14px; padding: 10px 20px; font-size: 0.9rem; }

.faq-item.is-open .faq-q{ color: var(--accent); }

.quote-block{ border-top-color: var(--accent); }

.stat-ledger{ background: linear-gradient(180deg, #fff, #FBFAFF); }
.stat-highlight{ background: var(--gold-soft); }

.contact-grid-home{ padding-bottom: 0; margin-top: 36px; }
.contact-grid-home .contact-form{ margin-top: 0; }
.contact-grid-home .contact-intro{ display: flex; flex-direction: column; gap: 16px; }
.contact-grid-home .page-lead{ margin: 0; }

.demo-modal{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-modal[hidden]{ display: none; }
.demo-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,14,20,0.62);
  backdrop-filter: blur(3px);
}
.demo-modal-panel{
  position: relative;
  width: min(1040px, 100%);
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15,14,20,0.55);
}
.demo-modal-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.demo-modal-close{
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.demo-modal-close:hover{ color: var(--accent); border-color: var(--accent); }
.demo-modal-screen{
  aspect-ratio: 16 / 10;
  background: #0F0E14;
  position: relative;
}
.demo-modal-screen iframe{ width: 100%; height: 100%; border: 0; display: block; }
body.is-locked{ overflow: hidden; }

@media (max-width: 560px){
  .demo-modal{ padding: 12px; }
  .demo-modal-screen{ aspect-ratio: 3 / 4; }
}


.hero-stats-badge {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 0 auto 40px auto;
  box-shadow: 0 12px 32px -12px rgba(21, 20, 27, 0.08);
  flex-wrap: wrap;
  gap: 24px;
}

.stat-badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-badge-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-badge-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .hero-stats-badge {
    justify-content: space-between;
    padding: 20px 24px;
  }
}

@media (max-width: 560px) {
  .hero-stats-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }
  .stat-badge-item {
    width: 100%;
    gap: 12px;
  }
  .stat-badge-label br {
    display: none;
  }
}


main {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 999;
  transform: translateZ(0);
}

@media (max-width: 560px) {
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 100vh; 
    background: rgba(250, 250, 248, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 8px 28px 28px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
  }
  
  .nav.is-open { 
    opacity: 1; 
    transform: translateY(0); 
    pointer-events: auto; 
  }
  
  .nav a { 
    padding: 16px 0; 
    border-bottom: 1px solid var(--line); 
    font-size: 1.05rem; 
  }
}


.btn {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}


.btn:active {
  transform: scale(0.92) !important;
  transition: transform 0.1s ease !important;
}



.scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


.scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}


.reveal-up    { transform: translateY(40px); }
.reveal-scale { transform: scale(0.85); }
.reveal-left  { transform: translateX(-40px); }