:root {
  --charcoal: #1F2937;
  --charcoal-light: #374151;
  --amber: #F59E0B;
  --amber-glow: #F59E0B33;
  --emerald: #10B981;
  --off-white: #F9FAFB;
  --near-black: #030712;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --bg-primary: var(--off-white);
  --bg-secondary: #FFFFFF;
  --bg-tertiary: var(--charcoal);
  --text-primary: var(--charcoal);
  --text-secondary: var(--gray-500);
  --text-inverse: var(--off-white);
  --border-color: var(--gray-200);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--near-black);
    --bg-secondary: #0a0f1a;
    --bg-tertiary: var(--charcoal);
    --text-primary: var(--off-white);
    --text-secondary: var(--gray-400);
    --text-inverse: var(--charcoal);
    --border-color: #1a2332;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: block;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--charcoal);
  color: var(--off-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

@media (prefers-color-scheme: dark) {
  .nav-cta {
    background: var(--amber);
    color: var(--charcoal);
  }
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 16px;
}

.lang-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  /* Firefox fixes */
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
}

.lang-current:hover,
.lang-current:focus {
  border-color: var(--amber);
  outline: none;
}

.lang-current:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1001;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.lang-option:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 8px 8px;
}

.lang-option:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  .lang-option:hover {
    background: var(--gray-600);
  }
  .lang-dropdown {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
}

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

/* Mobile language switcher - no backdrop, simple dropdown */
.lang-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 8px;
    position: relative;
  }
  .lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    bottom: auto;
    min-width: 140px;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .lang-switcher.open .lang-dropdown {
    display: block;
  }
  .lang-option {
    padding: 14px 20px;
    font-size: 1rem;
  }
  .nav-cta {
    display: none;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  max-width: 100vw;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 70%;
}

@media (max-width: 1024px) {
  .hero-content {
    max-width: 80%;
  }
}

.hero h1 {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--off-white);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--amber);
    color: var(--charcoal);
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 20px;
  border: none;
}

.btn-secondary:hover {
  color: var(--text-primary);
}

.btn-secondary svg {
  display: none;
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 550px;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
  pointer-events: none;
  z-index: 1;
}

.hero-arc {
  position: relative;
  aspect-ratio: 1;
}

.hero-arc svg {
  width: 100%;
  height: 100%;
}

/* Center dot pulse animation (subtle and slow) */
.center-dot {
  opacity: 0;
  animation: pulse 5s ease-in-out 1.8s infinite;
  transform-origin: 200px 200px;
  transform-box: fill-box;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* Arc animation - loops continuously */
.arc-animate {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: 0;
  animation: drawArc 4s ease-in-out infinite;
}

.arc-1 { animation-delay: 0s; }
.arc-2 { animation-delay: 1s; }

@keyframes drawArc {
  0% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
  25% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
  75% {
    stroke-dashoffset: -300;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: -300;
    opacity: 0;
  }
}

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

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

@media (max-width: 1024px) {
  .hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 280px;
    opacity: 0.12;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

/* Metrics Bar */
.metrics {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-value span {
  color: var(--amber);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Features */
.features {
  background: var(--bg-secondary);
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

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

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--amber);
  transition: height 0.3s ease;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  .feature-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--amber-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--amber);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 1rem;
}

.feature-card--coming {
  position: relative;
}

.coming-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-glow);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 32px;
  }
}

/* How It Works */
.how-it-works {
  background: var(--charcoal);
  color: var(--off-white);
  position: relative;
}

.how-it-works .eyebrow {
  color: var(--amber);
}

.how-it-works h2 {
  color: var(--off-white);
  margin-bottom: 64px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}

.tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active,
.tab:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  color: var(--charcoal);
}

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

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gray-600);
  line-height: 1;
  margin-bottom: 24px;
}

.step h3 {
  color: var(--off-white);
  margin-bottom: 12px;
}

.step p {
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Comparison */
.comparison {
  background: var(--bg-secondary);
}

.comparison-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.comparison-table {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-header-row {
  background: var(--bg-secondary);
}

.comparison-header-row span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.comparison-header-row .highlight {
  color: var(--amber);
}

.comparison-feature {
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-row span:not(.comparison-feature) {
  text-align: center;
  font-size: 0.875rem;
}

.check {
  color: var(--emerald);
  font-weight: 600;
}

.cross {
  color: var(--gray-400);
}

.coming {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    padding: 16px;
    font-size: 0.875rem;
  }
}

/* CTA Section */
.cta-section {
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: 24px;
}

.cta-section p {
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  height: 54px;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.store-badge:hover {
  opacity: 1;
  transform: scale(1.02);
}

.cta-note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cta-bg-arc {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  opacity: 0.03;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .cta-bg-arc { opacity: 0.05; }
}

/* Footer */
footer {
  background: var(--charcoal);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--off-white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray-400);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--off-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-600);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--off-white);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  color: var(--gray-400);
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Selection */
::selection {
  background: var(--amber);
  color: var(--charcoal);
}

