/* ═══════════════════════════════════════════════════════════
   ALYN AI — Landing Page Styles
   ธีมสว่าง เข้ากับหน้า Workspace: มุมโค้ง 24px,
   gradient แบบ Gemini (น้ำเงิน→ม่วง→แดงส้ม), ฟอนต์ Noto Sans Thai
   ═══════════════════════════════════════════════════════════ */

:root {
  --blue:   #4285F4;
  --purple: #9B72CB;
  --red:    #D96570;
  --grad:   linear-gradient(92deg, var(--blue) 5%, var(--purple) 48%, var(--red) 95%);

  --ink:    #1F1F1F;
  --muted:  #5F6368;
  --bg:     #FFFFFF;
  --bg-soft:#F7F8FA;
  --border: #E8EAED;
  --card:   #FFFFFF;

  --radius:  24px;
  --radius-s:16px;
  --shadow-s:0 1px 2px rgba(31,31,31,.05), 0 1px 3px rgba(31,31,31,.06);
  --shadow-m:0 4px 10px rgba(31,31,31,.06), 0 12px 32px rgba(31,31,31,.08);
  --shadow-l:0 12px 24px rgba(31,31,31,.10), 0 32px 64px rgba(31,31,31,.14);

  --font: 'Noto Sans Thai', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────── ปุ่ม ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; line-height: 1.4;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-m); transform: translateY(-1px); }

.btn-gradient {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(155,114,203,.35);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(155,114,203,.45); }

.btn-ghost { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: #c9cdd3; background: var(--bg-soft); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: .875rem; }
.btn-block { width: 100%; }

/* ─────────── Navbar ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 1px 12px rgba(31,31,31,.04); }

.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.brand-star { width: 30px; height: 30px; flex: none; }
.brand-star.sm { width: 22px; height: 22px; }
.brand-star img {
  width: 100%; height: 100%;
  object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(31,31,31,.18));
}

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }

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

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2.2px; border-radius: 2px; background: var(--ink); transition: .2s; }

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; filter: blur(0px); }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .35;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-a { width: 520px; height: 520px; background: #c3d8ff; top: -180px; left: -120px; }
.blob-b { width: 460px; height: 460px; background: #e4d6f5; top: -60px; right: -140px; animation-delay: -5s; }
.blob-c { width: 380px; height: 380px; background: #fbdcdf; bottom: -180px; left: 38%; animation-delay: -10s; opacity: .3; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }

.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 56px; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-s); margin-bottom: 22px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); animation: pulse 2.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,101,112,.45); } 50% { box-shadow: 0 0 0 7px rgba(217,101,112,0); } }

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800; line-height: 1.28; letter-spacing: -.5px;
  margin-bottom: 20px;
}

.lead { font-size: 1.06rem; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.lead strong { color: var(--ink); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 36px; justify-content: start; }
.stat b {
  display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .78rem; color: var(--muted); }

/* ─────────── Hero visual: จำลอง Workspace ─────────── */
.hero-visual { position: relative; }

.browser {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-l);
}

.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.browser-url {
  margin-left: 10px; flex: 1; max-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  font-size: .72rem; color: var(--muted); padding: 3px 12px;
  white-space: nowrap; overflow: hidden;
}

.browser-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }

.wk-side { border-right: 1px solid var(--border); padding: 16px 12px; background: #fcfcfd; }
.wk-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .82rem; padding: 2px 6px 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wk-new {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 9px 8px; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: .78rem; font-weight: 600;
  box-shadow: var(--shadow-s); transition: .15s;
}
.wk-new:hover { border-color: #c9cdd3; }
.wk-menu { display: flex; flex-direction: column; gap: 2px; }
.wk-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 10px;
  font-size: .76rem; font-weight: 500; color: var(--muted); cursor: default;
}
.wk-menu a.active { background: #eef3fe; color: var(--blue); }

.wk-main { display: flex; flex-direction: column; padding: 26px 26px 22px; }
.wk-greet { text-align: center; margin: 26px 0 18px; }
.wk-date { font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.wk-greet h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: 6px; }
.wk-greet p { font-size: .82rem; color: var(--muted); }

.wk-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .72rem; font-weight: 500; color: var(--ink); cursor: default;
  transition: .15s;
}
.chip svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.wk-chips .chip:hover { border-color: var(--purple); box-shadow: var(--shadow-s); }

.wk-input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-top: 20px;
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-m); background: #fff;
}
.wk-plus { color: var(--muted); display: grid; place-items: center; }
.wk-plus svg { width: 16px; height: 16px; }
.wk-model {
  font-size: .68rem; font-weight: 700; color: var(--blue);
  background: #eef3fe; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.wk-placeholder { font-size: .78rem; color: #9aa0a6; flex: 1; }
.wk-mic {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
}
.wk-send {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(155,114,203,.4);
}

/* การ์ดลอยแจ้งเตือน */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-l);
  animation: floaty 5s ease-in-out infinite;
}
.float-card b { display: block; font-size: .78rem; }
.float-card small { font-size: .68rem; color: var(--muted); }
.fc-ico {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft);
}
.fc-ico svg { width: 20px; height: 20px; }
.fc-a .fc-ico { color: var(--blue); }
.fc-b .fc-ico { color: #e8710a; }
.fc-a { top: 16%; right: -34px; }
.fc-b { bottom: -22px; left: -26px; animation-delay: -2.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ─────────── Sections ─────────── */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: #101014; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow-dark { color: #c9b6e4; }

.txt-white { color: #fff; }
.txt-mut-dark { color: #b4b8c2; }

/* ─────────── การ์ดฟีเจอร์ ─────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: #dde0e5; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }

.card-ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; }
.ico-blue   { background: #e8f0fe; color: #1a73e8; }
.ico-purple { background: #f1e9fb; color: #8b5cf6; }
.ico-pink   { background: #fceef0; color: #d96570; }
.ico-orange { background: #fef0e6; color: #e8710a; }
.ico-teal   { background: #e3f5f3; color: #0f9d8f; }
.ico-green  { background: #e8f6e9; color: #1a7f37; }

/* ─────────── สตูดิโอ ─────────── */
.studio-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 34px;
}
.stab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--border);
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: .18s;
}
.stab svg { width: 17px; height: 17px; flex: none; }
.stab:hover { border-color: #c9cdd3; color: var(--ink); }
.stab.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-m); }

.studio-panel { display: none; }
.studio-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.studio-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: stretch; }

.studio-side-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-s);
}
.f-label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 6px; }

.fake-prompt {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  font-size: .88rem; color: var(--ink); line-height: 1.6;
}
.style-chips, .ratio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chips .chip.active, .ratio-row .chip.active {
  background: #eef3fe; border-color: var(--blue); color: var(--blue); font-weight: 600;
}
.studio-side-card .btn { margin-top: auto; }

.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.art {
  border-radius: 20px; min-height: 190px;
  display: flex; align-items: flex-end; padding: 16px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-m);
  transition: transform .22s ease;
}
.art:hover { transform: scale(1.02); }
.art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.34), transparent 55%);
}
.art span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: .88rem; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.art span svg { width: 15px; height: 15px; flex: none; }

/* การ์ดรูป: ถ้ามีไฟล์ใน assets/img/ ตามชื่อ (a1.jpg, v2.jpg, t3.jpg ฯลฯ)
   รูปจะแสดงแทน gradient อัตโนมัติ — ถ้าไม่มีไฟล์ ก็แสดง gradient เดิม */
.a1 { background: url('../img/a1.jpg') center/cover no-repeat, linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.a2 { background: url('../img/a2.jpg') center/cover no-repeat, linear-gradient(135deg, #a1c4fd 0%, #c2b6ff 100%); }
.a3 { background: url('../img/a3.jpg') center/cover no-repeat, linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.a4 { background: url('../img/a4.jpg') center/cover no-repeat, linear-gradient(135deg, #43cea2 0%, #185a9d 100%); }

.v1 { background: url('../img/v1.jpg') center/cover no-repeat, linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.v2 { background: url('../img/v2.jpg') center/cover no-repeat, linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.v3 { background: url('../img/v3.jpg') center/cover no-repeat, linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.v4 { background: url('../img/v4.jpg') center/cover no-repeat, linear-gradient(135deg, #141e30 0%, #243b55 100%); }

/* เสียง: คลื่น + รายการเพลง */
.wave { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 4px; }
.wave i {
  flex: 1; border-radius: 4px;
  background: var(--grad);
  animation: wv 1.1s ease-in-out infinite;
}
@keyframes wv { 0%,100% { height: 18%; } 50% { height: 92%; } }

.track-list {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-s);
}
.track {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid transparent;
  transition: .18s;
}
.track:hover { border-color: var(--border); background: #fff; box-shadow: var(--shadow-s); }
.t-art {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
}
.t-art svg { width: 22px; height: 22px; color: #fff; }
.t1 { background: url('../img/t1.jpg') center/cover no-repeat, linear-gradient(135deg, #89f7fe, #66a6ff); }
.t2 { background: url('../img/t2.jpg') center/cover no-repeat, linear-gradient(135deg, #f6d365, #fda085); }
.t3 { background: url('../img/t3.jpg') center/cover no-repeat, linear-gradient(135deg, #a18cd1, #fbc2eb); }
.t4 { background: url('../img/t4.jpg') center/cover no-repeat, linear-gradient(135deg, #ff9a9e, #fecfef); }
.t-name { font-weight: 600; font-size: .92rem; flex: 1; }
.t-dur { font-size: .8rem; color: var(--muted); }

/* ─────────── ออโตเมชั่น (โซนมืด) ─────────── */
.auto-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 34px; align-items: center; }
.auto-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.acard {
  background: #17171d; border: 1px solid #26262e;
  border-radius: 20px; padding: 24px 22px;
  transition: .2s;
}
.acard:hover { border-color: #3a3a46; transform: translateY(-3px); }
.acard-ico { margin-bottom: 12px; }
.acard-ico svg { width: 24px; height: 24px; }
.acard:nth-child(1) .acard-ico { color: #8ab8ff; }
.acard:nth-child(2) .acard-ico { color: #7ee0c0; }
.acard:nth-child(3) .acard-ico { color: #f2b880; }
.acard:nth-child(4) .acard-ico { color: #c9b6e4; }
.acard h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.acard p { color: #9ca1ad; font-size: .85rem; line-height: 1.65; }

.code-window {
  background: #0b0b0f; border: 1px solid #26262e;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.cw-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid #1d1d24;
}
.cw-title { margin-left: 10px; font-size: .75rem; color: #7a7f8b; font-family: ui-monospace, monospace; }

.code { padding: 20px 22px; overflow-x: auto; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .78rem; line-height: 1.75; color: #d4d7e0; }
.code .c { color: #5c6270; }
.code .k { color: #7ee0c0; }
.code .s { color: #f2b880; }
.code .f { color: #8ab8ff; }

.cw-run {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-top: 1px solid #1d1d24;
  font-size: .78rem; color: #9fe3b8; font-family: ui-monospace, monospace;
}
.run-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; animation: pulse2 2s infinite; flex: none; }
@keyframes pulse2 { 0%,100% { box-shadow: 0 0 0 0 rgba(53,208,127,.5); } 50% { box-shadow: 0 0 0 6px rgba(53,208,127,0); } }

/* ─────────── โมเดล ─────────── */
.model-cloud { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.model-chip {
  padding: 11px 22px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .92rem; color: var(--muted);
  box-shadow: var(--shadow-s);
  transition: .18s;
}
.model-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #c9cdd3; color: var(--ink); }
.model-chip b { color: var(--ink); font-weight: 700; }
.models-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 26px; }

/* ─────────── ตารางเปรียบเทียบ ─────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-s); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--bg-soft); font-weight: 700; font-size: .85rem; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td { background: #fafbfd; }
.col-us { color: var(--purple); }
.cmp .yes { color: #1a7f37; font-weight: 600; }
.cmp .no  { color: #9aa0a6; }
.cmp .mid { color: #b08318; }

/* ─────────── CTA + ฟอร์ม ─────────── */
.cta-card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(66,133,244,.16) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(217,101,112,.14) 0%, transparent 55%),
    #17171d;
  box-shadow: var(--shadow-l);
}
.cta-copy { padding: 56px 52px; color: #fff; }
.cta-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.cta-copy p { color: #b4b8c2; font-size: .98rem; margin-bottom: 30px; max-width: 44ch; }

.cta-form {
  background: #fff; margin: 26px; border-radius: 20px;
  padding: 30px 28px; align-self: center;
  box-shadow: var(--shadow-l);
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f-field label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.f-field input, .f-field textarea {
  font-family: inherit; font-size: .92rem; color: var(--ink);
  padding: 11px 15px; border: 1.5px solid var(--border); border-radius: 13px;
  background: var(--bg-soft); resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.f-field input:focus, .f-field textarea:focus {
  outline: none; border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(155,114,203,.12);
}
.form-error { color: #c5221f; font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.f-note { text-align: center; font-size: .75rem; color: #9aa0a6; margin-top: 12px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-success { text-align: center; padding: 26px 8px; }
.fs-ico {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff;
}
.fs-ico svg { width: 26px; height: 26px; }
.form-success b { font-size: 1.05rem; display: block; margin-bottom: 8px; }
.form-success p { font-size: .88rem; color: var(--muted); }

/* ─────────── Footer ─────────── */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.f-brand p { color: var(--muted); font-size: .88rem; margin-top: 14px; max-width: 34ch; }
.f-col h4 { font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.f-col a { display: block; font-size: .88rem; color: var(--muted); padding: 5px 0; transition: color .15s; }
.f-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0 26px; font-size: .8rem; color: #9aa0a6; text-align: center;
}

/* ─────────── Reveal on scroll ─────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─────────── Responsive ─────────── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { text-align: center; }
  .hero-cta, .hero-stats { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-visual { max-width: 640px; margin-inline: auto; }
  .fc-a { right: -8px; } .fc-b { left: -8px; }
  .auto-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-copy { padding: 46px 36px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 6%;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: .22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .auto-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .feature-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .browser-body { grid-template-columns: 1fr; }
  .wk-side { display: none; }
  .art-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .float-card { display: none; }
  .btn-lg { padding: 13px 26px; font-size: .98rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
