/* ── AnyMarker Landing Page — Variant B ────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;700;900&display=swap');

:root {
  /* ── Color Palette (OKLCH) ───────────────────── */
  --am-bg: oklch(0.05 0.02 270);
  --am-bg-elevated: oklch(0.09 0.03 270);
  --am-bg-card: oklch(0.12 0.04 270);
  --am-bg-input: oklch(0.11 0.03 270);

  --am-accent: oklch(0.78 0.12 277);
  --am-accent-strong: oklch(0.585 0.233 277.117);
  --am-accent-strong-hover: oklch(0.62 0.233 277.117);
  --am-accent-glow: oklch(0.45 0.18 277);

  --am-text: oklch(0.98 0 0);
  --am-text-muted: oklch(0.72 0.01 270);
  --am-text-dim: oklch(0.55 0.01 270);
  --am-border: oklch(0.98 0 0 / 0.1);
  --am-border-hover: oklch(0.98 0 0 / 0.2);
  --am-success: oklch(0.65 0.18 145);
  --am-error: oklch(0.63 0.22 25);

  /* ── Typography Scale ──────────────────────────── */
  --am-font-display: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --am-font-body: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --am-font-mono: 'Geist Mono', 'SF Mono', 'Consolas', 'Monaco', monospace;

  --text-hero: clamp(56px, 8vw, 88px);
  --text-section: clamp(36px, 5vw, 52px);
  --text-card: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --text-label: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--am-font-body);
  font-synthesis: none;
  background: var(--am-bg);
  color: var(--am-text);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

::selection {
  background: var(--am-accent-strong);
  color: var(--am-text);
}

:focus-visible {
  outline: 2px solid oklch(0.585 0.233 277.117 / 0.6);
  outline-offset: 2px;
}

/* ── Background Glow ───────────────────────────── */

.am-bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, oklch(0.45 0.18 277 / 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, oklch(0.75 0.12 277 / 0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, oklch(0.45 0.18 277 / 0.1) 0%, transparent 40%);
}

.am-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Placeholder ───────────────────────────────── */

.am-placeholder {
  background: var(--am-bg-card);
  border: 1px dashed var(--am-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-text-dim);
  font-size: var(--text-small);
  font-weight: 500;
}

/* ── Nav ───────────────────────────────────────── */

.am-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: oklch(0.05 0.02 270 / 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--am-border);
}

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

.am-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--am-font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--am-text);
  text-decoration: none;
}

.am-nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.am-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.am-nav-links a {
  color: var(--am-text-muted);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 500;
  transition: color 0.2s;
}

.am-nav-links a:hover { color: var(--am-text); }

.am-nav-links .am-nav-download {
  padding: 10px 20px;
  background: var(--am-accent-strong);
  color: #ffffff;
  border-radius: 100px;
  font-weight: 700;
  font-size: var(--text-small);
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.am-nav-links .am-nav-download:hover {
  background: #ffffff;
  color: var(--am-accent-strong);
  box-shadow: 0 8px 24px oklch(0.45 0.18 277 / 0.35);
}

.am-nav-links .am-nav-download:active { transform: scale(0.96); }

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

.am-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 100px;
  text-align: center;
}

.am-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 32px;
  padding: 8px 16px;
  border: 1px solid var(--am-border);
  border-radius: 100px;
  font-size: var(--text-label);
  font-family: var(--am-font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--am-text-muted);
  text-wrap: nowrap;
}

.am-hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--am-success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--am-success);
}

.am-hero h1 {
  font-family: var(--am-font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}

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

.am-hero p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--am-text-muted);
  max-width: 65ch;
  margin: 0 auto 40px;
  text-wrap: pretty;
}

.am-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.am-btn:active { transform: scale(0.96); }

.am-btn-primary {
  background: var(--am-accent-strong);
  color: white;
  box-shadow: 0 12px 40px oklch(0.45 0.18 277 / 0.3);
}

.am-btn-primary:hover {
  background: var(--am-accent-strong-hover);
  box-shadow: 0 16px 50px oklch(0.45 0.18 277 / 0.45);
}

.am-btn-secondary {
  background: transparent;
  color: var(--am-text);
  border: 1px solid var(--am-border);
}

.am-btn-secondary:hover {
  background: var(--am-bg-elevated);
  border-color: var(--am-border-hover);
}

.am-hero-shot {
  border-radius: 24px;
  border: 1px solid var(--am-border);
  overflow: hidden;
  box-shadow: 0 60px 120px oklch(0 0 0 / 0.6);
  background: var(--am-bg-card);
}

.am-hero-shot img,
.am-hero-shot .am-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: none;
}

/* ── Sections ──────────────────────────────────── */

.am-section {
  padding: 120px 0;
}

.am-section-header {
  text-align: center;
  margin-bottom: 80px;
}

.am-section-label {
  font-family: var(--am-font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--am-accent);
  margin-bottom: 16px;
  text-wrap: nowrap;
}

.am-section-header h2 {
  font-family: var(--am-font-display);
  font-size: var(--text-section);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.am-section-header p {
  color: var(--am-text-muted);
  max-width: 65ch;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── Problem ───────────────────────────────────── */

.am-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.am-problem-card {
  background: var(--am-bg-elevated);
  border: 1px solid var(--am-border);
  border-radius: 24px;
  padding: 40px;
}

.am-problem-card h3 {
  font-family: var(--am-font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.am-problem-card ul {
  list-style: none;
  color: var(--am-text-muted);
}

.am-problem-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--am-border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.am-problem-card li:last-child { border-bottom: none; }

.am-problem-x li::before {
  content: "×";
  color: var(--am-error);
  font-weight: 700;
  font-size: 20px;
}

.am-problem-check li::before {
  content: "✓";
  color: var(--am-success);
  font-weight: 700;
  font-size: 18px;
}

/* ── Features ──────────────────────────────────── */

.am-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.am-feature {
  background: var(--am-bg-elevated);
  border: 1px solid var(--am-border);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.am-feature:hover {
  transform: translateY(-4px);
  border-color: var(--am-accent);
}

.am-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: oklch(0.78 0.12 277 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.am-feature h3 {
  font-family: var(--am-font-display);
  font-size: var(--text-card);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.am-feature p {
  color: var(--am-text-muted);
  font-size: var(--text-small);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── How it Works ──────────────────────────────── */

.am-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.am-step {
  background: var(--am-bg-elevated);
  border: 1px solid var(--am-border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
}

.am-step::after {
  content: attr(data-step);
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--am-font-mono);
  font-size: var(--text-small);
  color: var(--am-text-dim);
}

.am-step h3 {
  font-family: var(--am-font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  margin-top: 16px;
}

.am-step p {
  color: var(--am-text-muted);
  font-size: var(--text-small);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── Use Cases ─────────────────────────────────── */

.am-usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.am-usecase {
  background: var(--am-bg-elevated);
  border: 1px solid var(--am-border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.am-usecase h3 {
  font-family: var(--am-font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.am-usecase p {
  color: var(--am-text-muted);
  font-size: var(--text-small);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── Video ─────────────────────────────────────── */

.am-video-section {
  text-align: center;
}

.am-video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--am-border);
  overflow: hidden;
  background: var(--am-bg-card);
}

.am-video-wrapper video,
.am-video-wrapper .am-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: none;
}

/* ── Download ──────────────────────────────────── */

.am-download-section {
  text-align: center;
  background: var(--am-bg-elevated);
  border-radius: 32px;
  padding: 80px;
  border: 1px solid var(--am-border);
}

.am-download-section h2 {
  font-family: var(--am-font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.am-download-section > p {
  color: var(--am-text-muted);
  margin-bottom: 32px;
}

.am-download-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.am-download-card {
  width: 240px;
  padding: 24px;
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 20px;
  text-align: center;
}

.am-download-card h4 {
  font-family: var(--am-font-display);
  font-size: 18px;
  font-weight: 900;
  margin: 16px 0 4px;
}

.am-download-card p {
  font-size: 13px;
  color: var(--am-text-dim);
  margin-bottom: 16px;
}

/* ── Newsletter ────────────────────────────────── */

.am-newsletter {
  background: var(--am-bg-elevated);
  border: 1px solid var(--am-border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
}

.am-newsletter h2 {
  font-family: var(--am-font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}

.am-newsletter p {
  color: var(--am-text-muted);
  margin-bottom: 24px;
  text-wrap: pretty;
}

.am-newsletter-form {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.am-newsletter-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.am-newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  background: var(--am-bg-input);
  border: 1px solid var(--am-border);
  border-radius: 100px;
  color: var(--am-text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

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

.am-newsletter-form input[type="email"]:focus {
  border-color: var(--am-accent-strong);
}

.am-newsletter-form button {
  width: 100%;
  height: 48px;
  padding: 12px 20px;
  background: var(--am-accent-strong);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.am-newsletter-form button:hover {
  background: var(--am-accent-strong-hover);
  box-shadow: 0 8px 24px oklch(0.45 0.18 277 / 0.35);
}

.am-newsletter-form button:active { transform: scale(0.96); }

.am-newsletter-branding {
  margin-top: 12px;
  text-align: center;
}

.am-newsletter-branding a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--am-border);
  border-radius: 9999px;
  background: var(--am-bg-card);
  font-size: 12px;
  line-height: 16px;
  color: var(--am-text-dim);
  text-decoration: none;
}

.am-newsletter-branding a span {
  font-weight: 700;
  color: var(--am-text-muted);
}

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

.am-footer {
  padding: 60px 0;
  border-top: 1px solid var(--am-border);
}

.am-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--am-text-dim);
  font-size: var(--text-small);
}

.am-footer a {
  color: var(--am-text-muted);
  text-decoration: none;
}

.am-footer a:hover { color: var(--am-text); }

/* ── Theme Toggle ──────────────────────────────── */

.am-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--am-border);
  border-radius: 100px;
  background: transparent;
  color: var(--am-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.am-theme-toggle:hover {
  background: var(--am-bg-elevated);
  border-color: var(--am-border-hover);
}

.am-theme-toggle:active { transform: scale(0.92); }

.am-theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── Light Mode ────────────────────────────────── */

html[data-theme="light"] {
  --am-bg: oklch(0.98 0.005 260);
  --am-bg-elevated: oklch(0.93 0.015 260);
  --am-bg-card: oklch(0.89 0.02 260);
  --am-bg-input: oklch(0.96 0.01 260);

  --am-accent: oklch(0.55 0.2 277);
  --am-accent-strong: oklch(0.585 0.233 277.117);
  --am-accent-strong-hover: oklch(0.52 0.233 277.117);
  --am-accent-glow: oklch(0.65 0.18 277);

  --am-text: oklch(0.15 0.015 260);
  --am-text-muted: oklch(0.43 0.02 260);
  --am-text-dim: oklch(0.55 0.02 260);
  --am-border: oklch(0.45 0.02 260 / 0.16);
  --am-border-hover: oklch(0.45 0.02 260 / 0.28);
  --am-success: oklch(0.55 0.18 145);
  --am-error: oklch(0.55 0.22 25);
}

html[data-theme="light"] .am-bg-glow {
  background:
    radial-gradient(circle at 20% 0%, oklch(0.7 0.1 260 / 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, oklch(0.85 0.08 260 / 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, oklch(0.7 0.1 260 / 0.14) 0%, transparent 40%);
}

html[data-theme="light"] .am-nav {
  background: oklch(0.98 0.005 260 / 0.7);
}

html[data-theme="light"] .am-hero-shot {
  box-shadow: 0 60px 120px oklch(0.45 0.18 277 / 0.15);
}

html[data-theme="light"] .am-btn-primary {
  box-shadow: 0 12px 40px oklch(0.45 0.18 277 / 0.2);
}

html[data-theme="light"] .am-btn-primary:hover {
  box-shadow: 0 16px 50px oklch(0.45 0.18 277 / 0.3);
}

html[data-theme="light"] ::selection {
  background: var(--am-accent-strong);
  color: var(--am-text);
}

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

@media (max-width: 900px) {
  .am-nav-links { display: none; }
  .am-problem-grid,
  .am-features-grid,
  .am-steps,
  .am-usecases {
    grid-template-columns: 1fr;
  }
  .am-download-section { padding: 48px 24px; }
  .am-newsletter { padding: 40px 24px; }
  .am-newsletter-form { flex-direction: column; }
  .am-hero h1 { font-size: 48px; }
}

@media (min-width: 901px) {
  .am-newsletter-form input {
    font-size: 15px;
  }
}
