@import url('satoshi.css');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-lime:        #8DEF52;
  --color-lime-dark:   #6DD633;
  --color-lime-subtle: rgba(141, 239, 82, 0.12);
  --color-forest:      #1C3828;
  --color-forest-mid:  #2D5A3D;
  --color-white:       #FFFFFF;
  --color-surface:     #F6F8F4;
  --color-border:      #D3E8C0;
  --color-text:        #1C1C1E;
  --color-muted:       #6B7C6E;
  --color-error:       #E8392A;

  --font-base: 'Satoshi-Variable', system-ui, sans-serif;

  --radius-pill: 999px;
  --radius-card: 12px;
  --header-height: 72px;

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.75;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  position: relative;
  z-index: 10;
}

.site-header__logo img {
  height: 32px;
  width: auto;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}


.hero > * {
  position: relative;
  z-index: 1;
}

/* Eyebrow badge */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-lime);
  color: var(--color-forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-forest);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Headline */
.hero__headline {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-forest);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero__headline em {
  font-style: normal;
  color: var(--color-lime-dark);
  position: relative;
  display: inline-block;
}

.hero__headline em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--color-lime-dark);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero__headline em.is-animated::after {
  transform: scaleX(1);
}

/* Description */
.hero__description {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-muted);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

/* ============================================================
   Waitlist Form
   ============================================================ */
.waitlist-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .waitlist-form {
    flex-direction: row;
  }
}

.waitlist-form__input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.waitlist-form__input {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.waitlist-form__input::placeholder {
  color: var(--color-muted);
}

.waitlist-form__input:focus {
  border-color: var(--color-lime-dark);
  box-shadow: 0 0 0 3px rgba(141, 239, 82, 0.25);
}

.waitlist-form__input.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(232, 57, 42, 0.12);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 0.375rem;
  text-align: left;
}

.waitlist-form__btn {
  height: 52px;
  padding: 0 1.5rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-forest);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.waitlist-form__btn:hover {
  background: var(--color-forest-mid);
}

.waitlist-form__btn:focus-visible {
  outline: 3px solid var(--color-lime-dark);
  outline-offset: 2px;
}

.waitlist-form.is-submitted .waitlist-form__input-wrap,
.waitlist-form.is-submitted .waitlist-form__btn {
  display: none;
}

/* Form note */
.form-note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.form-note a {
  color: var(--color-muted);
  font-weight: 500;
}

/* Form success */
.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--color-lime-subtle);
  border: 1.5px solid var(--color-lime-dark);
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-forest);
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
}

.form-success__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-success[hidden] {
  display: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-forest);
  color: var(--color-white);
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
}

.site-footer__nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--color-white);
  opacity: 1;
}

.site-footer__disclaimer {
  width: 100%;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

/* ============================================================
   Entrance Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .fade-up:nth-child(1) { animation-delay: 0.05s; }
  .fade-up:nth-child(2) { animation-delay: 0.15s; }
  .fade-up:nth-child(3) { animation-delay: 0.25s; }
  .fade-up:nth-child(4) { animation-delay: 0.35s; }
  .fade-up:nth-child(5) { animation-delay: 0.45s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================================
   Legal Pages
   ============================================================ */
body.legal-page {
  background: var(--color-surface);
}

.legal-main {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
}

.legal-container {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 720px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest-mid);
  margin-bottom: 0.75rem;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-forest);
  margin-bottom: 0.625rem;
}

.legal-header .last-updated {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.legal-body section {
  margin-bottom: 2.25rem;
}

.legal-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-forest);
  border-left: 3px solid var(--color-lime);
  padding-left: 1rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.legal-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0.875rem;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body ul,
.legal-body ol {
  margin: 0.5rem 0 0.875rem;
}

.legal-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.legal-body a {
  color: var(--color-forest-mid);
  font-weight: 500;
}

.legal-body strong {
  font-weight: 700;
  color: var(--color-forest);
}

/* ============================================================
   Utility
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
