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

:root {
  /* Brand — Cyan primary */
  --color-primary: #00a3d7;
  --color-primary-hover: #0091c2;
  --color-primary-light: #33b5df;
  --color-primary-dark: #007da6;
  --color-ring: rgba(0, 163, 215, 0.35);

  /* Brand gradient — Logo & accents */
  --gradient-brand: linear-gradient(135deg, #e53e3e, #ed8936, #ecc94b);

  /* Surfaces — Dark navy */
  --color-bg: #0d1117;
  --color-surface-800: #131920;
  --color-surface-700: #1a202c;
  --color-surface-600: #232b3a;
  --color-surface-500: #2d3748;

  /* Text */
  --color-text: #e2e8f0;
  --color-text-secondary: #a0aec0;
  --color-text-muted: #718096;

  /* Borders */
  --color-border: #2d3748;
  --color-border-hover: #4a5568;

  /* Status */
  --color-success: #48bb78;
  --color-error: #fc8181;

  /* Layout */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 960px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* === Header === */
header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-800);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(19, 25, 32, 0.85);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero h1 .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.coming-soon {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: rgba(0, 163, 215, 0.12);
  border: 1px solid rgba(0, 163, 215, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
}

/* === Features === */
.features {
  padding: 3rem 1.5rem 4rem;
}

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

.features .section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.features .section-header p {
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--color-surface-800);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

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

/* === Signup === */
.signup {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}

.signup-box {
  background: var(--color-surface-800);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  max-width: 540px;
  margin: 0 auto;
}

.signup h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.signup > .signup-box > p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

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

.email-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface-700);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.email-form input::placeholder {
  color: var(--color-text-muted);
}

.email-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-ring);
}

.email-form button {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--color-primary-hover);
}

.email-form button:active {
  transform: scale(0.97);
}

.email-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.form-message.success {
  color: var(--color-success);
}

.form-message.error {
  color: var(--color-error);
}

.signup-fine-print {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === Footer === */
footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
}

.footer-brand {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === Divider === */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === Footer links === */
.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-sep {
  color: var(--color-text-muted);
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

/* === Prose (Privacy, Terms, etc.) === */
.prose {
  padding: 3rem 1.5rem 5rem;
  max-width: 720px;
}

.prose h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.prose-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.prose ul {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.prose a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.prose a:hover {
  border-bottom-color: var(--color-primary);
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1.25rem 2rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

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

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

  .email-form button {
    width: 100%;
  }

  .signup-box {
    padding: 2rem 1.25rem;
  }
}
