/* ============================================
   Summit Planner — Landing Page Styles
   Noir Theme | Brand Red #C8302C
   ============================================ */

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

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

:root {
  /* Brand */
  --brand: #C8302C;
  --brand-hover: #E03B37;
  --brand-glow: rgba(200, 48, 44, 0.25);

  /* Surfaces */
  --page-bg: #0B0D10;
  --surface-1: #14171C;
  --surface-2: #1B1F26;
  --surface-inset: #060709;

  /* Text */
  --text-primary: #F0F0F0;
  --text-secondary: #8B92A0;
  --text-muted: #555D6E;

  /* Border */
  --border: #1E2330;
  --border-strong: #2A3040;

  /* Layout */
  --max-width: 1100px;
  --section-gap: 100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--brand-hover);
}

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, var(--brand-glow) 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite;
  opacity: 0.4;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(200, 48, 44, 0.1) 0%, transparent 70%);
  animation: drift 25s ease-in-out infinite reverse;
  opacity: 0.3;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(11, 13, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-logo .planner-text {
  color: var(--brand);
}

.header-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  background: rgba(200, 48, 44, 0.12);
  border: 1px solid rgba(200, 48, 44, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  padding-top: 160px;
  padding-bottom: var(--section-gap);
  text-align: center;
}

.hero-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .highlight {
  color: var(--brand);
}

.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-tagline .divider {
  color: var(--brand);
  margin: 0 8px;
}

.hero-description {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 0 var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--brand-glow);
}

/* --- Divider Line --- */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--brand);
  margin: 0 auto var(--section-gap);
  border-radius: 1px;
  opacity: 0.5;
}

/* --- Features --- */
.features {
  padding-bottom: var(--section-gap);
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(200, 48, 44, 0.1);
  border: 1px solid rgba(200, 48, 44, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Coming Soon Banner --- */
.coming-soon {
  padding-bottom: var(--section-gap);
}

.coming-soon-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.coming-soon-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.coming-soon-card p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 64px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-mark {
    width: 72px;
    height: 72px;
  }

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

  .coming-soon-card {
    padding: 40px 24px;
  }

  .footer .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-badge {
    display: none;
  }

  .hero-tagline .divider {
    margin: 0 4px;
  }
}

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