/* ═══════════════════════════════════════════════════════════════
   Groundwrk · landing.css
   Landing page styles — inherits design tokens from style.css
   ═══════════════════════════════════════════════════════════════ */


/* ─── Reset & base ────────────────────────────────────────────── */

.landing {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.landing *,
.landing *::before,
.landing *::after {
  box-sizing: border-box;
}


/* ─── Navigation ──────────────────────────────────────────────── */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--md) var(--xl);
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.landing-nav.scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.landing-nav .wordmark {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.landing-nav .wordmark span {
  color: var(--teal);
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: var(--md);
}


/* ─── Buttons ─────────────────────────────────────────────────── */

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.landing-btn-primary {
  background: var(--teal);
  color: #0D1117;
  border-color: var(--teal);
}

.landing-btn-primary:hover {
  background: #5ED9D1;
  border-color: #5ED9D1;
  transform: translateY(-1px);
}

.landing-btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--border);
}

.landing-btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
}

.landing-btn-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.theme-toggle-landing {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle-landing:hover {
  border-color: var(--teal);
  color: var(--teal);
}


/* ─── Section layout ──────────────────────────────────────────── */

.landing-section {
  padding: 100px var(--xl);
  max-width: 1100px;
  margin: 0 auto;
}

.landing-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--md);
  text-align: center;
}

.landing-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--lg);
  color: var(--text-primary);
}

.landing-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--xxl);
  line-height: 1.7;
}


/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--xl) 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.12) 0%, rgba(88, 166, 255, 0.06) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--xl);
  border: 1px solid rgba(78, 205, 196, 0.2);
  animation: slideUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--lg);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease 0.1s both;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--xl);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--md);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease 0.3s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  opacity: 0.5;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ─── Features ────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--lg);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md), 0 0 20px rgba(78, 205, 196, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--md);
}

.feature-icon-teal { background: var(--teal-dim); color: var(--teal); }
.feature-icon-blue { background: rgba(88, 166, 255, 0.15); color: var(--blue); }
.feature-icon-amber { background: var(--amber-dim); color: var(--amber); }

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sm);
  color: var(--text-primary);
}

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


/* ─── Hosting options ─────────────────────────────────────────── */

.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--lg);
  max-width: 800px;
  margin: 0 auto;
}

.hosting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hosting-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hosting-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--md);
}

.hosting-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.hosting-badge-recommended {
  background: rgba(88, 166, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.hosting-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hosting-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--lg);
}

.hosting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.hosting-list li {
  display: flex;
  align-items: center;
  gap: var(--sm);
  font-size: 14px;
  color: var(--text-muted);
}

.hosting-list li i {
  color: var(--teal);
  flex-shrink: 0;
}


/* ─── About ───────────────────────────────────────────────────── */

.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--lg);
}

.about-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(78, 205, 196, 0.2);
  margin-bottom: var(--xl);
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: var(--xxl);
  margin-top: var(--xl);
}

.about-stat {
  text-align: center;
}

.about-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--xs);
}


/* ─── Login section ───────────────────────────────────────────── */

.login-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--xl);
  box-shadow: var(--shadow-md);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--xs);
  text-align: center;
}

.login-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--lg);
}

.landing-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: var(--md);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.landing-input:focus {
  border-color: var(--teal);
}

.landing-input::placeholder {
  color: var(--text-placeholder);
}

.login-card .landing-btn {
  width: 100%;
  justify-content: center;
}

.login-msg {
  font-size: 13px;
  text-align: center;
  margin-top: var(--md);
  min-height: 20px;
}

.login-msg.error { color: var(--red); }
.login-msg.success { color: var(--green); }


/* ─── Waitlist section ────────────────────────────────────────── */

.waitlist-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: var(--sm);
  margin-top: var(--lg);
}

.waitlist-form .landing-input {
  margin-bottom: 0;
  flex: 1;
}

.waitlist-msg {
  font-size: 13px;
  margin-top: var(--md);
  min-height: 20px;
}

.waitlist-msg.error { color: var(--red); }
.waitlist-msg.success { color: var(--teal); }


/* ─── Footer ──────────────────────────────────────────────────── */

.landing-footer {
  border-top: 1px solid var(--border);
  padding: var(--xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1100px;
  margin: 0 auto;
  transition: border-color 0.2s ease;
}

.landing-footer .wordmark {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.landing-footer .wordmark span {
  color: var(--teal);
}


/* ─── Scroll reveal animation ─────────────────────────────────── */

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* ─── Divider with glow ───────────────────────────────────────── */

.landing-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--teal), var(--border), transparent);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.5;
}


/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .landing-nav {
    padding: var(--md);
  }

  .landing-section {
    padding: 60px var(--md);
  }

  .hero {
    padding: 100px var(--md) 60px;
    min-height: auto;
  }

  .hero::before {
    width: 350px;
    height: 350px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

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

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

  .about-stats {
    gap: var(--xl);
  }

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

  .landing-footer {
    flex-direction: column;
    gap: var(--sm);
    text-align: center;
  }
}
