:root {
  color-scheme: light;
  --font-display: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --bg: #fbfaf7;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --ink: #111827;
  --ink-soft: #425466;
  --muted: #667788;
  --line: rgba(17, 24, 39, .10);
  --primary: #f2a91d;
  --primary-strong: #d88b00;
  --on-primary: #171303;
  --accent: #1f5eff;
  --accent-strong: #174bd1;
  --success: #157f56;
  --danger: #bf1d1d;
  --shadow-lg: 0 32px 90px rgba(29, 34, 46, .15);
  --shadow-md: 0 18px 48px rgba(29, 34, 46, .10);
  --shadow-sm: 0 8px 24px rgba(29, 34, 46, .07);
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --header-height: 78px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea { font: inherit; }

button, a.button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(31, 94, 255, .55);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Ambient background */
.page-shell {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 8%, rgba(242, 169, 29, .20), transparent 32%),
    radial-gradient(circle at 10% 24%, rgba(31, 94, 255, .14), transparent 27%),
    linear-gradient(180deg, #fffdf8 0%, #f7f8fb 48%, #fffaf0 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .72;
}

.orb-a { width: 390px; height: 390px; left: -100px; top: 70px; background: rgba(242, 169, 29, .32); animation: drift 15s ease-in-out infinite alternate; }
.orb-b { width: 320px; height: 320px; right: -60px; top: 420px; background: rgba(31, 94, 255, .20); animation: drift 18s ease-in-out infinite alternate-reverse; }
.orb-c { width: 420px; height: 420px; left: 40%; bottom: -170px; background: rgba(242, 169, 29, .18); animation: drift 21s ease-in-out infinite alternate; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-height);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}

.site-header.is-stuck {
  height: 68px;
  background: rgba(251, 250, 247, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(17, 24, 39, .08), 0 14px 34px rgba(17, 24, 39, .06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(242, 169, 29, .32));
}

.brand-word { width: 108px; height: auto; color: #111827; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.primary-nav > a {
  position: relative;
  padding: 8px 2px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
  white-space: nowrap;
}

.primary-nav > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  transition: right .2s ease;
}

.primary-nav > a:hover, .primary-nav > a:focus-visible { color: #111827; }
.primary-nav > a:hover::after, .primary-nav > a:focus-visible::after, .primary-nav > a[aria-current="true"]::after { right: 0; }

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #263243;
  font-size: 14px;
  font-weight: 700;
}

.menu-lines { display: grid; gap: 4px; width: 20px; }
.menu-lines i { height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Buttons */
.button {
  --button-bg: #111827;
  --button-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 23px;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-color);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .10);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17, 24, 39, .14); }
.button:active { transform: translateY(0); }

.button-primary {
  --button-bg: linear-gradient(135deg, #ffc84a, #ef9d00);
  --button-color: #171303;
  box-shadow: 0 14px 30px rgba(216, 139, 0, .28);
}

.button-primary:hover { box-shadow: 0 18px 38px rgba(216, 139, 0, .32); }

.button-outline {
  --button-bg: rgba(255, 255, 255, .82);
  --button-color: #223044;
  border: 1px solid rgba(17, 24, 39, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button-ghost {
  --button-bg: rgba(17, 24, 39, .05);
  --button-color: #1f2937;
  box-shadow: none;
}

.button-wide { width: 100%; }
.nav-feedback { min-height: 42px; padding: 8px 18px; }

.nav-feedback,
[data-app-download],
.faq-copy .button-primary,
.cta-form .button-primary {
  --button-bg: #111827;
  --button-color: #ffffff;
  border: 0;
  box-shadow: 0 12px 26px rgba(17, 24, 39, .18);
}

.nav-feedback:hover,
[data-app-download]:hover,
.faq-copy .button-primary:hover,
.cta-form .button-primary:hover {
  background: #000000;
  color: #ffffff;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #28364a;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.icon-button:hover { background: #111827; color: #fff; transform: rotate(90deg); }
.icon-button svg { width: 17px; height: 17px; }

/* Shared typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #77590b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: center;
}

.section-head h2, .hero h1, .cta-panel h2 {
  font-family: var(--font-display);
  color: #111827;
  letter-spacing: -.035em;
}

.section-head p:last-child { margin: 16px 0 0; color: var(--ink-soft); font-size: 17px; }

h2, h3 { line-height: 1.28; }

.section-head h2 { margin: 0; font-size: clamp(30px, 4.4vw, 49px); }

/* Hero */
.hero { padding: calc(var(--header-height) + clamp(36px, 7vw, 92px)) 0 clamp(24px, 5vw, 62px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
}

.hero-copy { max-width: 640px; }

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 5px rgba(25, 169, 116, .15);
}

.hero h1 {
  margin: 0;
  font-size: clamp(41px, 6.9vw, 78px);
  font-weight: 800;
  line-height: 1.04;
}

.hero-lead { max-width: 590px; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 40px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(17, 24, 39, .10);
}

.hero-facts div { padding: 14px 14px 0 0; }
.hero-facts dt { color: #778697; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hero-facts dd { margin: 4px 0 0; color: #1f2937; font-size: 15px; font-weight: 700; line-height: 1.45; }

/* Device */
.hero-visual { display: flex; justify-content: center; }

.device-stage {
  position: relative;
  width: min(420px, 100%);
  padding: 16px;
}

.device-glow {
  position: absolute;
  inset: 6% 2% 10%;
  background: linear-gradient(140deg, rgba(242,169,29,.48), rgba(31,94,255,.25));
  filter: blur(40px);
  transform: rotate(-8deg);
  border-radius: 42px;
}

.device-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: center;
  background: #fff;
  border-radius: 34px;
  filter: drop-shadow(0 35px 75px rgba(17,24,39,.24));
  transform: rotate(2.4deg);
  transition: transform .4s ease;
}

.device-stage:hover .device-frame { transform: rotate(1deg) translateY(-6px); }

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotate(3deg);
}

.floating-card strong { font-size: 13px; color: #182234; }
.floating-card span { color: #667788; font-size: 12px; line-height: 1.45; }
.floating-script { left: -58px; top: 13%; animation: float-a 7s ease-in-out infinite; }
.floating-output { right: -48px; bottom: 10%; animation: float-b 8s ease-in-out infinite; }

/* Feature */
.feature-section { padding-top: clamp(68px, 8vw, 112px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(255,255,255,.70));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 145px; height: 145px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(242,169,29,.24), rgba(31,94,255,.14));
  transform: scale(.75);
  transition: transform .25s ease;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(242,169,29,.38); }
.feature-card:hover::before { transform: scale(1); }

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff8e6, #fff);
  border: 1px solid rgba(242,169,29,.24);
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px rgba(242,169,29,.12);
}

.feature-card h3 { position: relative; margin: 0 0 10px; font-size: 20px; }
.feature-card p { position: relative; margin: 0; color: var(--ink-soft); font-size: 15px; }
.feature-card ul { position: relative; margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-card li { color: #55657a; font-size: 13.5px; font-weight: 650; }
.feature-card li::before { content: "✓"; margin-right: 7px; color: #a26500; font-weight: 800; }

/* Workflow */
.workflow-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.65) 18%, rgba(255,255,255,.65) 82%, rgba(255,255,255,0));
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.workflow-copy h2 { margin: 0; font-size: clamp(30px, 4.3vw, 48px); letter-spacing: -.035em; }
.workflow-copy > p { color: var(--ink-soft); margin: 18px 0 28px; }

.workflow-console {
  display: grid;
  gap: 11px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: rgba(17,24,39,.92);
  box-shadow: var(--shadow-md);
}

.console-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
}

.console-line i {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.console-line.is-active { color: #ffe6ab; font-weight: 700; }
.console-line.is-active i { background: #ffca4b; box-shadow: 0 0 0 5px rgba(255,202,75,.16); }

.workflow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.workflow-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(17,24,39,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.workflow-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }

.step-index {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 16px;
  background: linear-gradient(145deg, #173159, #1f5eff);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.workflow-list h3 { margin: 0 0 6px; font-size: 18px; }
.workflow-list p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* Scenes */
.scenes-section { padding-top: 20px; }

.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: 30px;
  text-align: left;
}

.section-head.split p:last-child { margin: 0 0 4px; max-width: 500px; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.scene-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 270px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}

.scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.scene-card.is-large { grid-row: span 2; min-height: 556px; }

.scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.scene-card:hover .scene-image { transform: scale(1.035); }
.scene-body {
  position: relative;
  z-index: 1;
  min-height: 48%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(17,24,39,0), rgba(17,24,39,.78));
  color: #fff;
}

.scene-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scene-body h3 { margin: 0 0 7px; font-size: 19px; }
.scene-body p { margin: 0; color: rgba(255,255,255,.84); font-size: 13.5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(30px, 5vw, 66px); align-items: start; }

.faq-copy { position: sticky; top: 105px; }
.faq-copy h2 { margin: 0; font-size: clamp(31px, 4.2vw, 48px); letter-spacing: -.035em; }
.faq-copy p { margin: 16px 0 28px; color: var(--ink-soft); }
.faq-list { display: grid; gap: 12px; }

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(17,24,39,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.is-open { border-color: rgba(242,169,29,.40); box-shadow: var(--shadow-sm); }

.faq-item h3 { margin: 0; font-size: 17px; }
.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 68px;
  padding: 19px 21px;
  border: 0;
  background: transparent;
  color: #1f2937;
  text-align: left;
  font-size: 16.5px;
  font-weight: 750;
}

.faq-item button > span {
  flex: 0 0 auto;
  color: #a26500;
  font-size: 23px;
  transition: transform .2s ease;
}

.faq-item button[aria-expanded="true"] > span { transform: rotate(45deg); }
.faq-item > div { display: none; padding: 0 21px 21px; }
.faq-item > div p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.faq-item.is-open > div { display: block; }

/* CTA */
.cta-section { padding-top: 10px; }

.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 88% 15%, rgba(255,202,75,.42), transparent 28%),
    radial-gradient(circle at 5% 90%, rgba(31,94,255,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,255,255,.76));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cta-panel h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.cta-panel > div > p { margin: 14px 0 0; color: var(--ink-soft); }

.cta-form { display: grid; gap: 12px; }

.cta-form label { display: block; margin-bottom: 7px; color: #37475a; font-size: 13.5px; font-weight: 750; }

.cta-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(17,24,39,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.90);
  color: #182234;
}

.cta-form input::placeholder { color: #9ca8b6; }

.form-error { min-height: 20px; margin: 6px 0 0; color: var(--danger); font-size: 13px; font-weight: 650; }
.form-error:empty { display: none; }

/* Footer */
.site-footer {
  padding: 58px 0 34px;
  border-top: 1px solid rgba(17,24,39,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.78));
}

.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 30px; }

.footer-brand { display: flex; align-items: center; gap: 12px; color: #1f2937; }
.footer-brand img { border-radius: 11px; box-shadow: 0 8px 18px rgba(242,169,29,.20); }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: var(--font-display); font-size: 18px; }
.footer-brand span { color: #687788; font-size: 13px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer nav a { color: #43536a; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-footer nav a:hover { color: #111827; text-decoration: underline; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 24, 39, .08);
}

.footer-bottom p { margin: 0; color: #718091; font-size: 12.5px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #111827; text-decoration: underline; }

.copyright { text-align: right; }

/* Modal */
.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in .2s ease;
}

.feedback-overlay[hidden] { display: none; }

.feedback-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(90vh, 840px);
  overflow: auto;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  background: linear-gradient(155deg, #fffefb, #f7f8fb);
  box-shadow: var(--shadow-lg);
  animation: modal-in .28s cubic-bezier(.2, .9, .25, 1.05);
}

.feedback-modal > .icon-button { position: absolute; top: 18px; right: 18px; }
.feedback-modal h2 { margin: 0 34px 10px 0; font-size: clamp(25px, 4vw, 33px); letter-spacing: -.025em; }
.feedback-lead { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; }

.feedback-form { display: grid; gap: 4px; }

.field-row { margin-bottom: 8px; }

.field-row label {
  display: block;
  margin-bottom: 7px;
  color: #38475a;
  font-size: 13.5px;
  font-weight: 750;
}

.field-row i { margin-left: 2px; color: var(--danger); font-style: normal; }

.field-row input, .field-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(17,24,39,.15);
  border-radius: 13px;
  background: rgba(255,255,255,.92);
  color: #182234;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field-row textarea { min-height: 126px; resize: vertical; }

.field-row input:focus, .field-row textarea:focus, .cta-form input:focus {
  outline: none;
  border-color: rgba(31,94,255,.66);
  box-shadow: 0 0 0 4px rgba(31,94,255,.14);
  background: #fff;
}

.field-row input[aria-invalid="true"], .field-row textarea[aria-invalid="true"] { border-color: rgba(191,29,29,.72); box-shadow: 0 0 0 4px rgba(191,29,29,.10); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 20px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}

.toast[hidden] { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s cubic-bezier(.22,.8,.28,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes drift { to { transform: translate3d(42px, -34px, 0) scale(1.06); } }
@keyframes float-a { 50% { transform: rotate(3deg) translateY(-13px); } }
@keyframes float-b { 50% { transform: rotate(-3deg) translateY(11px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { order: 2; margin-top: 22px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: 1fr; }
  .faq-copy { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
  .floating-script { left: -25px; }
  .floating-output { right: -18px; }
}

@media (max-width: 860px) {
  :root { --header-height: 68px; }

  .menu-button { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 20px;
    background: rgba(251,250,247,.97);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav > a { padding: 13px 10px; border-radius: 12px; font-size: 16px; }
  .primary-nav > a:hover { background: rgba(17,24,39,.05); }
  .primary-nav > a::after { display: none; }
  .nav-feedback { margin-top: 8px; }

  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding-top: 12px; border-top: 1px solid rgba(17,24,39,.07); }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); }
  .scene-card.is-large { grid-row: auto; min-height: 320px; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: calc(var(--header-height) + 30px); text-align: left; }
  .hero h1 { font-size: clamp(37px, 12vw, 52px); }
  .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 23px; }
  .workflow-list li { grid-template-columns: 1fr; padding: 19px; }
  .step-index { width: 44px; height: 44px; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-card, .scene-card.is-large { min-height: 300px; }
  .floating-card { display: none; }
  .device-stage { width: min(320px, 86%); padding: 8px; }
  .device-frame { border-radius: 27px; }
  .feedback-modal { max-height: 92vh; padding: 24px 18px; border-radius: 21px; }
  .field-row input, .field-row textarea { font-size: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .copyright { text-align: left; }
}

@media (max-width: 420px) {
  .brand-word { width: 92px; }
  .menu-button span:first-child { display: none; }
  .cta-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .device-frame { transform: none; }
  .device-stage:hover .device-frame { transform: none; }
}
