/* variables.css
   Shared design tokens for the whole site — landing page and converter
   both pull from this single palette/type/spacing system so the two
   pages feel like one product, not two different builds. */

:root {
  /* ---- Color: warm off-white background, amber-to-violet duotone signature ----
     The amber/violet pairing is drawn directly from the product itself:
     amber is the color used for the "bold" half of a bionic word, violet
     for sustained focus/attention. Everything else stays quiet ink and
     glass so that pairing reads as intentional, not decorative. Light
     theme throughout — a PDF converter reads better on a light surface,
     since the actual PDF pages it previews are white. */
  --bg: #faf9f6;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f2efe9;
  --surface: rgba(22, 18, 28, 0.035);
  --surface-strong: rgba(22, 18, 28, 0.06);
  --surface-border: rgba(22, 18, 28, 0.09);
  --surface-border-strong: rgba(22, 18, 28, 0.16);

  --ink: #1a1620;
  --ink-soft: #5c5568;
  --ink-faint: #8b8494;

  --amber: #ff9151;
  --amber-soft: #c8621b;
  --violet: #8b7cf6;
  --violet-soft: #6a52e0;

  --gradient-signature: linear-gradient(120deg, #ff9151 0%, #d98bd0 45%, #8b7cf6 100%);
  --gradient-signature-soft: linear-gradient(120deg, rgba(255, 145, 81, 0.14), rgba(139, 124, 246, 0.14));

  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.1);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Source Serif 4', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* ---- Shape & motion ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 20px 50px -22px rgba(26, 22, 32, 0.22);
  --shadow-glow: 0 0 0 1px rgba(26, 22, 32, 0.04), 0 20px 50px -20px rgba(139, 124, 246, 0.28);

  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--violet);
  color: #fff;
}

a {
  color: inherit;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.gradient-text {
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  padding: 15px 28px;
  min-height: 48px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gradient-signature);
  color: #1a1620;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(26, 22, 32, 0.06), 0 24px 60px -18px rgba(139, 124, 246, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-strong);
  border-color: var(--surface-border-strong);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--ink-soft);
}

.glass-card {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
