/* ==============================================
   WriteFlow Landing — "墨光 Ink & Glow"
   Distinctive frontend: typography extremes,
   amber-desk color system, orchestrated motion,
   layered atmospheric backgrounds.
   ============================================== */

/* ── Design Tokens ────────────────────────── */

:root {
  /* Typography */
  --font-display: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --weight-hairline: 300;
  --weight-book: 400;
  --weight-bold: 700;
  --weight-black: 900;

  /* Color — Amber Desk at Night */
  --bg-deep: #08080c;
  --bg-elevated: #111118;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --accent-amber: #e8b44b;
  --accent-amber-dim: rgba(232, 180, 75, 0.12);
  --accent-teal: #4db8b0;
  --accent-teal-dim: rgba(77, 184, 176, 0.1);
  --accent-coral: #d47a6b;
  --accent-coral-dim: rgba(212, 122, 107, 0.1);
  --text-primary: #eae6e0;
  --text-muted: #8a8780;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(232, 180, 75, 0.2);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.4s;
  --dur-base: 0.7s;
  --dur-slow: 1s;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;
}

/* ── Reset & Base ─────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: var(--weight-hairline);
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ── Background Layers ────────────────────── */

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 75% 10%, rgba(232, 180, 75, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 20% 80%, rgba(77, 184, 176, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 85% 60%, rgba(212, 122, 107, 0.04) 0%, transparent 70%);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

/* ── Keyframes ────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes amberPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.65; }
}

/* ── Animation Utilities ──────────────────── */

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Scroll-reveal: hidden until visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Typography ───────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(3rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2rem, 5vw, 4.2rem); }
h3 { font-size: 1.22rem; font-weight: var(--weight-bold); letter-spacing: -0.01em; }

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading > span {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-heading > p {
  color: var(--text-muted);
  font-size: 1.04rem;
  font-weight: var(--weight-hairline);
  max-width: 54ch;
  margin: 14px auto 0;
  line-height: 1.8;
}

.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
}

/* ── Navigation ───────────────────────────── */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px min(5vw, 64px);
  background: rgba(8, 8, 12, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: var(--weight-black);
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.landing-brand img {
  width: clamp(118px, 13vw, 176px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: var(--weight-book);
}

.landing-links a { transition: color 0.2s; }
.landing-links a:hover { color: var(--accent-amber); }

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 6px;
  z-index: 20;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────── */

.btn--primary,
.btn--secondary,
.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  font-weight: var(--weight-bold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 24px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.btn--primary {
  background: var(--accent-amber);
  color: var(--bg-deep);
  border: 1px solid transparent;
  box-shadow: 0 8px 28px rgba(232, 180, 75, 0.2);
}

.btn--primary:hover {
  background: #f0c55e;
  box-shadow: 0 12px 36px rgba(232, 180, 75, 0.3);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 9px 16px;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Hero ─────────────────────────────────── */

.hero {
  --hero-image: url("/res/page/hero.png");
  --hero-placeholder: url("/res/page/hero_blur.jpg");
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(32px, 5vw, 60px);
  width: 100%;
  margin: 0 auto;
  min-height: min(760px, calc(100vh - 96px));
  align-items: center;
  padding: clamp(72px, 8vw, 112px) max(18px, calc((100vw - 1160px) / 2));
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(232, 180, 75, 0.14);
  border-bottom: 1px solid rgba(232, 180, 75, 0.14);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.94) 0%, rgba(5, 6, 10, 0.74) 44%, rgba(5, 6, 10, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.18) 0%, rgba(5, 6, 10, 0.76) 100%),
    var(--hero-placeholder) center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease-out-expo);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.94) 0%, rgba(5, 6, 10, 0.74) 44%, rgba(5, 6, 10, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.18) 0%, rgba(5, 6, 10, 0.76) 100%),
    var(--hero-image) center / cover no-repeat;
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo);
}

.hero.hero--image-loaded::before {
  opacity: 0;
}

.hero.hero--image-loaded::after {
  opacity: 1;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.hero__kicker {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid rgba(232, 180, 75, 0.25);
  border-radius: var(--r-full);
  color: var(--accent-amber);
  background: var(--accent-amber-dim);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: var(--weight-bold);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__copy h1 {
  margin: 20px 0 18px;
  color: var(--text-primary);
}

.hero__desc {
  color: rgba(234, 230, 224, 0.78);
  font-size: 1.06rem;
  line-height: 1.9;
  max-width: 50ch;
  font-weight: var(--weight-hairline);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
}

.hero__cta .btn--primary { padding: 13px 28px; font-size: 0.95rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero__trust span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  color: rgba(234, 230, 224, 0.72);
  background: rgba(8, 8, 12, 0.32);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: var(--weight-book);
}

/* Hero product card */
.hero__card {
  border: 1px solid rgba(232, 180, 75, 0.15);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(232, 180, 75, 0.06), rgba(77, 184, 176, 0.04)),
    rgba(12, 12, 17, 0.74);
  backdrop-filter: blur(14px);
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 60px rgba(232, 180, 75, 0.05);
  position: relative;
  z-index: 1;
}

.hero__card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 80px rgba(232, 180, 75, 0.08);
}

.card__window {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: rgba(8, 8, 12, 0.75);
  padding: 28px 26px;
  min-height: 340px;
}

.card__dots {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.card__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card__dots i:nth-child(1) { background: rgba(212, 122, 107, 0.6); }
.card__dots i:nth-child(2) { background: rgba(232, 180, 75, 0.55); }
.card__dots i:nth-child(3) { background: rgba(77, 184, 176, 0.55); }

.card__pill {
  display: inline-flex;
  margin-top: 22px;
  border-radius: var(--r-full);
  background: var(--accent-teal-dim);
  color: var(--accent-teal);
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__window h3 {
  max-width: 12ch;
  margin: 14px 0 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: var(--weight-black);
  line-height: 1.05;
  white-space: pre-line;
}

.card__window h3 .card-title-line {
  display: block;
}

.card__flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 44px;
  padding: 0 4px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 2px;
}

.flow-dot--done { background: var(--accent-amber); }
.flow-dot--active {
  background: var(--accent-teal);
  animation: flowPulse 1.8s ease-in-out infinite;
}
.flow-dot--pending { background: rgba(255,255,255,0.14); }

@keyframes flowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 184, 176, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(77, 184, 176, 0); }
}

.flow-label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-black);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.flow-step > span:last-child {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: var(--weight-hairline);
  line-height: 1.5;
  max-width: 14ch;
}

.flow-blip {
  color: var(--accent-teal) !important;
  font-weight: var(--weight-book) !important;
}

.flow-line {
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin-top: 10px;
  flex-shrink: 0;
}

/* ── Section Layouts (shared) ─────────────── */

.pain,
.workflow,
.screens,
.features,
.pricing,
.faq,
.cta-final {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.pain,
.workflow,
.screens,
.features,
.pricing,
.faq,
.cta-final {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

/* ── Pain ─────────────────────────────────── */

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

.pain__card {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-coral);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 24px 22px;
  transition: background 0.25s, border-color 0.25s;
}

.pain__card:hover {
  background: var(--bg-card-hover);
  border-left-color: #e89280;
}

.pain__card h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 1rem;
  color: var(--accent-coral);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.pain__card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  font-weight: var(--weight-hairline);
}

/* ── Workflow ─────────────────────────────── */

.workflow__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow__card {
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-teal);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.25s, border-color 0.25s;
}

.workflow__card:hover {
  background: var(--bg-card-hover);
  border-top-color: #6dd4cc;
}

.workflow__num {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: 2.5rem;
  color: var(--accent-teal);
  line-height: 1;
  margin-bottom: 10px;
}

.workflow__card h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 1.12rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.workflow__card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  font-weight: var(--weight-hairline);
}

/* ── Screens ──────────────────────────────── */

.screens-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.screen-row {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 32px;
  min-height: 430px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.screen-row:hover {
  border-color: rgba(232, 180, 75, 0.2);
  transform: translateY(-2px);
}

.screen-row--reverse {
  flex-direction: row-reverse;
}

.screen-row .shot-placeholder,
.screen-row img {
  width: 56%;
  height: clamp(300px, 28vw, 360px);
  flex-shrink: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 8, 12, 0.82);
  object-fit: contain;
  object-position: center top;
}

.screen-row img.progressive-img {
  filter: blur(14px);
  opacity: 0.72;
  transition: filter 0.9s var(--ease-out-expo), opacity 0.9s var(--ease-out-expo);
}

.screen-row img.progressive-img.is-loaded {
  filter: blur(0);
  opacity: 1;
}

.screen-row img.progressive-img.is-error {
  filter: blur(8px);
  opacity: 0.86;
}

.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(232, 180, 75, 0.08), transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px);
  color: rgba(255, 255, 255, 0.35);
  font-weight: var(--weight-bold);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.screen-row figcaption {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-row figcaption b {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.screen-row figcaption span {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  font-weight: var(--weight-hairline);
  max-width: 42ch;
}

/* ── Features ─────────────────────────────── */

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

.features__card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.features__card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 180, 75, 0.2);
  transform: translateY(-2px);
}

.features__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.features__card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.features__card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  font-weight: var(--weight-hairline);
}

/* ── Pricing ──────────────────────────────── */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing__card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.25s, border-color 0.25s;
}

.pricing__card:hover {
  background: var(--bg-card-hover);
}

.pricing__card h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing__card > b {
  display: block;
  color: var(--accent-amber);
  font-weight: var(--weight-bold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.pricing__card > p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  font-weight: var(--weight-hairline);
}

.pricing__card--featured {
  border-color: rgba(232, 180, 75, 0.35);
  box-shadow: 0 0 48px rgba(232, 180, 75, 0.08);
  position: relative;
}

/* ── FAQ ──────────────────────────────────── */

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq__card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 24px;
  transition: background 0.25s, border-color 0.25s;
}

.faq__card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq__card h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.faq__card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  font-weight: var(--weight-hairline);
}

/* ── Final CTA ────────────────────────────── */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  margin: 0 0 10px;
}

.cta-final p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.04rem;
  font-weight: var(--weight-hairline);
}

.cta-final .btn--primary { padding: 14px 32px; font-size: 1rem; }

/* ── Footer ───────────────────────────────── */

.landing-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 28px;
  position: relative;
  z-index: 1;
  font-weight: var(--weight-book);
  font-size: 0.9rem;
}

.landing-footer a { transition: color 0.2s; }
.landing-footer a:hover { color: var(--accent-amber); }



/* ==============================================
   Responsive: 1024px
   ============================================== */

@media (max-width: 1024px) {
  .hamburger-btn { display: flex; }

  .landing-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 76vw);
    height: 100vh;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 12, 0.96);
    border-left: 1px solid var(--border-subtle);
    backdrop-filter: blur(28px);
    padding: 80px 28px 28px;
    transition: right 0.35s ease;
    z-index: 15;
    font-size: 1.08rem;
    font-weight: var(--weight-book);
  }

  .landing-links.open { right: 0; }

  .landing-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 64px clamp(22px, 5vw, 48px) 52px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 10, 0.93) 0%, rgba(5, 6, 10, 0.72) 54%, rgba(5, 6, 10, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.4) 100%),
      var(--hero-placeholder) 58% center / cover no-repeat;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 10, 0.93) 0%, rgba(5, 6, 10, 0.72) 54%, rgba(5, 6, 10, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.4) 100%),
      var(--hero-image) 58% center / cover no-repeat;
  }

  .pain__grid,
  .workflow__grid,
  .pricing__grid,
  .faq__grid,
  .features__grid { grid-template-columns: 1fr 1fr; }

  .screen-row { gap: 32px; min-height: 380px; padding: 24px; }
  .screen-row .shot-placeholder,
  .screen-row img { width: 50%; height: 300px; }
}

/* ==============================================
   Responsive: 768px
   ============================================== */

@media (max-width: 768px) {
  .pain__grid,
  .workflow__grid,
  .pricing__grid,
  .faq__grid,
  .features__grid,
  .hero__cta { grid-template-columns: 1fr; }

  .hero__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__cta .btn--primary,
  .hero__cta .btn--secondary {
    width: 100%;
    text-align: center;
  }

  .screen-row,
  .screen-row--reverse { flex-direction: column-reverse; gap: 18px; min-height: auto; padding: 20px; }
  .screen-row .shot-placeholder,
  .screen-row img { width: 100%; height: clamp(180px, 48vw, 320px); }

  .pain,
  .workflow,
  .screens,
  .features,
  .pricing,
  .faq,
  .cta-final { padding: 60px 0; }

  .card__window { min-height: 280px; }

  h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .section-heading > span { font-size: clamp(1.5rem, 8vw, 2.4rem); }
}

/* ==============================================
   Responsive: 480px
   ============================================== */

@media (max-width: 480px) {
  .landing-nav { padding: 10px 12px; }

  .btn--primary,
  .btn--secondary,
  .btn--ghost { padding: 9px 16px; font-size: 0.82rem; }

  .hero {
    padding: 44px 18px 36px;
  }

  .hero__kicker { font-size: 0.78rem; }

  .hero__desc { font-size: 0.95rem; }

  .pain__card { padding: 20px 16px; }
  .workflow__card { padding: 22px 18px; }
  .features__card { padding: 22px 18px; }

  .screen-row { padding: 14px; gap: 12px; }
  .screen-row figcaption b { font-size: 1.2rem; }
  .screen-row figcaption span { font-size: 0.86rem; }

  .cta-final h2 { font-size: clamp(1.6rem, 10vw, 2.4rem); }

  body::before { opacity: 0.6; }
  body::after { opacity: 0.02; }
}

/* ==============================================
   Accessibility: reduced motion
   ============================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-in,
  .reveal { opacity: 1; transform: none; }
}
.lang-picker {
  position: relative;
  min-width: 116px;
}

.lang-picker__button {
  width: 100%;
  padding: 10px 34px 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.lang-picker__button::after {
  content: "▾";
  position: absolute;
  right: 14px;
  color: var(--muted);
}

.lang-picker.open .lang-picker__button,
.lang-picker__button:hover {
  border-color: rgba(255,255,255,0.32);
}

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(12, 12, 18, 0.96);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
}

.lang-picker.open .lang-picker__menu {
  display: grid;
  gap: 4px;
}

.lang-picker__option {
  border: 0;
  border-radius: 11px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.lang-picker__option:hover,
.lang-picker__option.is-active {
  background: rgba(219, 162, 94, 0.16);
  color: var(--text);
}
