/* Phase Landing Page - styles.css */
/* Clean, secure, attention-grabbing */

:root {
  /* Colors from Phase app */
  --void: #06060a;
  --night: #0d0d14;
  --twilight: #14141f;
  --dusk: #1e1e2d;
  --slate: #2a2a3d;
  --mist: #8585a5;
  --silver: #a0a0b8;
  --lunar: #d4d4e0;
  --glow: #f0f0f8;

  /* Accent */
  --accent: #8b5cf6;
  --accent-glow: #a78bfa;
  --accent-dim: rgba(139, 92, 246, 0.15);

  /* Mood colors */
  --mood-full: #fcd34d;
  --mood-gibbous: #a3e635;
  --mood-quarter: #60a5fa;
  --mood-crescent: #c084fc;

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-width: min(1200px, 90vw);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--lunar);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--glow);
}

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

img {
  max-width: 100%;
  display: block;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -300px;
  right: -300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(to bottom, var(--void) 0%, transparent 100%);
}

.nav-content {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--glow);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--silver);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: var(--container-width);
  margin: 0 auto;
  padding-top: 6rem;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--accent-glow);
  margin-bottom: 1.5rem;
  animation: pulse-border 3s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse-border {
  0%, 100% { border-color: rgba(139, 92, 246, 0.3); }
  50% { border-color: rgba(139, 92, 246, 0.6); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--glow);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--mood-full) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--silver);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: #7C3AED;
  color: white;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: var(--twilight);
  color: var(--lunar);
  border: 1px solid var(--slate);
}

.btn-secondary:hover {
  background: var(--dusk);
  border-color: var(--mist);
}

/* Trust Items */
.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
  font-size: 0.875rem;
}

.trust-item svg {
  color: var(--accent);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(135deg, var(--slate) 0%, var(--dusk) 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--void);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--void);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.screen-placeholder {
  padding: 60px 20px 20px;
  height: 100%;
}

.placeholder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.placeholder-date {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--glow);
}

.placeholder-mood {
  width: 32px;
  height: 32px;
  background: var(--mood-full);
  border-radius: 50%;
  position: relative;
}

.placeholder-mood::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--void);
  border-radius: 50%;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placeholder-line {
  height: 12px;
  background: linear-gradient(90deg, var(--twilight) 0%, var(--dusk) 50%, var(--twilight) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Features Section */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  width: var(--container-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--glow);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--silver);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--twilight) 0%, var(--night) 100%);
  border: 1px solid var(--dusk);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-glow);
}

.feature-icon.mood-icon {
  background: rgba(252, 211, 77, 0.15);
}

.feature-icon.mood-icon svg {
  width: 32px;
  height: 32px;
  color: var(--night);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Privacy Section */
.privacy {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, transparent 0%, var(--night) 50%, transparent 100%);
}

.privacy-content {
  width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.privacy-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--glow);
  margin-bottom: 1.5rem;
}

.privacy-intro {
  font-size: 1.125rem;
  color: var(--silver);
  margin-bottom: 1rem;
}

.privacy-text strong {
  color: var(--glow);
}

.privacy-list {
  list-style: none;
  margin-top: 1.5rem;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--lunar);
  font-size: 1rem;
}

.privacy-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent-glow);
  flex-shrink: 0;
}

.privacy-table-wrapper {
  background: var(--twilight);
  border: 1px solid var(--dusk);
  border-radius: 1.25rem;
  overflow: hidden;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
}

.privacy-table th,
.privacy-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.privacy-table th {
  background: var(--dusk);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--glow);
  font-size: 0.95rem;
}

.privacy-table td {
  border-top: 1px solid var(--dusk);
  color: var(--silver);
}

.table-no {
  color: var(--accent-glow);
  font-weight: 500;
}

/* Story Section */
.story {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.story-content {
  width: var(--container-width);
  margin: 0 auto;
  max-width: 800px;
}

.story-quote {
  text-align: center;
}

.quote-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 2rem;
}

.story-quote blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--lunar);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.story-attribution {
  color: var(--silver);
  font-size: 1rem;
}

/* CTA Section */
.cta {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.cta-content {
  width: var(--container-width);
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--glow);
  margin-bottom: 1rem;
}

.cta > p {
  color: var(--silver);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-subtitle {
  color: var(--silver);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.cta-platform {
  color: var(--mist);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.cta-disclaimer {
  color: var(--mist);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.notify-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: var(--twilight);
  border: 1px solid var(--slate);
  border-radius: 0.75rem;
  color: var(--glow);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.notify-form input::placeholder {
  color: var(--mist);
}

.notify-form input:focus {
  border-color: var(--accent);
}

.form-note {
  color: var(--mist);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--dusk);
}

.footer-content {
  width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--mist);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column h4,
.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-column a {
  display: block;
  color: var(--silver);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent-glow);
}

.footer-bottom {
  width: var(--container-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--dusk);
  text-align: center;
}

.footer-bottom p {
  color: var(--mist);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    order: 1;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

  .privacy-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

  .hero-cta {
    flex-direction: column;
  }

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

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-form .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 1rem;
}

/* Mobile hamburger menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--silver);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 5vw;
    background: var(--night);
    border: 1px solid var(--dusk);
    border-radius: 0.75rem;
    padding: 0.75rem 0;
    min-width: 160px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1.25rem;
  }

  .nav-links a:hover {
    background: var(--twilight);
  }
}

/* Footer contact button */
.footer-contact-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: block;
  color: var(--silver);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  text-align: left;
}

.footer-contact-btn:hover {
  color: var(--accent-glow);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}