/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  /* Brand colors - Stripe-inspired palette */
  --color-primary:       #635BFF;
  --color-primary-dark:  #4F46E5;
  --color-primary-light: #EEF2FF;
  --color-bg:            #F6F9FC;
  --color-surface:       #FFFFFF;
  --color-border:        #E6EBF1;
  --color-text:          #0A2540;
  --color-text-muted:    #425466;
  --color-text-subtle:   #697386;
  --color-success:       #059669;
  --color-success-bg:    #F0FDF9;
  --color-success-border:#A7F3D0;
  --color-error:         #DF1B41;
  --color-error-bg:      #FFF0F3;
  --color-error-border:  #FEB2C0;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 28px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-focus: 0 0 0 3px rgba(99,91,255,0.22);

  /* Geometry */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Consolas', 'Menlo', monospace;

  /* Motion */
  --transition: 0.15s ease;
}

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

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

ul { padding-left: 1.25em; }
li { margin-bottom: 5px; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* Two-column layout: main content + sidebar */
.content-with-sidebar {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.main-content { flex: 1; min-width: 0; }

.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 104px; /* below taller header */
}

@media (max-width: 1024px) {
  .sidebar { display: none; }
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; }
.logo-icon { object-fit: contain; flex-shrink: 0; border-radius: 50%; }
.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03rem;
  line-height: 1;
  color: #1A1F36;
}
.logo-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-nav { gap: 18px; font-size: 0.875rem; }
  .site-nav a { font-size: 0.875rem; }
}
@media (max-width: 480px) {
  .site-nav .hide-mobile { display: none; }
}

/* =========================================
   HERO + GENERATOR (Above Fold)
   ========================================= */
.hero-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0 48px;
}

.hero-text {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* =========================================
   TOOL CARD
   ========================================= */
.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

/* - Version Tabs - */
.version-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 28px;
}

.version-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text-muted);
  font-family: var(--font);
  line-height: 1.3;
}
.version-tab:hover {
  color: var(--color-text);
}
.version-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-label {
  font-size: 0.9375rem;
  font-weight: 600;
}
.tab-desc {
  font-size: 0.6875rem;
  margin-top: 2px;
  opacity: 0.8;
}

/* - Format Controls - */
.format-controls {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.format-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.toggle-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

/* iOS-style toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-track { background: var(--color-primary); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-switch input:focus-visible + .toggle-track { box-shadow: var(--shadow-focus); }

/* - Generate Controls - */
.generate-controls {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.quantity-group { flex: 1; min-width: 200px; }

.quantity-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-input {
  width: 80px;
  padding: 9px 12px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.quick-counts { display: flex; gap: 4px; }

.quick-count {
  padding: 5px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.quick-count:hover,
.quick-count.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,91,255,0.38);
  text-decoration: none;
  color: white;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid transparent;
}
.btn-ghost:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }

.btn-generate {
  padding: 11px 26px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* - Output Area - */
.uuid-output {
  width: 100%;
  min-height: 120px;
  max-height: 320px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
  display: block;
}
.uuid-output:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.output-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.output-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* =========================================
   PAGE BODY
   ========================================= */
.page-body { padding: 48px 0 64px; }

.section { margin-bottom: 56px; }

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.section-lead {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.section > p {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  max-width: 680px;
}
.section > p:last-child { margin-bottom: 0; }

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.section-header-row h2 { margin-bottom: 0; }

/* =========================================
   AD ZONES
   ========================================= */
/* ── Ad zones hidden until AdSense is approved ──────────────────
   When approved:
   1. Replace each .ad-placeholder div with your AdSense <ins> tag
   2. Remove the display:none line below
   ────────────────────────────────────────────────────────────── */
.ad-zone { display: none; }

.ad-zone-leaderboard {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

/* Reserve space to prevent CLS */
.ad-placeholder {
  min-height: 90px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 728px;
  margin: 0 auto;
}

.ad-placeholder-sidebar {
  min-height: 250px;
  max-width: 300px;
}

.ad-zone-in-content .ad-placeholder {
  min-height: 250px;
  max-width: 336px;
}

@media (max-width: 640px) {
  .ad-zone-leaderboard .ad-placeholder { min-height: 50px; }
}

/* =========================================
   UUID VALIDATOR
   ========================================= */
.validator-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.validator-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 14px;
  min-height: 80px;
  display: block;
}
.validator-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.validator-result {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
}
.validator-result.valid {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
}
.validator-result.invalid {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.result-badge.valid { color: var(--color-success); }
.result-badge.invalid { color: var(--color-error); }

.result-detail {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 5px 16px;
  font-size: 0.875rem;
}
.result-label { color: var(--color-text-muted); font-weight: 500; }
.result-value { color: var(--color-text); }

/* =========================================
   UUID ANATOMY DISPLAY
   ========================================= */
.uuid-anatomy {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.anatomy-display {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  word-break: break-all;
  line-height: 2;
}
.anatomy-hyphen { color: var(--color-text-muted); }
.anatomy-part {
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
}
.p1 { color: #6D28D9; background: #F5F3FF; }
.p2 { color: #92400E; background: #FEF3C7; }
.p3 { color: #1E40AF; background: #DBEAFE; }
.p4 { color: #065F46; background: #D1FAE5; }
.p5 { color: #9B1C1C; background: #FEE2E2; }

.anatomy-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.anatomy-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.875rem;
}
.anatomy-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.anatomy-dot.p1 { background: #6D28D9; }
.anatomy-dot.p2 { background: #92400E; }
.anatomy-dot.p3 { background: #1E40AF; }
.anatomy-dot.p4 { background: #065F46; }
.anatomy-dot.p5 { background: #9B1C1C; }
.anatomy-item strong { display: block; color: var(--color-text); margin-bottom: 1px; }
.anatomy-note { color: var(--color-text-muted); }

/* =========================================
   VERSION COMPARISON CARDS
   ========================================= */
.version-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.version-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.version-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}

.version-card-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.version-card-header.v4 { background: #F5F3FF; }
.version-card-header.v1 { background: #FEF3C7; }
.version-card-header.v7 { background: var(--color-primary-light); }

.version-badge {
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.version-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-new {
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--color-primary);
  color: white;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.version-card > p        { padding: 14px 20px 0; font-size: 0.875rem; color: var(--color-text-muted); }
.version-card > ul       { padding: 8px 20px 8px 34px; font-size: 0.8125rem; color: var(--color-text-muted); }
.version-card > .version-use-when {
  padding: 4px 20px 18px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =========================================
   CODE SNIPPETS
   ========================================= */
.code-tabs {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.code-tab-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.code-tab-nav::-webkit-scrollbar { display: none; }

.code-tab-btn {
  padding: 11px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.code-tab-btn:hover { color: var(--color-text); background: rgba(0,0,0,0.02); }
.code-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-surface);
}

.code-panel { display: none; }
.code-panel.active { display: block; }

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #F8FAFC;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.btn-copy-code {
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-copy-code:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.code-panel pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  color: #1E293B;
  background: #F8FAFC;
  tab-size: 2;
}
.code-panel code { background: none; border: none; padding: 0; font-size: inherit; }

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--color-primary); }

.faq-question {
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}
.faq-answer p { margin: 0; line-height: 1.7; }

/* =========================================
   GENERATION HISTORY
   ========================================= */
.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-empty {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 40px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.history-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: box-shadow var(--transition);
}
.history-item:hover { box-shadow: var(--shadow-sm); }

.history-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.history-version {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
}
.history-count { font-size: 0.8125rem; color: var(--color-text-muted); }
.history-time {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin-left: auto;
}
.history-uuids { display: flex; flex-direction: column; gap: 3px; }
.history-uuid {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: block;
}
.history-more {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  padding: 2px 0;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-text);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-logo .logo-text { color: white; }
.footer-logo .logo-tagline { color: rgba(255,255,255,0.4); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

.footer-nav { display: flex; gap: 32px; align-items: center; }
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: white; text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-note { text-align: right; }

/* =========================================
   TOAST
   ========================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1A202C;
  color: white;
  padding: 11px 22px;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================
   INNER PAGES (About, Privacy, Contact)
   ========================================= */
.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 10px; }
.page-hero p { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 560px; }

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-content h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p, .page-content li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
.page-content ul { margin-bottom: 12px; }
.page-content a { color: var(--color-primary); }

/* Contact page */
.contact-email-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-primary-light);
  border: 1.5px solid rgba(99,91,255,0.18);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 24px 0 36px;
}
.contact-email-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-email-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 4px !important;
}
.contact-email-address {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none;
  word-break: break-all;
}
.contact-email-address:hover { text-decoration: underline; }

.contact-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.contact-reason-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.contact-reason-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.contact-reason-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0 !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 640px) {
  .hero-section { padding: 36px 0 32px; }
  .tool-card { padding: 20px 16px; border-radius: var(--radius-lg); }
  .format-row { gap: 16px; }
  .generate-controls { flex-direction: column; align-items: stretch; }
  .btn-generate { width: 100%; }
  .quantity-group { min-width: 0; }
  .version-comparison { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; }
  .footer-note { text-align: left; }
  .page-body { padding: 32px 0 48px; }
}
