/* ───────────────────────────────────────────────
   ALRA Design System
   Clean White Modern — Pastel Signature
   Fonts: Space Grotesk, Inter, IBM Plex Mono
   ─────────────────────────────────────────────── */

/* ── CSS Variables ────────────────────────────── */
:root {
  --blossom: #FF84BA;
  --sunshine: #FFDF82;
  --sky: #99C2FF;
  --cream: #FFEFE3;
  --charcoal: #2D2D2D;
  --muted: #8A8A8A;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --border: #F0E6DE;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(45,45,45,0.04);
  --shadow-md: 0 8px 30px rgba(45,45,45,0.06);
  --shadow-lg: 0 20px 60px rgba(45,45,45,0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-section {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.text-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}
.text-body { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.text-caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.text-data {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Layout ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blossom);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,132,186,0.3);
}
.btn-primary:hover {
  background: #FF6CAD;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,132,186,0.4);
}
.btn-secondary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-secondary:hover { background: #1a1a1a; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blossom); color: var(--blossom); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-cream { background: var(--cream); border-color: transparent; }

/* ── Navigation ───────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--blossom); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--charcoal); }
.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

.nav-mobile-btn { display: none; }
@media (max-width: 767px) {
  .nav-mobile-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: blobFloat 25s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--blossom);
  top: -120px; right: -80px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: var(--sky);
  bottom: -80px; left: -60px;
  animation-delay: -8s;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: var(--sunshine);
  top: 40%; left: 30%;
  animation-delay: -16s;
  opacity: 0.12;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--cream);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--blossom);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-inner {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── Tool Cards ───────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.tool-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.tool-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.tool-icon-pink { background: rgba(255,132,186,0.12); }
.tool-icon-yellow { background: rgba(255,223,130,0.2); }
.tool-icon-blue { background: rgba(153,194,255,0.2); }
.tool-icon-cream { background: var(--cream); }

/* ── How It Works ─────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ── Pricing ──────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.popular {
  border-color: var(--blossom);
  box-shadow: 0 8px 30px rgba(255,132,186,0.12);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blossom);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
}

/* ── Dropzone ─────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  background: var(--off-white);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--blossom);
  background: rgba(255,132,186,0.03);
}
.dropzone-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ── Upload Preview ───────────────────────────── */
.preview-area {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border);
}
.preview-img {
  max-height: 320px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* ── Comparison ───────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .comparison { grid-template-columns: 1fr 1fr; }
}
.comparison-box {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}
.comparison-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ── Metadata Table ───────────────────────────── */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.meta-table th,
.meta-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.meta-table th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--off-white);
}
.meta-table td { color: var(--charcoal); }
.meta-table tr:last-child td { border-bottom: none; }

/* ── AI Detection Badge ───────────────────────── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
}
.ai-badge-safe { background: rgba(132,204,132,0.15); color: #2E7D32; }
.ai-badge-warn { background: rgba(255,223,130,0.3); color: #8D6E00; }
.ai-badge-danger { background: rgba(255,132,186,0.15); color: #C2185B; }

/* ── Forms ────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--blossom);
  box-shadow: 0 0 0 3px rgba(255,132,186,0.1);
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-group { margin-bottom: 20px; }

/* ── Range Slider ─────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blossom);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,132,186,0.3);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }

/* ── Tabs ─────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: transparent;
  transition: all 0.2s;
}
.tab:hover { color: var(--charcoal); background: var(--cream); }
.tab.active { color: var(--charcoal); background: var(--charcoal); color: var(--white); }

/* ── Accordion ────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
}
.accordion-header:hover { color: var(--blossom); }
.accordion-icon { transition: transform 0.25s ease; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-body {
  max-height: 500px;
}
.accordion-content {
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Toast ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #4CAF50; }
.toast-error { background: #E53935; }
.toast-info { background: var(--sky); }

/* ── Modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,45,45,0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}
.modal-body { padding: 20px 28px 28px; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--cream); color: var(--charcoal); }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--blossom); }
.footer-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

/* ── Preset Grid ──────────────────────────────── */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
}
.preset-btn {
  padding: 12px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}
.preset-btn:hover { border-color: var(--blossom); color: var(--blossom); }
.preset-btn.active { background: var(--blossom); border-color: var(--blossom); color: var(--white); }

/* ── Section Spacing ──────────────────────────── */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 100px 0; } }
.section-cream { background: var(--cream); }

/* ── Scroll Reveal ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Trust Bar ────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

/* ── Loading Spinner ──────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--blossom);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Privacy Risk ─────────────────────────────── */
.risk-high { color: #E53935; }
.risk-medium { color: #F9A825; }
.risk-low { color: #43A047; }

/* ── Keyboard Focus ───────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blossom);
  outline-offset: 2px;
}

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
