/* ==========================================================================
   Trafium landing v34 — Webild/Base44 interaction pass
   Flat near-black #08090b · Switzer + General Sans · white CTAs
   Transparent Trafium mark · searchable site previews · accessible overlay
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-2: #06070a;
  --surface: #111827;
  --surface-2: #1a2332;
  --surface-3: #243044;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #F8FAFC;
  --text-2: #94A3B8;
  --muted: #64748B;
  --faint: #475569;

  --accent: #3B82F6;
  --accent-hi: #60A5FA;
  --accent-deep: #2563EB;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-line: rgba(59, 130, 246, 0.38);

  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --live: #34D399;
  --live-soft: rgba(52, 211, 153, 0.14);

  /* aliases for legacy selectors */
  --signal: var(--accent);
  --signal-hi: var(--accent-hi);
  --signal-deep: var(--accent-deep);
  --signal-soft: var(--accent-soft);
  --signal-line: var(--accent-line);

  --paper: #F8FAFC;
  --paper-2: #EEF2F7;
  --card: #ffffff;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-muted: #64748B;
  --ink-line: rgba(15, 23, 42, 0.10);
  --ink-line-2: rgba(15, 23, 42, 0.16);

  --radius-s: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --pad: 40px;
  --container: 1200px;
  --nav-h: 72px;

  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --btn-font: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 0.9, 0.35, 1);

  --shadow-1: 0 10px 24px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 18px 40px rgba(0, 0, 0, 0.3);
  --shadow-ink: 0 10px 26px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
body.preview-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--signal-soft); color: #fff; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-weight: 700; letter-spacing: -0.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--btn-font); font-weight: 600; font-size: 14.5px; line-height: 1;
  letter-spacing: -0.015em;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-cta, .btn-solid {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(110deg, #a855f7 0%, #5568f6 46%, #3b82f6 68%, #ff7a70 100%);
  background-size: 180% 180%;
  animation: action-gradient 7s ease infinite;
  box-shadow: 0 10px 26px rgba(88, 80, 236, 0.35), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-cta:hover, .btn-solid:hover {
  border-color: rgba(196, 181, 253, 0.75);
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(88, 80, 236, 0.42), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.section--light .btn-cta, .section--light .btn-solid {
  color: #fff;
  background: linear-gradient(110deg, #a855f7 0%, #5568f6 46%, #3b82f6 68%, #ff7a70 100%);
  background-size: 180% 180%;
  animation: action-gradient 7s ease infinite;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}
.section--light .btn-cta:hover, .section--light .btn-solid:hover {
  background-position: 100% 50%;
  border-color: rgba(99, 102, 241, 0.7);
  color: #fff;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); border-radius: 999px; }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(248, 250, 252, 0.04); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; border-radius: 14px; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; max-width: var(--container); margin: 0 auto;
  left: 0; right: 0;
}
.nav::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: -1;
  background: rgba(10, 11, 13, 0); backdrop-filter: blur(0); border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav-scrolled .nav::before {
  background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em;
  color: var(--text); display: inline-flex; align-items: center; gap: 9px;
}
.logo-mark {
  width: 34px; height: 34px; display: block; flex: none;
  border-radius: 8px;
  /* CEO PNG has a near-black plate; screen-blend removes it on dark surfaces */
  mix-blend-mode: screen;
}
/* auto margins on both groups keep the link cluster centered between logo and actions */
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-actions { margin-left: auto; }
.nav-links a {
  color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(244, 242, 236, 0.05); }
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--signal); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  padding: 8px 12px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.lang-btn:hover { color: var(--text); border-color: var(--line-3); background: rgba(248, 250, 252, 0.04); }
.lang-caret { transition: transform .2s var(--ease); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 130;
  min-width: 156px; padding: 6px; border-radius: 12px;
  background: rgba(14, 16, 20, 0.97); border: 1px solid var(--line-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}
.lang-list[hidden] { display: none; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  background: transparent; border: 0; color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 9px 11px; border-radius: 8px; cursor: pointer; text-align: left;
  transition: color .15s, background .15s;
}
.lang-opt:hover { color: var(--text); background: rgba(248, 250, 252, 0.06); }
.lang-opt[aria-pressed="true"] { color: var(--text); }
.lang-opt[aria-pressed="true"]::after {
  content: ""; width: 6px; height: 10px; flex: none; margin-right: 2px;
  border-right: 2px solid var(--signal-hi); border-bottom: 2px solid var(--signal-hi);
  transform: rotate(45deg) translateY(-1px);
}

.nav-menu {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-menu-bars, .nav-menu-bars::before, .nav-menu-bars::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px; background: var(--text);
  transform: translateX(-50%); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-menu-bars { top: 50%; margin-top: -1px; }
.nav-menu-bars::before { top: -6px; }
.nav-menu-bars::after { top: 6px; }
.nav[aria-hidden] {}
[aria-expanded="true"] .nav-menu-bars { background: transparent; }
[aria-expanded="true"] .nav-menu-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav-menu-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 95;
  background: rgba(12, 13, 16, 0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line); padding: 18px 24px 26px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer a {
  color: var(--text); font-size: 17px; font-weight: 500; padding: 13px 6px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer .lang-menu { align-self: flex-start; margin: 14px 0 4px; }
.mobile-drawer .lang-btn { min-height: 44px; }
.mobile-drawer .lang-list { left: 0; right: auto; }
.mobile-drawer .btn { margin-top: 12px; }
.mobile-drawer[hidden] { display: none; }

/* ---------------- Shared section chrome ---------------- */
.section { padding: 96px 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transform: scaleX(0.94);
  transform-origin: center;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section.is-shifted::before { opacity: 1; transform: scaleX(1); }
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--text-2);
}
.section-intro { max-width: 640px; }
.section-intro h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 14px 0 0; letter-spacing: -0.03em; }
.section-intro .lead { margin-top: 16px; color: var(--text-2); font-size: 18px; line-height: 1.6; }

/* Dark-unified: former light sections now inherit the site palette.
   Legacy ink/paper tokens are remapped locally so all inner rules follow. */
.section--light {
  --paper: var(--bg);
  --paper-2: var(--bg-2);
  --card: rgba(255, 255, 255, 0.03);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-muted: var(--muted);
  --ink-line: var(--line);
  --ink-line-2: var(--line-2);
  --signal-deep: var(--signal-hi);
  --shadow-ink: 0 10px 26px rgba(0, 0, 0, 0.3);
  background: var(--bg); color: var(--text);
}
.section--light .eyebrow { color: var(--ink-muted); }
.section--light h2 { color: var(--ink); }
.section--light .lead { color: var(--ink-2); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--nav-h) + 64px) 0 92px; overflow: hidden; background: var(--bg); }
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-stars .ambient-star {
  opacity: 0.95;
  box-shadow: 0 0 14px rgba(192, 210, 255, 0.85), 0 0 5px rgba(255, 255, 255, 0.95);
  animation: star-twinkle-big 3.2s ease-in-out infinite, star-float 20s ease-in-out infinite;
}
.hero-stars .ambient-star.s3,
.hero-stars .ambient-star.s6 { width: 6px; height: 6px; }
.hero-stars .ambient-star.s5,
.hero-stars .ambient-star.s10 { width: 5px; height: 5px; }
.hero-mesh { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: min(94vw, 860px); margin: 0 auto; text-align: center; }
.hero-title { font-size: clamp(38px, 4.8vw + 14px, 84px); margin: 0; letter-spacing: -0.035em; font-weight: 700; line-height: 1.04; }
.hero-title .line { display: block; }
.hero-title-tail { color: #fff; font-weight: 600; font-size: 0.9em; margin-top: 8px; letter-spacing: -0.03em; }
.kinetic-line { min-height: 1.05em; color: transparent; }
.kinetic-viewport {
  display: inline-block;
  vertical-align: bottom;
  text-align: center;
  white-space: nowrap;
}
.kinetic-word {
  display: inline-block; will-change: transform, opacity; white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg, #c084fc 0%, #7aa8ff 48%, #ff8f85 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub { margin: 22px auto 0; font-size: clamp(15px, 0.55vw + 10px, 18px); line-height: 1.65; color: #fff; max-width: min(86vw, 560px); font-weight: 450; }

.prompt {
  margin: 30px auto 0; max-width: 560px; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 15px;
  background:
    linear-gradient(rgba(15, 20, 32, 0.92), rgba(15, 20, 32, 0.92)) padding-box,
    linear-gradient(110deg, #a855f7 0%, #5568f6 30%, #3b82f6 55%, #ff7a70 80%, #a855f7 100%) border-box;
  background-size: 100% 100%, 320% 100%;
  animation: action-gradient 6s ease infinite;
  padding: 7px 7px 7px 16px; position: relative;
  transition: box-shadow .25s var(--ease);
}
.prompt:focus-within {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16), 0 0 36px rgba(129, 100, 250, 0.22);
}
.prompt-icon { color: var(--accent-hi); }
.prompt input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text); font-family: var(--sans); font-size: 15px; padding: 11px 0;
}
.prompt input::placeholder { color: var(--faint); }
.prompt .btn { flex: none; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 18px; }
.pill {
  position: relative;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: color .16s, background .16s;
}
.pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.pill:focus-visible { color: var(--text); border-color: var(--line-3); }


/* ==========================================================================
   CAPABILITIES — Webflow-style 3-column
   ========================================================================== */
.section--capabilities { padding-top: 8px; padding-bottom: 100px; }
.section--capabilities .section-intro { max-width: 780px; margin: 0 auto; text-align: center; }
.section--capabilities .section-intro h2 { margin-top: 14px; font-size: clamp(24px, 3.1vw, 36px); line-height: 1.3; }
.cap-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cap-card { display: flex; flex-direction: column; }
.cap-media {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--surface);
}
.cap-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.cap-card:hover .cap-media img { transform: scale(1.04); }
.cap-card h3 { margin-top: 24px; font-size: 21px; color: var(--text); }
.cap-card p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.cap-card .text-link { margin-top: 18px; }

/* ==========================================================================
   SHOWCASE — searchable Webild-inspired preview browser
   ========================================================================== */
.section--showcase { padding-bottom: 104px; }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.showcase-browser-content { transition: filter .28s var(--ease), opacity .28s var(--ease); }
body.preview-open .showcase-browser-content { filter: blur(8px); opacity: .28; pointer-events: none; }
.showcase-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.showcase-card {
  width: 100%; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer;
  border: 1px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  /* top-lit glass edge instead of a flat gray border */
  background:
    linear-gradient(rgba(13, 16, 24, 0.94), rgba(13, 16, 24, 0.94)) padding-box,
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 40%, rgba(168, 85, 247, 0.14) 100%) border-box;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.showcase-card:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(rgba(15, 18, 27, 0.96), rgba(15, 18, 27, 0.96)) padding-box,
    linear-gradient(140deg, rgba(168, 85, 247, 0.85), rgba(85, 104, 246, 0.85) 50%, rgba(255, 122, 112, 0.65) 100%) border-box;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 44px rgba(99, 102, 241, 0.16);
}
.showcase-card[hidden] { display: none; }
.showcase-media { display: block; overflow: hidden; background: #111827; }
.showcase-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform .55s var(--ease);
}
.showcase-card:hover img { transform: scale(1.025); }
.showcase-meta {
  padding: 12px 13px 13px;
  display: grid;
  gap: 4px;
}
.showcase-meta strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.showcase-meta span { font-size: 12.5px; color: var(--text-2); }
.showcase-meta small { min-width: 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-empty { margin-top: 30px; text-align: center; color: var(--text-2); }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.preview-dialog {
  width: min(1420px, calc(100vw - 48px)); max-width: none; height: min(840px, calc(100dvh - 48px));
  padding: 0; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  color: var(--text); background: #0d111a; box-shadow: 0 32px 100px rgba(0,0,0,.68);
}
.preview-dialog::backdrop { background: rgba(2, 4, 9, .72); backdrop-filter: blur(3px); }
.preview-shell { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 330px; position: relative; }
.preview-main { min-width: 0; height: 100%; padding: 16px; overflow: auto; background: #070a10; }
.preview-main img { width: 100%; height: auto; border-radius: 12px; }
.preview-rail { padding: 54px 28px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.preview-rail h3 { margin-top: 16px; font-size: 28px; overflow-wrap: anywhere; }
.preview-rail p { margin-top: 14px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.preview-generate { margin-top: auto; width: 100%; min-height: 52px; background-size: 180% 180%; animation: action-gradient 5s ease infinite; }
.preview-close {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(8, 9, 11, .86); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
@keyframes action-gradient { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }

/* ==========================================================================
   PLATFORM — shipped flow (light)
   ========================================================================== */
.flow { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.fstep { position: relative; border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 32px 28px; background: transparent; }
.fstep h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.fstep p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* Webild-style How it works */
.section--platform .section-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.section--platform .section-intro h2 { margin-top: 14px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; }
.section--platform .section-intro .lead { margin-top: 16px; }
.hiw { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.hiw-nav { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ink-line); }
.hiw-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px 0 24px; border: 0; border-bottom: 1px solid var(--ink-line);
  background: none; cursor: pointer; text-align: left; width: 100%;
  transition: opacity .25s var(--ease);
}
.hiw-tab-line { display: block; width: 100%; height: 2px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 2px; }
.hiw-tab-fill { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #a855f7, #3b82f6, #ff7a70); transition: width .1s linear; }
.hiw-tab.is-active .hiw-tab-fill { width: 100%; animation: hiw-progress 5.5s linear forwards; }
.hiw-tab:not(.is-active) { opacity: .45; }
.hiw-tab.is-active { opacity: 1; }
.hiw-tab-title { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: var(--ink); line-height: 1.2; }
.hiw-tab-desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 420px; display: none; }
.hiw-tab.is-active .hiw-tab-desc { display: block; animation: hiw-fade-in .35s var(--ease); }
.hiw-stage { position: relative; min-height: 380px; }
.hiw-panel {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.hiw-panel.is-active {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}
.hiw-mock {
  border-radius: 22px; padding: 28px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  min-height: 340px; display: grid; align-content: center;
}
.hiw-mock-shell { display: grid; gap: 18px; }
.hiw-mock-prompt {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
  border-radius: 16px; background: rgba(8,10,15,.75); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 0 0 1px rgba(168,85,247,.15), 0 12px 32px rgba(88,80,236,.18);
}
.hiw-mock-plus { color: var(--accent-hi); font-size: 20px; font-weight: 500; line-height: 1; }
.hiw-mock-text { flex: 1; font-size: 15px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hiw-mock-submit {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(110deg, #a855f7, #3b82f6); color: #fff; flex: none;
  animation: hiw-pulse 2.4s ease-in-out infinite;
}
.hiw-mock-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw-mock-pills span {
  font-size: 12.5px; color: var(--text-2); padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
}
.hiw-kw { display: grid; gap: 16px; }
.hiw-kw-root {
  justify-self: center; padding: 10px 18px; border-radius: 12px; font-size: 13px; font-weight: 600;
  color: #fff; background: linear-gradient(110deg, #a855f7, #3b82f6);
}
.hiw-kw-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hiw-kw-cluster {
  padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  display: grid; gap: 8px;
}
.hiw-kw-label { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-hi); font-weight: 600; }
.hiw-chip {
  display: inline-block; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; line-height: 1.3; color: var(--text-2);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
}
.hiw-panel.is-active .hiw-chip { animation: hiw-chip-in .4s var(--ease) backwards; }
.hiw-panel.is-active .hiw-chip:nth-child(2) { animation-delay: .1s; }
.hiw-panel.is-active .hiw-chip:nth-child(3) { animation-delay: .25s; }
.hiw-panel.is-active .hiw-chip:nth-child(4) { animation-delay: .4s; }
.hiw-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hiw-page-card { padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); display: grid; gap: 7px; align-content: start; }
.hiw-page-title { font-size: 12px; font-weight: 600; color: var(--accent-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hiw-page-card i { display: block; height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); }
.hiw-page-card i:nth-child(3) { width: 82%; } .hiw-page-card i:nth-child(4) { width: 64%; }
.hiw-panel.is-active .hiw-page-card { animation: hiw-chip-in .45s var(--ease) backwards; }
.hiw-panel.is-active .hiw-page-card:nth-child(1) { animation-delay: .55s; }
.hiw-panel.is-active .hiw-page-card:nth-child(2) { animation-delay: .7s; }
.hiw-panel.is-active .hiw-page-card:nth-child(3) { animation-delay: .85s; }
.hiw-browser { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(8,10,15,.6); }
.hiw-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hiw-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.hiw-browser-url {
  margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11px; color: var(--text-2);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.hiw-browser-shot { display: block; width: 100%; height: 210px; object-fit: cover; object-position: top; }
.hiw-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hiw-checks li {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(52,211,153,.25); background: rgba(52,211,153,.08);
}
.hiw-checks .icon { color: #34d399; flex: none; }
.hiw-panel.is-active .hiw-checks li { animation: hiw-chip-in .4s var(--ease) backwards; }
.hiw-panel.is-active .hiw-checks li:nth-child(2) { animation-delay: .15s; }
.hiw-panel.is-active .hiw-checks li:nth-child(3) { animation-delay: .3s; }
.hiw-panel.is-active .hiw-checks li:nth-child(4) { animation-delay: .45s; }
.hiw-mock-text.is-typing::after {
  content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: text-bottom;
  background: var(--accent-hi); animation: hiw-caret 1s steps(1) infinite;
}
@keyframes hiw-progress { from { width: 0%; } to { width: 100%; } }
@keyframes hiw-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hiw-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(88,80,236,.35); } 50% { box-shadow: 0 0 0 8px rgba(88,80,236,0); } }
@keyframes hiw-chip-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hiw-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 960px) {
  .hiw { grid-template-columns: 1fr; gap: 28px; }
  .hiw-stage { min-height: 280px; }
  .hiw-mock { min-height: 280px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-tab.is-active .hiw-tab-fill { animation: none; width: 100%; }
  .hiw-mock-submit { animation: none; }
  .hiw-panel { transition: none; }
  .hiw-panel.is-active .hiw-chip,
  .hiw-panel.is-active .hiw-page-card,
  .hiw-panel.is-active .hiw-checks li { animation: none; }
  .hiw-mock-text.is-typing::after { animation: none; }
}

.inside { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.inside-item {
  padding: 22px 20px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
}
.inside-item h4 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.inside-item p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.platform-note {
  margin-top: 34px; padding: 20px 24px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  color: var(--ink-2); font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.platform-note-text { flex: 1 1 320px; text-align: left; line-height: 1.55; }
.platform-note-btn { flex: none; white-space: nowrap; }

/* ==========================================================================
   PRICING (light) — Base44-style: headline left, stacked cards right
   ========================================================================== */
.pricing-layout { display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px; align-items: start; }
.pricing-head { max-width: 400px; position: sticky; top: calc(var(--nav-h) + 40px); }
.pricing-head h2 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 40px); }
.pricing-head .lead { margin-top: 16px; }
.pricing-enterprise { margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--ink-line-2); font-size: 14.5px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pricing-enterprise .text-link { color: var(--signal-deep); }

.pricing-cards { display: grid; gap: 20px; }
.price-card {
  position: relative; border-radius: var(--radius-lg); padding: 32px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#10141c, #10141c) padding-box,
    linear-gradient(110deg, rgba(168, 85, 247, 0.55) 0%, rgba(85, 104, 246, 0.55) 30%, rgba(59, 130, 246, 0.55) 55%, rgba(255, 122, 112, 0.5) 80%, rgba(168, 85, 247, 0.55) 100%) border-box;
  background-size: 100% 100%, 320% 100%;
  animation: action-gradient 7s ease infinite;
  box-shadow: var(--shadow-ink);
}
.price-card--full {
  background:
    linear-gradient(#10141c, #10141c) padding-box,
    linear-gradient(110deg, #a855f7 0%, #5568f6 30%, #3b82f6 55%, #ff7a70 80%, #a855f7 100%) border-box;
  background-size: 100% 100%, 320% 100%;
  animation: action-gradient 6s ease infinite;
}
.price-tag {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--signal-deep);
  margin-bottom: 14px;
}
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.price-name { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); }
.price-figure b { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); }
.price-card--full .price-figure b { color: var(--signal-deep); }
.price-desc { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.price-list { margin: 22px 0 26px; display: grid; gap: 12px; }
.price-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.price-list .icon { color: var(--signal-deep); flex: none; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn-ink:hover { background: #1c2333; border-color: #1c2333; transform: translateY(-2px); }
.btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--ink-line-2); box-shadow: none; }
.btn-outline-ink:hover { border-color: var(--ink); background: rgba(248, 250, 252, 0.05); }

/* ==========================================================================
   FAQ (light) — Base44-style: title left, accordion right
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px; align-items: start; }
.faq-head { max-width: 380px; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head h2 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 40px); }
.faq-head .lead { margin-top: 16px; }
.faq-accordion { display: grid; gap: 12px; }
.faq-d {
  border: 1px solid var(--ink-line); border-radius: var(--radius); background: var(--card);
  padding: 4px 22px; transition: border-color .2s, background .2s;
}
.faq-d[open] { border-color: var(--accent-line); background: rgba(59, 130, 246, 0.06); }
.faq-d summary {
  list-style: none; cursor: pointer; padding: 20px 0; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink);
}
.faq-d summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--ink-muted); flex: none; transition: transform .25s var(--ease); }
.faq-d[open] .faq-chev { transform: rotate(180deg); color: var(--signal-deep); }
.faq-d p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ==========================================================================
   BLOG (dark)
   ========================================================================== */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font-weight: 600; font-size: 15px; }
.text-link:hover { color: var(--signal-hi); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.02);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.post:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(255, 255, 255, 0.045); }
.post-link { display: flex; flex-direction: column; padding: 28px 26px; height: 100%; min-height: 220px; }
.post-top { display: flex; align-items: center; margin-bottom: 18px; }
.post-index { display: none; }
.post-tag {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--text-2);
  border: 0; border-radius: 0; padding: 0; background: none;
}
.post h3 { font-size: 20px; line-height: 1.28; letter-spacing: -0.025em; color: var(--text); margin: 0 0 auto; font-weight: 600; }
.post-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-meta { font-size: 13.5px; color: var(--muted); font-weight: 450; }
.post-foot .icon { color: var(--text-2); transition: color .18s, transform .18s; }
.post:hover .post-foot .icon { color: var(--accent-hi); transform: translateX(3px); }

/* ==========================================================================
   PRE-FOOTER CTA — single statement, no fake UI
   ========================================================================== */
.cta {
  padding: 152px 0 0; position: relative; overflow: hidden;
  background: #0a0c12; text-align: center;
}
.cta-horizon {
  position: absolute; top: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(760px, 84%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(148, 163, 255, 0.5), transparent);
}
.cta-horizon::after {
  content: ""; position: absolute; top: -120px; left: 50%; width: 60vw; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%);
}
.cta .container { position: relative; z-index: 1; }
.cta-final { max-width: 720px; margin: 0 auto; }
.cta-final-title { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.035em; color: #fff; }
.cta-final-title .line { display: block; }
.cta-build-link {
  margin: 42px auto 0; width: fit-content; max-width: 100%;
  display: inline-flex; align-items: center; gap: .22em;
  color: #fff; font-family: var(--btn-font); font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 500; line-height: 1.05; letter-spacing: -.04em;
  border-bottom: .055em solid currentColor; padding-bottom: .08em;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.cta-build-link .icon { width: .7em; height: .7em; }
.cta-build-link:hover, .cta-build-link:focus-visible { color: #9ba8ff; gap: .34em; }
.cta-final-mark {
  position: relative; z-index: 1; margin: 72px 0 0; overflow: hidden;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(64px, 22vw, 240px); line-height: 0.78; white-space: nowrap;
  color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  user-select: none;
  background-size: 220% 100%;
  animation: wordmark-sweep 9s ease-in-out infinite;
}
@keyframes wordmark-sweep {
  0%, 62%, 100% { background-position: 100% 0; }
  78% { background-position: 0 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: var(--signal-hi); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copy { color: var(--faint); font-size: 13.5px; }
.footer-bottom .foot-mini { display: flex; gap: 18px; }
.footer-bottom .foot-mini a { color: var(--muted); font-size: 13.5px; }
.footer-bottom .foot-mini a:hover { color: var(--text); }

/* ==========================================================================
   BLOG ARTICLE / INDEX pages
   ========================================================================== */
.article-wrap { padding: calc(var(--nav-h) + 56px) 0 40px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--signal-hi); }
.crumbs .sep { color: var(--faint); }
.article { max-width: 720px; margin: 0 auto; }
.article-hd { margin-bottom: 40px; }
.article-hd .post-tag { display: inline-block; margin-bottom: 18px; }
.article-hd h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }
.article-meta { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-lead { margin-top: 22px; font-size: 20px; line-height: 1.6; color: var(--text); }
.prose { color: var(--text-2); font-size: 17.5px; line-height: 1.75; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 28px; color: var(--text); margin-top: 48px; }
.prose h3 { font-size: 21px; color: var(--text); margin-top: 34px; }
.prose h4 { font-size: 18px; color: var(--text); margin-top: 26px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.prose a { color: var(--signal-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--signal-line); }
.prose a:hover { text-decoration-color: var(--signal-hi); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 11px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--signal); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--signal-hi); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
.prose blockquote {
  margin: 26px 0; padding: 20px 22px; border-left: 3px solid var(--signal);
  background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text); font-size: 16.5px;
}
.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text-2); font-size: 16.5px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--line-3); background: var(--surface);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px;
  border-left: 2px solid var(--live); border-bottom: 2px solid var(--live); transform: rotate(-45deg);
}
.faq { margin-top: 20px; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 20px 22px; }
.faq-item h3 { font-size: 17px; color: var(--text); margin: 0 0 8px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.faq-item p { color: var(--text-2); font-size: 15.5px; line-height: 1.65; }

.article-cta {
  margin: 56px auto 0; max-width: 720px; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #16191f, #101216); border: 1px solid var(--line-2); text-align: center;
}
.article-cta h2 { font-size: 26px; margin: 0 0 10px; color: #fff; }
.article-cta p { color: var(--text-2); margin-bottom: 22px; }
.related { max-width: 720px; margin: 48px auto 0; }
.related-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 20px; background: var(--surface); transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: var(--line-3); transform: translateY(-3px); }
.related-card .post-tag { margin-bottom: 12px; display: inline-block; }
.related-card h3 { font-size: 16.5px; color: var(--text); line-height: 1.3; }

/* blog index list */
.bloglist { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.bloglist .post { display: block; }
.bloglist .post-link { display: flex; flex-direction: row; gap: 22px; align-items: baseline; min-height: 0; }
.bloglist .post-index { font-size: 15px; }
.bloglist h2 { font-family: var(--display); font-size: 22px; color: var(--text); line-height: 1.25; margin: 8px 0; }
.bloglist p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.bloglist .bl-main { flex: 1; }
.bloglist .post-meta { margin-top: 12px; }

/* ==========================================================================
   MOTION base states
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   AMBIENT — star field, whole-page
   ========================================================================== */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-stars { display: none; }
.ambient-star {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(200,220,255,0.9) 40%, rgba(180,200,255,0) 100%);
  box-shadow: 0 0 12px rgba(200, 220, 255, 0.65), 0 0 4px rgba(255, 255, 255, 0.9);
  opacity: 0.85;
  animation: star-twinkle-big 4s ease-in-out infinite, star-float 22s ease-in-out infinite;
}
.ambient-star.s1 { width: 4px; height: 4px; top: 12%; left: 8%; animation-delay: 0s, 0s; }
.ambient-star.s2 { width: 3px; height: 3px; top: 24%; left: 82%; animation-delay: -0.7s, -3s; }
.ambient-star.s3 { width: 5px; height: 5px; top: 42%; left: 22%; animation-delay: -1.5s, -6s; }
.ambient-star.s4 { width: 3.5px; height: 3.5px; top: 58%; left: 88%; animation-delay: -2.2s, -9s; }
.ambient-star.s5 { width: 4px; height: 4px; top: 74%; left: 14%; animation-delay: -0.4s, -12s; }
.ambient-star.s6 { width: 5px; height: 5px; top: 86%; left: 62%; animation-delay: -1.8s, -15s; }
.ambient-star.s7 { width: 3px; height: 3px; top: 32%; left: 48%; animation-delay: -2.5s, -18s; }
.ambient-star.s8 { width: 4.5px; height: 4.5px; top: 66%; left: 52%; animation-delay: -1.1s, -21s; }
.ambient-star.s9 { width: 3.5px; height: 3.5px; top: 18%; left: 64%; animation-delay: -3s, -8s; }
.ambient-star.s10 { width: 4px; height: 4px; top: 78%; left: 36%; animation-delay: -1.4s, -11s; }
.hero-stars .ambient-star.s1 { top: 18%; left: 10%; }
.hero-stars .ambient-star.s2 { top: 28%; left: 78%; }
.hero-stars .ambient-star.s3 { top: 48%; left: 18%; }
.hero-stars .ambient-star.s4 { top: 62%; left: 88%; }
.hero-stars .ambient-star.s5 { top: 76%; left: 28%; }
.hero-stars .ambient-star.s6 { top: 22%; left: 42%; }
.hero-stars .ambient-star.s7 { top: 55%; left: 56%; }
.hero-stars .ambient-star.s8 { top: 38%; left: 90%; }
.hero-stars .ambient-star.s9 { top: 70%; left: 70%; }
.hero-stars .ambient-star.s10 { top: 14%; left: 60%; }
@keyframes star-twinkle-big {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes star-float {
  0%, 100% { translate: 0 0; }
  25% { translate: 18px -22px; }
  50% { translate: -14px -8px; }
  75% { translate: 12px 14px; }
}

/* ==========================================================================
   FLOATING GENERATE BUTTON
   ========================================================================== */
.fab-generate {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--btn-font, var(--sans)); font-size: 15px; font-weight: 600; color: #fff;
  border: 1px solid rgba(196, 181, 253, 0.5);
  background: linear-gradient(110deg, #a855f7 0%, #5568f6 46%, #3b82f6 68%, #ff7a70 100%);
  background-size: 180% 180%;
  animation: action-gradient 7s ease infinite, fab-float 5s ease-in-out infinite;
  box-shadow: 0 14px 36px rgba(88, 80, 236, 0.45), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  opacity: 0; visibility: hidden; translate: 0 16px;
  transition: opacity .3s var(--ease), visibility .3s, translate .3s var(--ease);
}
.fab-generate.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.fab-generate:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 44px rgba(88, 80, 236, 0.55), 0 1px 0 rgba(255, 255, 255, 0.24) inset;
}
.fab-generate .icon { color: #fff; }
@keyframes fab-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.to-top {
  position: fixed; right: 30px; bottom: 88px; z-index: 89;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text); border: 1px solid var(--line-2);
  background: rgba(13, 17, 26, 0.82); backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity .3s var(--ease), visibility .3s, translate .3s var(--ease), border-color .2s, color .2s;
}
.to-top .icon { transform: rotate(180deg); }
.to-top.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { border-color: var(--line-3); color: var(--accent-hi); }
@media (max-width: 640px) {
  .fab-generate { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 14px; }
  .to-top { right: 20px; bottom: 72px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-generate { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cap-grid { gap: 18px; }
  .cap-card h3 { font-size: 18px; margin-top: 18px; }
  .cap-card p { font-size: 14px; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-layout, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .pricing-head, .faq-head { position: static; max-width: none; }
  .posts { gap: 14px; }
  .posts .post-link { padding: 22px 18px; min-height: 190px; }
  .posts .post h3 { font-size: 17px; }
  .flow { gap: 14px; }
  .fstep { padding: 24px 20px; }
  .fstep h3 { font-size: 18px; }
  .fstep p { font-size: 14px; }
  .inside { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .cta { padding-top: 120px; }
  .cta-final-mark { margin-top: 56px; }
}
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: 13.5px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 11px 14px; font-size: 14px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost, .nav-actions .lang-menu { display: none; }
  .nav-menu { display: block; }
  .flow::before { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cap-grid,
  .flow,
  .posts,
  .showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .inside { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .prompt { flex-wrap: wrap; padding: 12px; }
  .prompt input { flex-basis: 100%; padding: 6px 4px 12px; }
  .prompt .btn { width: 100%; }
  .preview-dialog {
    width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0;
  }
  .preview-shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .preview-main { padding: 10px; }
  .preview-main img { height: auto; }
  .preview-rail { padding: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .preview-rail h3 { margin-top: 6px; font-size: 23px; }
  .preview-rail p { margin-top: 8px; }
  .preview-generate { margin-top: 16px; }
  .preview-close { top: 10px; right: 10px; }
  .cap-media { aspect-ratio: 16 / 10; }
  .price-card { padding: 26px 22px; }
  .faq-d { padding: 4px 18px; }
  .cta { padding-top: 88px; }
  .cta-final-title { font-size: clamp(28px, 9vw, 38px); }
  .cta-build-link { margin-top: 32px; font-size: clamp(34px, 11vw, 52px); }
  .cta-final-mark { margin-top: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .bloglist .post-link { flex-direction: column; gap: 6px; }
}
@media (max-width: 400px) {
  .footer-top { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cta-final-mark { background-position: 50% 0 !important; }
}
