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

/**
 * snow.cc — Lightweight High-Performance Acrylic Glass Engine
 * 60fps locked, zero GPU overdraw, hardware-accelerated.
 */

:root {
  --bg-dark: #030406;
  
  /* Lightweight Acrylic Glass Tokens */
  --acrylic-nav: rgba(10, 13, 20, 0.72);
  --acrylic-card: rgba(13, 16, 24, 0.65);
  --acrylic-card-hover: rgba(19, 25, 38, 0.8);
  --acrylic-blur: blur(12px);

  /* Clean Specular Borders */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --border-acrylic: 1px solid rgba(255, 255, 255, 0.1);
  --border-acrylic-top: 1px solid rgba(255, 255, 255, 0.22);
  --border-hover: 1px solid rgba(56, 189, 248, 0.45);
  --border-featured: 1px solid rgba(56, 189, 248, 0.55);

  --ice: #38bdf8;
  --ice-hover: #7dd3fc;
  --ice-glow: rgba(56, 189, 248, 0.25);
  --mint: #10b981;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse 70% 45% at 20% -5%, rgba(56, 189, 248, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(99, 102, 241, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 50% 90%, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Particle Canvas (Composite Layer) */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  z-index: 999;
  width: 0%;
  pointer-events: none;
  transform: translateZ(0);
}

/* ACRYLIC NAVBAR */
.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 20px;
  margin-bottom: 28px;
}

.nav-glass {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--acrylic-nav);
  backdrop-filter: var(--acrylic-blur);
  -webkit-backdrop-filter: var(--acrylic-blur);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.7px;
  color: #ffffff;
}

.brand span {
  color: var(--ice);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--ice) !important;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-top: 1px solid rgba(125, 211, 252, 0.7);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--ice);
  color: #041019 !important;
  box-shadow: 0 0 20px var(--ice-glow);
  transform: translateY(-1px);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ice);
  color: #041019;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 18px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: var(--ice-hover);
  box-shadow: 
    0 6px 24px rgba(56, 189, 248, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  color: #ffffff;
  backdrop-filter: var(--acrylic-blur);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  padding: 68px 0 44px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 70px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero h1 .ice-gradient {
  background: linear-gradient(135deg, #ffffff 25%, var(--ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

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

/* PRICING & PRODUCTS SECTION */
.section {
  padding: 36px 0 72px;
}

.section-title-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
  color: #ffffff;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ACRYLIC BILLING SWITCHER */
.billing-switch-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.billing-switch {
  display: inline-flex;
  background: rgba(12, 15, 22, 0.7);
  backdrop-filter: var(--acrylic-blur);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  border-radius: 9px;
  padding: 4px;
  gap: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.billing-btn {
  padding: 8px 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-top: 1px solid rgba(125, 211, 252, 0.7);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

/* PRODUCTS GRID — BALANCED 4-COLUMN DESKTOP LAYOUT */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ACRYLIC PRICING CARD (NO OVERFLOW CLIPPING) */
.pricing-card {
  background: var(--acrylic-card);
  backdrop-filter: var(--acrylic-blur);
  -webkit-backdrop-filter: var(--acrylic-blur);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: visible; /* CRITICAL: Never clips the popular badge */
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  will-change: transform;
}

.pricing-card:hover {
  background: var(--acrylic-card-hover);
  border-color: var(--border-hover);
  border-top-color: rgba(125, 211, 252, 0.8);
  transform: translateY(-4px);
  box-shadow: 
    0 18px 44px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(56, 189, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pricing-card.featured {
  border-color: var(--border-featured);
  border-top-color: rgba(125, 211, 252, 0.85);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* MOST POPULAR BADGE — PROPERLY ELEVATED & ZERO CUTOFF */
.popular-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  background: var(--ice);
  color: #041019;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.45);
  z-index: 10;
  white-space: nowrap;
  line-height: 1.2;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-top h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1.2px;
  line-height: 1;
  transition: opacity 0.12s ease;
}

.price-period {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 12.5px;
  transition: opacity 0.12s ease;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.feature-list .check {
  color: var(--ice);
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.card-action {
  margin-top: auto;
  padding-top: 10px;
}

.card-btn {
  width: 100%;
  padding: 10px;
  font-size: 12.5px;
}

/* POLICY BANNER */
.policy-notice {
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.policy-notice a {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.policy-notice a:hover {
  text-decoration: underline;
}

/* ACRYLIC REDEEM CONSOLE */
.redeem-wrapper {
  max-width: 1080px;
  margin: 40px auto 88px;
  padding: 0 20px;
}

.redeem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .redeem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.redeem-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ice);
  text-transform: uppercase;
}

.info-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #ffffff;
}

.info-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--acrylic-card);
  backdrop-filter: var(--acrylic-blur);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease;
}

.step-item:hover {
  transform: translateX(3px);
  border-color: rgba(56, 189, 248, 0.35);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ice);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xs);
  padding: 3px 7px;
  line-height: 1;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.step-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.step-text span {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.info-support {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

.info-support a {
  color: var(--ice);
  font-weight: 600;
}

.info-support a:hover {
  text-decoration: underline;
}

/* ACRYLIC ACTIVATION CONSOLE */
.redeem-card {
  background: var(--acrylic-card);
  backdrop-filter: var(--acrylic-blur);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 32px;
  position: relative;
}

.card-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}

.form-group input {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-acrylic);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ice);
  box-shadow: 0 0 12px var(--ice-glow);
}

.field-hint {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
}

.result-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

.result-card.ok,
.result-card.result-ok {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--mint);
  display: block;
}

.result-card.err,
.result-card.result-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  display: block;
}

.key-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(4, 5, 8, 0.85);
  border: var(--border-acrylic);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  margin: 10px 0;
  word-break: break-all;
}

.copy-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--ice);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--ice);
  color: #041019;
}

/* TERMS OF SERVICE STYLES */
.terms-card {
  background: var(--acrylic-card);
  backdrop-filter: var(--acrylic-blur);
  border: var(--border-acrylic);
  border-top: var(--border-acrylic-top);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .terms-card { padding: 24px 20px; }
}

.terms-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.terms-date {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 8px;
}

.terms-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.terms-section h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terms-section p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.terms-list {
  margin-top: 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.terms-list strong {
  color: #ffffff;
}

.terms-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.terms-footer a:not(.btn) {
  color: var(--ice);
  font-weight: 600;
}

/* FOOTER */
footer {
  margin-top: auto;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* SCROLL REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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