/* ===== VARIABLES ===== */
:root {
  --brand-blue: #2e6ab4;
  --brand-blue-hover: #265a9a;

  --white: #ffffff;
  --bg-subtle: #fafafa;
  --foreground: hsl(0 0% 7%);
  --background: hsl(0 0% 100%);
  --muted-foreground: hsl(0 0% 45%);
  --border: hsl(0 0% 90%);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;

  --max-width: 80rem; /* 1280px */
  --radius: 0.375rem;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ===== BASE ===== */
body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  font-size: 16px;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
}

h1 em {
  font-style: normal;
  color: var(--brand-blue);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--foreground);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.5);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 40rem;
}

.section-subtitle-light {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  max-width: 48rem;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  border-radius: var(--radius);
  padding: 0 1.25rem;
  height: 2.5rem;
  transition: opacity var(--transition-base);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--white);
}

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

.btn-lg {
  height: 3.25rem;
  padding: 0 2rem;
  font-size: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 1.75rem;
  width: auto;
}

.logo-img-sm {
  height: 1.5rem;
}

.navbar-cta .btn {
  padding: 0 1.25rem;
}

/* ===== HERO ===== */
.hero {
  padding: 6rem 1.5rem 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 48rem;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 36rem;
}

.hero-visual {
  position: relative;
}

.hero-visual-glow {
  position: absolute;
  inset: auto 8% -8% 8%;
  height: 82%;
  background: radial-gradient(circle at center, rgba(46, 106, 180, 0.28), rgba(46, 106, 180, 0));
  filter: blur(28px);
  z-index: 0;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(46, 106, 180, 0.14);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 250, 0.92));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 4rem 1.5rem;
}

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

.stat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  color: rgba(0, 0, 0, 0.7);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 6rem 1.5rem;
  background: var(--foreground);
  color: var(--background);
}

.problem h2 {
  color: var(--background);
  margin-bottom: 1.5rem;
}

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

.problem-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.problem-stat {
  text-align: right;
}

.problem-stat-number {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--brand-blue);
}

.problem-stat-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.problem-stat-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 4.75rem 1.5rem 6rem;
  background: var(--bg-subtle);
}

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

.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.feature-icon {
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-detail {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
}

/* ===== SECURITY ===== */
.security {
  padding: 6rem 1.5rem;
  background: var(--foreground);
  color: var(--background);
}

.security h2 {
  color: var(--background);
}

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

.security-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.security-icon {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.security-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--background);
  margin-bottom: 0.5rem;
}

.security-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 6rem 1.5rem;
}

.faq-header {
  max-width: 48rem;
  margin: 0 auto;
  margin-bottom: 4rem;
}

.faq-header h2 {
  margin-top: 0;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.faq-question span {
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  padding-bottom: 1.5rem;
}

/* ===== WAITLIST ===== */
.waitlist {
  padding: 6rem 1.5rem;
  background: var(--bg-subtle);
}

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

.waitlist h2 {
  margin-bottom: 1rem;
}

.waitlist-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  height: 3rem;
  padding: 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: box-shadow var(--transition-fast);
}

.waitlist-form input[type="email"]::placeholder {
  color: hsl(0 0% 55%);
}

.waitlist-form input[type="email"]:focus {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.waitlist-form .btn {
  height: 3rem;
  padding: 0 2rem;
  white-space: nowrap;
}

.waitlist-privacy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
}

/* Form success */
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #16a34a;
  flex-shrink: 0;
}

.form-success span {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted-foreground);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content,
  .hero-visual {
    max-width: 42rem;
  }
}

@media (max-width: 768px) {
  .navbar-cta .btn {
    padding: 0 1rem;
    font-size: 0.875rem;
  }

  .hero {
    padding: 5.25rem 1.5rem 4rem;
  }

  .hero-layout {
    gap: 2rem;
  }

  .hero-image-frame {
    padding: 0.7rem;
    border-radius: 1.25rem;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .stats-bar {
    padding: 3rem 1.5rem;
  }

  .features,
  .faq {
    padding: 4rem 1.5rem;
  }

  .problem,
  .security {
    padding: 4rem 1.5rem;
  }

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

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

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

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

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

  .waitlist-form input[type="email"],
  .waitlist-form .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 10rem 1.5rem 7rem;
  }
}

@media (min-width: 1025px) {
  .hero {
    padding: 10rem 1.5rem 7rem;
  }
}
