/* ============================================
   LexiScene - Shared Styles
   Linear × Stripe × warm accents
   ============================================ */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-accent: #6366f1;
  --color-amber: #fbbf24;
  --color-amber-soft: #fef3c7;

  --color-text: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-faint: #94a3b8;

  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-tint: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px rgba(37, 99, 235, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --container: 1180px;
  --container-narrow: 920px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--color-primary-dark);
}

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

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

.container--narrow {
  max-width: var(--container-narrow);
}

/* ===========================
   Header
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-body);
  font-size: 14.5px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-text);
}

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-body);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switcher-btn:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
}
.lang-switcher-menu.is-open {
  display: block;
}
.lang-switcher-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--color-text-body);
}
.lang-switcher-menu a:hover {
  background: var(--color-bg-tint);
  color: var(--color-text);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease,
    background 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-bg-tint);
  border-color: var(--color-border-strong);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 800px;
  background: radial-gradient(
      ellipse at center,
      rgba(99, 102, 241, 0.14) 0%,
      rgba(99, 102, 241, 0) 60%
    ),
    radial-gradient(
      ellipse at 30% 80%,
      rgba(251, 191, 36, 0.08) 0%,
      rgba(251, 191, 36, 0) 50%
    );
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-body);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: var(--radius-full);
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
}
.hero-title .accent {
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 60%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-faint);
}

.hero-visual {
  position: relative;
}

.hero-screen {
  position: relative;
  padding: 28px 24px 28px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 60px -20px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 50% 30%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero-screen-dots {
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  gap: 6px;
}
.hero-screen-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero-subtitle-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
}

.hero-sub-top,
.hero-sub-bottom {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.hero-sub-bottom {
  background: rgba(0, 0, 0, 0.55);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
}

.hero-sub-word {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 -2px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.3);
  color: #fde68a;
  cursor: pointer;
}

.hero-popup {
  position: absolute;
  right: -8px;
  bottom: 86px;
  width: 260px;
  padding: 14px 16px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  transform: rotate(2deg);
}
.hero-popup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hero-popup-word {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text);
}
.hero-popup-pill {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-popup-label {
  font-size: 10px;
  font-weight: 800;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.hero-popup-meaning {
  font-size: 13.5px;
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 600;
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: 88px 0;
}

.section-tint {
  background: var(--color-bg-soft);
}

.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 720px;
}

.section-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ===========================
   Story
   =========================== */
.story-quote {
  margin: 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
.story-quote p {
  margin: 0 0 14px;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--color-text);
}
.story-quote p:last-child {
  margin-bottom: 0;
}
.story-quote em {
  font-style: normal;
  background: rgba(251, 191, 36, 0.32);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

/* ===========================
   Features grid
   =========================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
}
.feature-icon-blue {
  background: linear-gradient(135deg, #dbeafe, #c7d2fe);
}
.feature-icon-purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.feature-icon-green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.feature-icon-amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.feature-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

.feature-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ===========================
   How it works
   =========================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}

.step {
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.step-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.step-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ===========================
   Services row
   =========================== */
.service-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.service-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.service-icon.disney {
  background: linear-gradient(135deg, #2d5aa8 0%, #1a3a6e 100%);
}
.service-icon.netflix {
  background: linear-gradient(135deg, #b81d24 0%, #7a0d12 100%);
}
.service-icon.youtube {
  background: linear-gradient(135deg, #d63333 0%, #a01515 100%);
}
.service-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

/* ===========================
   Pricing
   =========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.price-card {
  padding: 32px 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(99, 102, 241, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-primary-light) 100%);
  box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.16);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.32);
}

.price-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.price-amount {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.price-unit {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.price-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-body);
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 900;
}

.price-cta {
  margin-top: auto;
}

/* ===========================
   FAQ
   =========================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  padding: 16px 20px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.faq-item[open] {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.18s ease;
  line-height: 1;
}
.faq-item[open] .faq-summary::after {
  transform: rotate(45deg);
}

.faq-body {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ===========================
   Final CTA
   =========================== */
.final-cta {
  padding: 80px 0 96px;
  text-align: center;
}
.final-cta-card {
  padding: 48px 32px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 80% 0%,
      rgba(99, 102, 241, 0.4) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 100%,
      rgba(251, 191, 36, 0.18) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.final-cta-card > * {
  position: relative;
}
.final-cta-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.final-cta-text {
  margin: 0 auto 28px;
  max-width: 540px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  max-width: 360px;
}
.footer-brand .brand {
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--color-text);
}

.site-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 880px) {
  .hero {
    padding: 56px 0 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-popup {
    right: 12px;
    bottom: 60px;
    width: 220px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .site-nav {
    display: none;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    flex-direction: column;
  }
}

/* ===========================
   Animations & Effects
   =========================== */

/* Hero background orb slow drift */
@keyframes hero-orb-drift {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(12px) scale(1.05); opacity: 0.92; }
}
.hero::before {
  animation: hero-orb-drift 14s ease-in-out infinite;
}

/* Hero headline gradient sweep */
@keyframes accent-sweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-title .accent {
  background-size: 220% 220%;
  animation: accent-sweep 9s ease-in-out infinite;
}

/* Hero subtitle word — soft pulse to invite the click */
@keyframes word-pulse {
  0%, 100% {
    background: rgba(251, 191, 36, 0.30);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    background: rgba(251, 191, 36, 0.50);
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.16);
  }
}
.hero-sub-word {
  animation: word-pulse 2.6s ease-in-out infinite;
}

/* Hero popup gentle float */
@keyframes popup-float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-7px); }
}
.hero-popup {
  animation: popup-float 5.4s ease-in-out infinite;
}

/* Hero entry — first paint stagger */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-note,
.hero-visual {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-eyebrow  { animation-delay: 0.05s; }
.hero-title    { animation-delay: 0.18s; }
.hero-subtitle { animation-delay: 0.32s; }
.hero-actions  { animation-delay: 0.46s; }
.hero-note     { animation-delay: 0.58s; }
.hero-visual   { animation-delay: 0.28s; }

/* Brand mark micro-interaction */
.brand-mark {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-mark {
  transform: rotate(-10deg) scale(1.08);
}

/* Primary button: hover shimmer + lifted glow */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 25%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 75%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Feature icon hover spring */
.feature-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Step number hover lift */
.step-num {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}
.step:hover .step-num {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.42);
}

/* Service card hover lift */
.service-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease,
              border-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.service-icon-svg {
  width: 56px;
  height: 56px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.18));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .service-icon-svg {
  transform: scale(1.06) rotate(-2deg);
}

/* Price card featured — subtle border glow loop */
@keyframes featured-glow {
  0%, 100% { box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.16); }
  50%      { box-shadow: 0 22px 48px -10px rgba(37, 99, 235, 0.28); }
}
.price-card.featured {
  animation: featured-glow 4.5s ease-in-out infinite;
}

/* FAQ open animation */
.faq-item summary ~ * {
  animation: faq-reveal 0.35s ease;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Final CTA card — slow ambient gradient drift */
@keyframes cta-ambient {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-2%, 2%); }
}
.final-cta-card::before {
  animation: cta-ambient 12s ease-in-out infinite;
}

/* Scroll reveal — fade up as sections enter viewport */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].is-visible { transition-delay: 0.08s; }
[data-reveal-delay="2"].is-visible { transition-delay: 0.16s; }
[data-reveal-delay="3"].is-visible { transition-delay: 0.24s; }
[data-reveal-delay="4"].is-visible { transition-delay: 0.32s; }

/* ===========================
   Legal / content pages
   =========================== */
.legal-hero {
  padding: 80px 0 32px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #ffffff 100%);
}
.legal-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.15;
}
.legal-hero .legal-updated {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.legal-body {
  padding: 56px 0 96px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text-body);
}
.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--color-text);
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-text);
}
.legal-body p {
  margin: 0 0 14px;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-body li {
  margin-bottom: 6px;
}
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.legal-body table th,
.legal-body table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.legal-body table th {
  background: var(--color-bg-soft);
  font-weight: 700;
  color: var(--color-text);
  width: 32%;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form-note {
  font-size: 12.5px;
  color: var(--color-text-faint);
}
.contact-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: none;
}
.contact-status.ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.contact-status.err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--color-bg-tint);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.lang-toggle a {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.lang-toggle a.active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
