/* ============================================
   ClawDen.dev — Landing Page Styles
   Dark tech editorial. Typography-driven.
   No AI slop. No gratuitous glows.
   ============================================ */

/* ── Color Tokens ──────────────────────────── */

:root {
  /* Dark mode (default) */
  --bg:       #0F1117;
  --surface:  #1A1D27;
  --text:     #E5E7EB;
  --muted:    #9CA3AF;
  --accent:   #32B8C6;
  --border:   #2A2D37;
  --danger:   #FF5459;

  /* Typography scale (fluid, clamp-based) */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;

  /* Layout */
  --max-width:   1200px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 10vh, 8rem);
}

[data-theme="light"] {
  --bg:       #FAFBFC;
  --surface:  #FFFFFF;
  --text:     #1F2937;
  --muted:    #6B7280;
  --accent:   #218D8D;
  --border:   #E5E7EB;
  --danger:   #DC2626;
}

/* ── Reset & Base ──────────────────────────── */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Navbar ────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  /* Slight transparency for depth without glows */
  backdrop-filter: blur(8px);
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
}

.navbar__wordmark {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.navbar__wordmark:hover {
  text-decoration: none;
  color: var(--accent);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"] .theme-toggle__icon--moon,
.theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

/* "Coming 2026" pill badge — teal tinted like Stitch Bold */
.navbar__badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background-color: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Hero ──────────────────────────────────── */

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: var(--section-pad) var(--gutter);
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__text {
  max-width: 640px;
}

.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__headline-line {
  display: block;
}

.hero__headline-line--accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__micro {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Mascot image */
.hero__mascot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__mascot img {
  max-height: 520px;
  width: auto;
  /* Subtle drop shadow — NOT a glow, just separation from bg */
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.3));
}

/* ── Signup Form ───────────────────────────── */

.signup__input-wrap {
  display: flex;
  gap: 0;
  max-width: 480px;
}

.signup__input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s;
}

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

.signup__input:focus {
  border-color: var(--accent);
}

.signup__button {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #0F1117;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.signup__button:hover {
  opacity: 0.85;
}

.signup__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status message (success / error) */
.signup__status {
  font-size: var(--text-sm);
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

.signup__status--success {
  color: var(--accent);
}

.signup__status--error {
  color: var(--danger);
}

/* ── Arsenal — combined features + stats ───── */

.arsenal {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--border);
}

.arsenal__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Section label — small monospace above features */
.arsenal__section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* Feature items — compact, border-separated, no cards */
.arsenal__list {
  display: flex;
  flex-direction: column;
}

.arsenal__item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.arsenal__item:last-child {
  border-bottom: 1px solid var(--border);
}

.arsenal__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.arsenal__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ── Alert Card (stats panel) ──────────────── */

.alert-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.alert-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.alert-card__icon {
  color: var(--danger);
  flex-shrink: 0;
}

.alert-card__badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.alert-card__headline {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.alert-card__headline--muted {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: var(--text-base);
  margin-top: 0.25rem;
}

.alert-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-card__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.alert-card__number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.alert-card__stat--danger .alert-card__number {
  color: var(--danger);
}

.alert-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alert-card__footer {
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.alert-card__footer strong {
  color: var(--text);
}

/* ── Powered By ────────────────────────────── */

.powered-by {
  border-top: 1px solid var(--border);
  padding: 3rem var(--gutter);
  text-align: center;
}

.powered-by__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.powered-by__text {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
}

/* ── FAQ ───────────────────────────────────── */

.faq {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--border);
}

.faq__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

/* Question (summary) — clickable toggle */
.faq__question {
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

/* Remove default disclosure triangle */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: "";
}

/* Plus/minus indicator */
.faq__question::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  content: "\2212"; /* minus sign */
}

/* Answer area */
.faq__answer {
  padding-top: 1rem;
}

.faq__answer p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

/* ── Confirmation Modal ────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  /* Start invisible — .modal--visible fades in */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal--visible {
  opacity: 1;
  visibility: visible;
}

/* Dark overlay behind the card */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
}

/* Centered card */
.modal__card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 440px;
  width: 100%;
  text-align: center;
  /* Slide up slightly on enter */
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal--visible .modal__card {
  transform: translateY(0);
}

.modal__icon {
  margin-bottom: 1.25rem;
}

.modal__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.modal__message {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* "Got it" button — matches site accent style */
.modal__close {
  display: inline-block;
  padding: 0.65rem 2rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #0F1117;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal__close:hover {
  opacity: 0.85;
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Footer ────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--gutter);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text);
  text-decoration: none;
}

.footer__powered {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── Legal Pages (Privacy, Terms) ──────────── */

.legal {
  padding: var(--section-pad) var(--gutter);
  padding-top: 3rem;
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal__breadcrumb {
  font-size: var(--text-sm);
  margin-bottom: 2rem;
}

.legal__breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.legal__breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.legal__intro {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal__heading {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

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

.legal p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}

.legal__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.legal__list li {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.25rem;
  position: relative;
}

.legal__list li::before {
  content: "\2013"; /* en-dash */
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ── Responsive ────────────────────────────── */

/* Tablet (< 900px): stack hero, stack arsenal */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
    order: 1;
  }

  .hero__mascot {
    order: 0;
    justify-content: center;
  }

  .hero__mascot img {
    max-height: 320px;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .signup__input-wrap {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Arsenal: stack features above stats card */
  .arsenal__inner {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile (< 600px): compact everything */
@media (max-width: 600px) {
  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .signup__input-wrap {
    flex-direction: column;
    gap: 0.5rem;
  }

  .signup__input {
    border-right: 1px solid var(--border);
    border-radius: 8px;
  }

  .signup__button {
    border-radius: 8px;
  }

  .hero__mascot img {
    max-height: 260px;
  }

  .footer__links {
    gap: 1rem;
  }
}
