/* ─── Reset & Variables ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #3465EB;
  --blue-dark: #2850c4;
  --blue-light: #5a85f5;
  --blue-glow: rgba(52, 101, 235, 0.15);
  --blue-faint: rgba(52, 101, 235, 0.06);
  --ink: #0f1729;
  --ink-soft: #3a4463;
  --ink-muted: #6b7490;
  --surface: #f7f8fb;
  --surface-raised: #ffffff;
  --border: #dfe3ed;
  --border-light: #edf0f7;
  --grid-line: rgba(52, 101, 235, 0.07);

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-mono: 'DM Mono', 'Menlo', monospace;
  --font-body: 'DM Mono', monospace;

  --max-w: 1080px;
  --section-pad: 100px;
  --radius: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(247, 248, 251, 0.8);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

/* Desktop: nav-links sits visually inside the nav bar */
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  padding-right: max(24px, calc((100vw - var(--max-w)) / 2 + 24px));
  z-index: 101;
  pointer-events: auto;
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue);
}

/* ─── Hamburger Button ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
  position: relative;
  z-index: 1010;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Nav Overlay ─── */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 41, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(52, 101, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 24px rgba(52, 101, 235, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue-light);
  color: var(--blue);
  background: var(--blue-faint);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-faint);
  border: 1px solid rgba(52, 101, 235, 0.12);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease-out both;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  animation: fadeUp 0.6s 0.2s ease-out both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease-out both;
}

.hero-icon-wrap {
  position: relative;
  display: inline-block;
  margin-top: 52px;
  animation: fadeUp 0.8s 0.4s ease-out both;
}

.hero-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 12px 40px rgba(52, 101, 235, 0.2);
}

.hero-icon-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 101, 235, 0.12) 0%, transparent 70%);
  z-index: -1;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--surface));
  z-index: 1;
}

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

/* ─── Sections ─── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-inner > h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 480px;
  margin-bottom: 48px;
}

/* ─── Features ─── */
.features {
  padding: var(--section-pad) 0;
}

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

.feature-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(52, 101, 235, 0.2);
  box-shadow: 0 4px 24px rgba(52, 101, 235, 0.08);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-card-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
}

.feature-card-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-list li {
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cycle-tag {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cycle-tag.free {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

/* ─── Highlights ─── */
.highlights {
  padding: 0 0 var(--section-pad);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.highlight {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--surface-raised);
  transition: all 0.3s;
}

.highlight:hover {
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-faint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.highlight h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.highlight p {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─── Download ─── */
.download {
  padding: 0 0 var(--section-pad);
}

.download-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.download-card-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(52, 101, 235, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 101, 235, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 70%);
}

.download-card-content {
  position: relative;
  z-index: 2;
  padding: 64px 24px;
  text-align: center;
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(52, 101, 235, 0.3);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.download-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto 32px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  transition: all 0.25s;
  text-align: left;
}

.store-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.store-btn small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 2px;
}

.store-btn strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.footer-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ─── Nav CTA ─── */
.nav-link-cta {
  color: var(--blue) !important;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--blue-faint);
  border: 1px solid rgba(52, 101, 235, 0.15);
  transition: all 0.2s;
}

.nav-link-cta:hover {
  background: rgba(52, 101, 235, 0.12);
  border-color: rgba(52, 101, 235, 0.3);
}

/* ─── Language Switcher ─── */
.lang-switcher {
  position: relative;
  display: inline-flex;
  margin-left: 4px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1001;
  padding: 4px;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition: all 0.15s;
}

.lang-option:hover {
  background: var(--blue-faint);
  color: var(--blue);
}

.lang-option.active {
  color: var(--blue);
  font-weight: 500;
  background: var(--blue-faint);
}

/* ─── RTL Support ─── */
[dir="rtl"] .nav-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
  right: auto;
  left: 0;
  padding-right: 0;
  padding-left: max(24px, calc((100vw - var(--max-w)) / 2 + 24px));
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .hero-actions {
  justify-content: flex-end;
}

[dir="rtl"] .feature-card-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .highlight {
  text-align: right;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

/* ─── Screenshots ─── */
.screenshots {
  padding: var(--section-pad) 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.screenshot-slot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  aspect-ratio: 9 / 16;
  position: relative;
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* screenshot-empty placeholder removed — all slots now populated */

/* ─── Cycle Tags ─── */
.cycle-tag.locked {
  background: rgba(107, 116, 144, 0.1);
  color: var(--ink-muted);
}

/* ─── Try It Link ─── */
.try-link {
  margin-left: auto;
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.try-link:hover {
  opacity: 1;
}

/* ─── Active Store Buttons ─── */
.store-btn--active {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
}

.store-btn--active:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52, 101, 235, 0.3);
}

/* ─── Coming Soon Store Buttons ─── */
.store-btn--soon {
  opacity: 0.5;
  cursor: default;
  position: relative;
}

.store-btn--soon:hover {
  transform: none;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.soon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
}

/* ─── Download Web CTA ─── */
.download-web-cta {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.download-web-cta a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.download-web-cta a:hover {
  color: #fff;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  :root {
    --section-pad: 64px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .nav-links {
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--surface-raised);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 72px 24px 24px;
    padding-right: 24px;
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    font-size: 14px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a,
  .nav-links .nav-link-cta {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link-cta {
    border-radius: 8px !important;
    padding: 12px !important;
    text-align: center;
    margin-bottom: 8px;
    border-bottom: none !important;
  }

  .lang-switcher {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 8px;
    padding-top: 8px;
  }

  .lang-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .lang-dropdown {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid var(--border-light) !important;
    max-height: 200px !important;
    margin-top: 8px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .screenshot-slot:nth-child(n+5) {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 36px;
  }

  .download-card-content {
    padding: 48px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-slot:nth-child(n+3) {
    display: none;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }
}

/* ─── Legal Pages ─── */
.legal-page {
  padding: 100px 24px 80px;
  min-height: 100vh;
}

.legal-page .section-inner {
  max-width: 720px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 13.5px;
}

.legal-content ul {
  margin-bottom: 14px;
  padding-left: 4px;
}

.legal-content li {
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.legal-content li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--blue);
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--blue-dark);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--blue);
}

/* ─── Contact Form ─── */
.contact-form {
  max-width: 560px;
}

.hidden-field {
  display: none !important;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface-raised);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.6;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7490' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  margin-top: 8px;
}

.contact-success {
  text-align: center;
  padding: 48px 0;
}

.contact-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-success h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-success p {
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
}
