/* ============================================================
   PeakThock Landing Page — Glassmorphism Design System
   Colors from DesignSystem.swift
   ============================================================ */

/* --- Design Tokens (from DesignSystem.swift) --- */

:root {
  /* PT.Bg */
  --bg-deep: #05080A;
  --bg-forest: #0D1F22;
  --bg-mid: #1C3D42;

  /* PT.Glass */
  --glass-surface: rgba(30, 40, 45, 0.45);
  --glass-surface-hover: rgba(40, 55, 60, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-input-bg: rgba(255, 255, 255, 0.05);
  --glass-chip-bg: rgba(255, 255, 255, 0.04);
  --glass-divider: rgba(255, 255, 255, 0.06);

  /* PT.Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);

  /* PT.Accent */
  --accent-teal: #38B2AC;
  --accent-teal-bright: #4FD1C5;
  --accent-teal-vivid: #6FFFE9;
  --accent-teal-glow: rgba(79, 209, 197, 0.6);

  /* PT.Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

/* --- Reset & Base --- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Background Gradient Layer --- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-mid) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 80%, rgba(13, 31, 34, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(28, 61, 66, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-forest) 40%, #0A1518 100%);
  z-index: -1;
  pointer-events: none;
}

/* --- Typography --- */

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mono {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

/* --- Layout --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Glass Surface --- */

.glass {
  background: var(--glass-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* --- Scroll Fade-In Animation --- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56, 178, 172, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--glass-chip-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* --- CTA Button (Vivid Glass — ActionButton style from DesignSystem) --- */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(56, 178, 172, 0.25) 0%, rgba(56, 178, 172, 0.08) 100%);
  color: var(--accent-teal-vivid);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(111, 255, 233, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease, transform 0.08s ease;
  box-shadow: 0 0 20px rgba(111, 255, 233, 0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}

.cta-button:hover {
  background: linear-gradient(135deg, rgba(111, 255, 233, 0.3) 0%, rgba(111, 255, 233, 0.1) 100%);
  border-color: rgba(111, 255, 233, 0.45);
  box-shadow: 0 0 30px rgba(111, 255, 233, 0.15), 0 0 60px rgba(111, 255, 233, 0.05), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(1.5px);
  filter: brightness(0.95);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.platform-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.platform-note .mono {
  font-size: 0.75rem;
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */

.features {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 80px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal-vivid);
  margin-bottom: 12px;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Screenshot Image --- */

.screenshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
}

/* --- Screenshot Placeholder --- */

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--glass-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(56, 178, 172, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.screenshot-placeholder span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* --- Dots decoration inside placeholder --- */

.screenshot-placeholder .dots {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.screenshot-placeholder .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--glass-divider);
  padding: 40px 24px;
  text-align: center;
}

.footer-version {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}

.footer-privacy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 12px;
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .hero {
    padding: 80px 20px 60px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature.reverse {
    direction: ltr;
  }

  .feature-text {
    text-align: center;
  }

  .features {
    gap: 48px;
  }

  .screenshot-placeholder {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
