:root {
  --ink: #171713;
  --muted: #66665e;
  --paper: #f7f6f1;
  --white: #ffffff;
  --line: #deddd5;
  --accent: #ff5a36;
  --accent-dark: #d83a1c;
  --lime: #d8f36a;
  --blue: #b9d9ff;
  --violet: #d9c7ff;
  --yellow: #ffd66b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(23, 23, 19, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  z-index: 50;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3.1rem, 7.5vw, 7.4rem); margin-bottom: 26px; }
h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); margin-bottom: 20px; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
.lede { max-width: 690px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }
.muted { color: var(--muted); }
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23, 23, 19, .12);
  background: rgba(247, 246, 241, .92);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; font-size: 1.18rem; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 24px; align-items: center; margin-left: auto; font-size: .92rem; font-weight: 700; }
.nav-links > a:not(.btn):hover { color: var(--accent-dark); }
.mobile-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,23,19,.16); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-light { color: var(--ink); background: var(--white); }
.btn-accent:hover, .nav-links .btn-accent:hover { color: var(--white); background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-light:hover { color: var(--ink); background: var(--white); }
.btn-small { min-height: 42px; padding-inline: 18px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 34px; font-weight: 800; }
.back-link:hover { color: var(--accent-dark); }
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "";
  position: absolute;
  width: min(35vw, 520px);
  aspect-ratio: 1;
  right: max(32px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(23,23,19,.16);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(255,255,255,.5), rgba(255,90,54,.035) 58%, rgba(255,90,54,.08));
  box-shadow: 0 0 0 30px rgba(255,90,54,.075), 0 0 0 60px rgba(255,90,54,.035);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.trust-line span::before { content: "✓"; color: var(--accent-dark); margin-right: 7px; }
.hero-stack { position: relative; min-height: 470px; }
.stack-card {
  position: absolute;
  width: 76%;
  min-height: 172px;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 12px 0 var(--ink);
}
.stack-card img { width: 62px; height: 62px; border-radius: 15px; margin-bottom: 22px; }
.stack-card strong { display: block; font-size: 1.28rem; }
.stack-card small { color: rgba(23,23,19,.65); font-weight: 700; }
.stack-card:nth-child(1) { top: 0; right: 2%; background: var(--yellow); transform: rotate(3deg); }
.stack-card:nth-child(2) { top: 142px; left: 2%; background: var(--blue); transform: rotate(-4deg); }
.stack-card:nth-child(3) { top: 294px; right: 7%; background: var(--violet); transform: rotate(2deg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 44px; }
.section-head p { max-width: 520px; margin-bottom: 4px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-7px); box-shadow: 8px 10px 0 var(--ink); }
.product-card.tone-yellow { background: var(--yellow); }
.product-card.tone-blue { background: var(--blue); }
.product-card.tone-violet { background: var(--violet); }
.product-card.tone-lime { background: var(--lime); }
.product-icon { width: 74px; height: 74px; border-radius: 18px; margin-bottom: 44px; box-shadow: 0 8px 24px rgba(23,23,19,.12); }
.product-card h3 { font-size: 1.8rem; }
.product-card p { color: #4e4e47; }
.product-meta { margin-top: auto; padding-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 800; }
.arrow-circle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.3rem; }
.feature-strip { background: var(--ink); color: white; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.mini-grid article { border-top: 1px solid rgba(255,255,255,.28); padding-top: 24px; }
.mini-grid .number { color: var(--lime); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.mini-grid p { color: rgba(255,255,255,.66); }
.roadmap { display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; align-items: start; }
.roadmap-list { border-top: 1px solid var(--line); }
.roadmap-item { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.roadmap-item span { color: var(--accent-dark); font-weight: 900; }
.pricing-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { padding: 32px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.price-card.featured { background: var(--ink); color: white; }
.price { font-size: 3rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 26px 0; }
.price small { font-size: .95rem; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.featured .price small, .featured .muted { color: rgba(255,255,255,.62); }
.check-list { padding: 0; margin: 26px 0 30px; list-style: none; }
.check-list li { padding: 9px 0; border-bottom: 1px solid rgba(100,100,94,.22); }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 10px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 850; cursor: pointer; }
.faq-question span:last-child { transition: transform .2s ease; }
.faq-item[data-open="true"] .faq-question span:last-child { transform: rotate(45deg); }
.faq-answer { display: none; max-width: 710px; padding: 0 0 24px; color: var(--muted); }
.faq-item[data-open="true"] .faq-answer { display: block; }
.cta-band { margin: 30px 0 90px; padding: 52px; border-radius: 30px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.footer { padding: 50px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-grid > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.footer-grid > div:first-child > p,
.footer-grid > div:first-child > small { margin: 0; max-width: 720px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px 26px; font-weight: 700; font-size: .9rem; }
.footer small { color: var(--muted); }

/* Product detail */
.product-hero { padding: 66px 0 90px; border-bottom: 1px solid var(--line); }
.product-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.product-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.product-title-row img { width: 78px; height: 78px; border-radius: 18px; }
.product-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.demo-frame { overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--ink); border-radius: 26px; background: #10100e; box-shadow: 10px 12px 0 var(--ink); }
.demo-frame iframe { width: 100%; height: 100%; border: 0; }
.demo-ui { height: 100%; padding: 28px; color: white; background: radial-gradient(circle at 80% 15%, #8859ff, transparent 35%), #191821; }
.demo-window { height: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.demo-toolbar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
.demo-toolbar i { width: 9px; height: 9px; background: rgba(255,255,255,.4); border-radius: 50%; }
.demo-content { display: grid; grid-template-columns: .85fr 1.15fr; height: calc(100% - 36px); }
.demo-form { padding: 22px; border-right: 1px solid rgba(255,255,255,.13); }
.demo-label { margin: 16px 0 6px; color: rgba(255,255,255,.58); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.demo-field { height: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.08); }
.demo-button { margin-top: 22px; padding: 10px; border-radius: 9px; background: #7c5cff; text-align: center; font-size: .8rem; font-weight: 800; }
.demo-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; align-content: start; }
.demo-tile { aspect-ratio: 1.2; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(217,199,255,.8), rgba(185,217,255,.68)); color: #2e2450; font-size: .75rem; font-weight: 800; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.stat { padding-top: 16px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.15rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card { min-height: 220px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-card b { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 40px; border-radius: 50%; background: var(--lime); }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.notice { padding: 20px 24px; border-left: 4px solid var(--accent); background: #fff3ee; color: #575048; }
.demo-image { width: 100%; height: 100%; object-fit: cover; }

/* Extension catalog */
.catalog-hero { padding: 72px 0 58px; border-bottom: 1px solid var(--line); }
.catalog-hero h1 { max-width: 920px; font-size: clamp(3.4rem, 7vw, 6.7rem); }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.catalog-chip { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.55); font-size: .82rem; font-weight: 800; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .22s ease, box-shadow .22s ease;
}
.catalog-card:hover { transform: translateY(-6px); box-shadow: 8px 10px 0 var(--ink); }
.catalog-card .product-icon { margin-bottom: 34px; }
.catalog-card p { color: #505049; }
.catalog-card .product-meta { font-size: .9rem; }
.catalog-card.tone-yellow { background: var(--yellow); }
.catalog-card.tone-blue { background: var(--blue); }
.catalog-card.tone-violet { background: var(--violet); }
.catalog-card.tone-lime { background: var(--lime); }
.catalog-note { margin-top: 28px; color: var(--muted); font-size: .9rem; }

/* Legal */
.legal-hero { padding: 56px 0 50px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 18px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 70px; padding: 70px 0 100px; }
.legal-nav { position: sticky; top: 110px; align-self: start; display: grid; gap: 10px; font-size: .88rem; font-weight: 750; }
.legal-nav a { color: var(--muted); }
.legal-nav a:hover { color: var(--accent-dark); }
.legal-content h2 { margin-top: 55px; font-size: 2rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 32px; font-size: 1.25rem; letter-spacing: -.02em; }
.legal-content p, .legal-content li { color: #55554e; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero-grid, .product-hero-grid, .roadmap, .legal-layout { grid-template-columns: 1fr; }
  .hero-stack { min-height: 420px; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { min-height: 380px; }
  .mini-grid, .pricing-preview { grid-template-columns: 1fr; }
  .legal-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1180px); }
  .section { padding: 70px 0; }
  .hero { padding: 66px 0 76px; }
  .hero::after { display: none; }
  .hero-grid { gap: 44px; }
  h1 { font-size: 3.3rem; }
  h2 { font-size: 2.5rem; }
  .hero-stack { min-height: 360px; }
  .stack-card { width: 82%; min-height: 148px; padding: 22px; }
  .stack-card img { width: 50px; height: 50px; margin-bottom: 14px; }
  .stack-card:nth-child(2) { top: 110px; }
  .stack-card:nth-child(3) { top: 230px; }
  .section-head { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-hero { padding-top: 38px; }
  .product-hero-grid { gap: 42px; }
  .product-title-row img { width: 62px; height: 62px; }
  .demo-frame { aspect-ratio: 4/3; box-shadow: 6px 7px 0 var(--ink); }
  .demo-ui { padding: 14px; }
  .demo-content { grid-template-columns: 1fr; }
  .demo-results { display: none; }
  .demo-form { border-right: 0; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-band { align-items: flex-start; padding: 34px 26px; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .legal-layout { gap: 44px; }
  .legal-nav { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
