/* TuckPage Landing - Apple-like, content-first design */

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-background: #ffffff;
  --color-surface: #f5f5f7;
  --color-border: #d2d2d7;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  
  /* Cool-toned glow colors */
  --glow-ice: rgba(200, 230, 255, 0.6);
  --glow-cyan: rgba(100, 210, 255, 0.4);
  --glow-violet: rgba(180, 160, 255, 0.35);
  --glow-ice-subtle: rgba(200, 230, 255, 0.15);
  
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  --max-width: 980px;
  --max-width-narrow: 680px;
  
  --header-height: 3rem;
}

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

body {
  font-family: var(--font-system);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-background);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: var(--space-md);
}

.nav a {
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-xl);
  overflow: hidden;
}

/* Ambient glow background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Ice blue orb - top right */
    radial-gradient(
      ellipse 60% 50% at 85% 20%,
      var(--glow-ice) 0%,
      transparent 60%
    ),
    /* Cyan orb - center left */
    radial-gradient(
      ellipse 50% 60% at 15% 60%,
      var(--glow-cyan) 0%,
      transparent 55%
    ),
    /* Soft violet orb - bottom center */
    radial-gradient(
      ellipse 70% 40% at 50% 90%,
      var(--glow-violet) 0%,
      transparent 50%
    ),
    /* Subtle overall ice wash */
    radial-gradient(
      ellipse 100% 80% at 50% 30%,
      var(--glow-ice-subtle) 0%,
      transparent 70%
    );
  z-index: -2;
  pointer-events: none;
}

/* Optional subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(200, 220, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 220, 240, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Decorative card silhouettes */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-card {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(200, 220, 240, 0.08) 0%,
    rgba(180, 200, 230, 0.04) 100%
  );
  border: 1px solid rgba(200, 220, 240, 0.1);
  box-shadow: 0 4px 24px rgba(100, 140, 180, 0.06);
}

.decor-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(200, 220, 240, 0.12);
}

.decor-card::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 60px;
  right: 12px;
  height: 8px;
  border-radius: 4px;
  background: rgba(200, 220, 240, 0.1);
}

.decor-card-1 {
  top: 18%;
  right: 8%;
  transform: rotate(8deg);
  opacity: 0.7;
}

.decor-card-2 {
  bottom: 22%;
  left: 6%;
  transform: rotate(-6deg);
  opacity: 0.5;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.45;
}

/* CTA */
.cta-group {
  max-width: 400px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(0, 113, 227, 0.1);
  padding: 0.4rem 0.875rem;
  border-radius: 1rem;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.cta-note {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--color-text-tertiary);
}

.waitlist-form button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.waitlist-form button:hover {
  background: var(--color-accent-hover);
}

/* Features */
.features {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}

.features h2,
.platforms h2,
.final-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.feature p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Platforms */
.platforms {
  padding: var(--space-2xl) 0;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.platform-list span {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: 2rem;
}

/* Final CTA */
.final-cta {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--color-surface);
}

.final-cta p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.footer-brand {
  font-weight: 500;
  color: var(--color-text-secondary);
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

.footer-legal {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-lg);
  }
  
  .hero::before {
    background:
      radial-gradient(
        ellipse 80% 40% at 70% 15%,
        var(--glow-ice) 0%,
        transparent 55%
      ),
      radial-gradient(
        ellipse 70% 50% at 30% 70%,
        var(--glow-cyan) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 90% 35% at 50% 95%,
        var(--glow-violet) 0%,
        transparent 45%
      );
  }
  
  .hero::after {
    background-size: 32px 32px;
  }
  
  /* Hide decorative cards on mobile for cleaner look */
  .hero-decor {
    display: none;
  }
  
  .waitlist-form {
    flex-direction: column;
  }
  
  .waitlist-form button {
    width: 100%;
  }
  
  .feature-grid {
    gap: var(--space-md);
  }
  
  .feature {
    padding: var(--space-sm);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-text-tertiary: #6e6e73;
    --color-background: #000000;
    --color-surface: #1d1d1f;
    --color-border: #424245;
    
    /* Toned-down cool glows for dark mode */
    --glow-ice: rgba(130, 180, 220, 0.25);
    --glow-cyan: rgba(80, 170, 220, 0.2);
    --glow-violet: rgba(140, 120, 200, 0.18);
    --glow-ice-subtle: rgba(130, 180, 220, 0.08);
  }
  
  .site-header {
    background: rgba(0, 0, 0, 0.85);
  }
  
  .hero::after {
    background-image: 
      linear-gradient(rgba(100, 140, 180, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(100, 140, 180, 0.04) 1px, transparent 1px);
  }
  
  .cta-badge {
    background: rgba(0, 113, 227, 0.2);
    border-color: rgba(0, 113, 227, 0.25);
  }
  
  .waitlist-form input[type="email"] {
    background: var(--color-surface);
    color: var(--color-text);
  }
  
  /* Dark mode decorative cards */
  .decor-card {
    background: linear-gradient(
      135deg,
      rgba(100, 140, 180, 0.06) 0%,
      rgba(80, 120, 160, 0.03) 100%
    );
    border-color: rgba(100, 140, 180, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  }
  
  .decor-card::before {
    background: rgba(100, 140, 180, 0.1);
  }
  
  .decor-card::after {
    background: rgba(100, 140, 180, 0.08);
  }
  
  .decor-card-1 {
    opacity: 0.6;
  }
  
  .decor-card-2 {
    opacity: 0.4;
  }
}
