/* Gist Landing Page */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0f1a;
  --bg-2: #111827;
  --surface: #1e293b;
  --surface-2: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --green-dark: #16a34a;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #22c55e);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

/* ========== HERO ========== */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse at 20% 50%, var(--blue-glow), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.subtitle em {
  font-style: italic;
  color: var(--text);
}

/* Signup form */
.signup-form {
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: var(--sans);
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

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

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

.cta-btn {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.9;
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.trust-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn--primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.8rem;
  background: var(--accent-gradient);
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.1s;
}

.cta-btn--primary:hover {
  opacity: 0.9;
}

.cta-btn--primary:active {
  transform: scale(0.98);
}

.cta-btn--github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.cta-btn--github:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.cta-btn--github svg {
  flex-shrink: 0;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* Compact signup */
.signup-compact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-2);
}

.signup-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cta-btn--outline {
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--sans);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.cta-btn--outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.cta-btn--outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.try-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.try-link:hover {
  color: var(--green);
}

.signup-success {
  text-align: center;
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
}

.success-check {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Phone mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  background: #1a1a2e;
  border: 2px solid var(--surface-2);
  border-radius: 28px;
  padding: 10px;
  width: 320px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
}

.demo-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ========== SHARED SECTION STYLES ========== */

section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

/* ========== PAIN SECTION ========== */

.pain-section {
  padding: 5rem 0;
  background: var(--bg-2);
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 14px;
  padding: 1.5rem;
}

.card-emoji {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.6rem;
}

.pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ========== SOLUTION SECTION ========== */

.solution-section {
  padding: 5rem 0;
}

.solution-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(34,197,94,0.06));
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 14px;
  padding: 1.5rem;
}

.solution-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ========== FOUNDER SECTION ========== */

.founder-section {
  padding: 4rem 0;
  background: var(--bg-2);
}

.founder-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.founder-quote {
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.founder-quote::before {
  content: "\201c";
  display: none;
}

.founder-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.founder-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ========== FAQ SECTION ========== */

.faq-section {
  padding: 5rem 0;
}

.faq-section .container {
  max-width: 640px;
}

.faq-item {
  border-bottom: 1px solid var(--surface-2);
  padding: 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--surface-2);
}

.faq-item summary {
  list-style: none;
  padding: 1.2rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-bottom: 1.2rem;
}

.faq-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--surface-2);
  transition: border-color 0.2s;
}

.faq-link:hover {
  border-color: var(--blue);
}

/* ========== BOTTOM CTA ========== */

.bottom-cta {
  padding: 5rem 0;
  background: var(--bg-2);
  text-align: center;
}

.bottom-cta .container {
  max-width: 540px;
}

.bottom-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.bottom-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.bottom-signup {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-2);
}

.bottom-signup .signup-label {
  margin-bottom: 0.6rem;
}

.bottom-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  margin-top: -1rem;
}

.try-link-inline {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.try-link-inline:hover {
  color: var(--green);
}

.bottom-cta .signup-form {
  max-width: 440px;
  margin: 0 auto;
}

/* ========== FOOTER ========== */

.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-footer a:hover {
  border-color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 3rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .subtitle {
    font-size: 1rem;
  }

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

  .cta-btn {
    width: 100%;
    text-align: center;
  }

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

  .hero-actions .cta-btn--primary,
  .hero-actions .cta-btn--github {
    width: 100%;
    justify-content: center;
  }

  .bottom-actions {
    flex-direction: column;
  }

  .bottom-actions .cta-btn--primary,
  .bottom-actions .cta-btn--github {
    width: 100%;
    justify-content: center;
  }

  .hero-mockup {
    order: 1;
  }

  .phone-frame {
    width: 280px;
  }

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

  section h2 {
    font-size: 1.3rem;
  }

  .pain-section,
  .solution-section,
  .faq-section,
  .bottom-cta,
  .founder-section {
    padding: 3rem 0;
  }
}
