@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --bg:           #080809;
  --bg-2:         #0c0d0f;
  --bg-3:         #111318;
  --text:         #f0f0f2;
  --text-muted:   #6b7280;
  --text-dim:     #32363f;
  --accent:       #00D395;
  --accent-dim:   rgba(0, 211, 149, 0.08);
  --accent-glow:  rgba(0, 211, 149, 0.18);
  --border:       rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 211, 149, 0.28);
  --font-d:       'Syne', system-ui, sans-serif;
  --font-b:       'Inter', system-ui, sans-serif;
  --font-m:       'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 8, 9, 0.88);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.logo {
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.logo-sep { color: var(--accent); }
.logo-dim { color: var(--text-muted); font-weight: 700; }

/* ─── Language Switcher ──────────────────────────────────────────────────────── */
details.lang-switcher {
  position: relative;
}

details.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
  user-select: none;
}

details.lang-switcher summary::-webkit-details-marker { display: none; }
details.lang-switcher summary::marker { display: none; }

details.lang-switcher summary:hover,
details.lang-switcher[open] summary {
  border-color: var(--border-accent);
  color: var(--accent);
}

.lang-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

details.lang-switcher[open] .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  min-width: 160px;
  z-index: 200;
}

.lang-dropdown a {
  display: block;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown a:last-child { border-bottom: none; }
.lang-dropdown a:hover { background: var(--accent-dim); color: var(--text); }
.lang-dropdown a.is-active { color: var(--accent); background: var(--accent-dim); }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}


/* ─── Card Scene ─────────────────────────────────────────────────────────────── */
.card-scene {
  perspective: 1400px;
  margin-bottom: 3.25rem;
  position: relative;
  z-index: 2;
}

/* Glow halo under card */
.card-scene::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 40px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.card-3d {
  width: 400px;
  height: 252px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  animation: card-float 7s ease-in-out infinite;
}

.card-scene:hover .card-3d,
.card-scene:focus-within .card-3d {
  animation-play-state: paused;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0px) rotateX(2deg); }
  50%       { transform: translateY(-10px) rotateX(0deg); }
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #14202e 0%, #0d1623 45%, #0a1220 100%);
  border: 1px solid rgba(0, 211, 149, 0.22);
  padding: 1.875rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 50px 100px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(0, 211, 149, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Shimmer layer */
.card-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(0, 211, 149, 0.04) 40%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(0, 211, 149, 0.04) 60%,
    transparent 75%
  );
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Radial accent */
.card-face::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0, 211, 149, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.card-brand {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.card-brand-dot { color: var(--accent); }

.card-chip {
  width: 38px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, #c8a84b 0%, #f2d06e 38%, #c8a84b 62%, #9a7228 100%);
  position: absolute;
  left: 1.875rem;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}

.card-chip::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1), 0 -6px 0 rgba(0, 0, 0, 0.1);
}

.card-number {
  font-family: var(--font-m);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
  text-align: right;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.card-holder-wrap {}

.card-holder-label {
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-bottom: 0.2rem;
}

.card-holder-name {
  font-family: var(--font-m);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.card-network {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  background: linear-gradient(160deg, #e8e8e8 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero Content ───────────────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-headline {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.9875rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
  font-weight: 300;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: #040d09;
  font-family: var(--font-d);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0.9rem 2rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #05f5b8;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 211, 149, 0.32);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow { transform: translateX(5px); }

/* ─── Benefits ───────────────────────────────────────────────────────────────── */
.benefits {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.benefit-item {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.benefit-item:hover { background: var(--accent-dim); }

.benefit-num {
  font-family: var(--font-m);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.benefit-title {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.benefit-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── Rating Teaser ──────────────────────────────────────────────────────────── */
.rating-teaser {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 4.5rem 0;
}

.rating-inner {
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.rating-text { flex: 1; min-width: 260px; }

.rating-title {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.rating-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* Progress ring */
.progress-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.progress-ring {
  width: 128px;
  height: 128px;
  position: relative;
}

.progress-ring svg { transform: rotate(-90deg); display: block; }

.ring-track { fill: none; stroke: var(--border); stroke-width: 2.5; }

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 364;
  stroke-dashoffset: 364;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.progress-pct {
  font-family: var(--font-d);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.progress-sub {
  font-family: var(--font-m);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Subscribe ──────────────────────────────────────────────────────────────── */
.subscribe {
  padding: 5.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.subscribe-inner {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 2rem;
}

.subscribe-title {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.subscribe-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.subscribe-form {
  display: flex;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.subscribe-form:focus-within { border-color: var(--border-accent); }

.subscribe-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-b);
  font-size: 0.9rem;
  color: var(--text);
}

.subscribe-input::placeholder { color: var(--text-dim); }

.subscribe-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #040d09;
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-d);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.subscribe-btn:hover { background: #05f5b8; }

.subscribe-note {
  margin-top: 0.875rem;
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-d);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-logo .logo-sep { color: rgba(0, 211, 149, 0.35); }

.footer-tagline {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-rights {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .card-3d { width: 320px; height: 202px; }
  .card-face { padding: 1.375rem; }
  .card-brand { font-size: 0.95rem; }
  .card-number { font-size: 0.8rem; letter-spacing: 0.14em; }
  .card-network { font-size: 1.25rem; }

  .site-header { padding: 1rem 1.25rem; }

  .subscribe-form { flex-direction: column; }
  .subscribe-btn { padding: 0.9rem; }
}

@media (max-width: 768px) {
  .rating-inner { flex-direction: column; gap: 2.5rem; }
  .section-wrap { padding: 0 1.5rem; }
  .hero { padding: 8rem 1.5rem 4rem; }
}
