@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

:root {
  --background: #ffffff;
  --foreground: #07120c;
  --muted: #f3f7f4;
  --muted-foreground: #5a675f;
  --primary: #0a8f4f;
  --primary-hover: #077a42;
  --primary-foreground: #ffffff;
  --accent: #1ef08a;
  --dark: #04110a;
  --border: #e2eae5;
  --input: #d0dcd4;
  --destructive: #c62828;
  --radius: 0.75rem;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow-light {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font: 600 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:focus-visible,
.link-arrow:focus-visible {
  outline: 3px solid rgba(30, 240, 138, 0.55);
  outline-offset: 2px;
}

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

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-sm {
  height: 2.375rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

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

.btn-block {
  width: 100%;
}

.link-arrow {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 240, 138, 0.2);
}

.brand {
  font-weight: 600;
  text-decoration: none;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.hero-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.lead {
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 22rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: url('images/hero-bg.webp') 78% center / cover no-repeat, var(--dark);
  overflow: hidden;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(4, 17, 10, 0.55);
  backdrop-filter: blur(12px);
  color: #ffffff;
}

.hero-badge svg {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.hero-badge-title {
  font-weight: 600;
}

.hero-badge-text {
  font-size: 0.8125rem;
  color: #b9cbc0;
}

/* Strip */
.strip {
  background: var(--dark);
  color: #ffffff;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.25rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strip li::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  transform: rotate(45deg);
}

/* How it works */
.how {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.how-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.how h2,
.signup-info h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.how-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 1px solid var(--border);
}

.how-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.how-number {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}

.how-list h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.how-list p {
  max-width: 30rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Signup */
.signup {
  padding: 1.25rem;
  scroll-margin-top: 4rem;
}

.signup-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.25rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(4, 17, 10, 0.82) 0%, rgba(4, 17, 10, 0.94) 100%),
    url('images/hero-bg.webp') center / cover no-repeat,
    var(--dark);
  color: #ffffff;
}

.signup-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
}

.signup-info > p:last-child {
  max-width: 26rem;
  line-height: 1.65;
  color: #b9cbc0;
}

.signup-card {
  flex: 1.2;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  color: var(--foreground);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.input {
  width: 100%;
  height: 3rem;
  padding: 0 0.875rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--foreground);
  font: 400 1rem var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.input::placeholder {
  color: #8a968f;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 240, 138, 0.3);
}

.input[aria-invalid='true'] {
  border-color: var(--destructive);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400 !important;
  line-height: 1.55;
  color: var(--muted-foreground);
  cursor: pointer;
}

.checkbox-label input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--foreground);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--destructive);
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(198, 40, 40, 0.08);
  font-size: 0.875rem;
  color: var(--destructive);
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.success-card svg {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.success-card p:last-child {
  color: var(--muted-foreground);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer nav a {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.disclaimer {
  max-width: 36rem;
}

/* Legal pages */
.legal-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-main h1 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-main h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.legal-main p,
.legal-main li {
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-main ul {
  padding-left: 1.25rem;
}

@media (min-width: 640px) {
  .field-row {
    flex-direction: row;
  }

  .signup-card {
    padding: 2rem;
  }
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .hero-text {
    justify-content: center;
  }

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

  .hero-visual {
    flex: 0 0 42%;
    min-height: 34rem;
    padding: 1.5rem;
  }

  .how {
    flex-direction: row;
    gap: 4rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .how-head {
    flex: 0 0 18rem;
  }

  .how h2,
  .signup-info h2 {
    font-size: 3rem;
  }

  .how-list {
    flex: 1;
  }

  .how-list li {
    display: grid;
    grid-template-columns: 4rem 1fr 1.2fr;
    align-items: baseline;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .signup {
    padding: 1.5rem;
  }

  .signup-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spinner {
    animation-duration: 2s;
  }
}
