﻿:root {
  --white: #FFFFFF;
  --black: #000000;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-muted: #F1F5F9;
  --fg: #0F172A;
  --fg-secondary: #475569;
  --fg-muted: #94A3B8;
  --primary: #E60023;
  --primary-dark: #C2001E;
  --primary-light: #FF4D6A;
  --primary-bg: rgba(230, 0, 35, 0.08);
  --secondary: #F1F5F9;
  --secondary-fg: #0F172A;
  --accent: #F1F5F9;
  --accent-fg: #0F172A;
  --muted: #F1F5F9;
  --muted-fg: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --card: #FFFFFF;
  --card-fg: #0F172A;
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  --shadow-xs: 0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 0 0 1px rgba(230, 0, 35, 0.12), 0 15px 40px rgba(15, 23, 42, 0.08);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Monaco, Consolas, monospace;
  --container: 1200px;
  --container-sm: 800px;
  --container-xs: 640px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

.dark {
  --bg: #0B0B0F;
  --bg-alt: #111118;
  --bg-muted: #1A1A24;
  --fg: #ECECEC;
  --fg-secondary: #A1A1AA;
  --fg-muted: #71717A;
  --primary: #E60023;
  --primary-dark: #FF1A3E;
  --primary-light: #FF4D6A;
  --primary-bg: rgba(230, 0, 35, 0.12);
  --secondary: #1A1A24;
  --secondary-fg: #ECECEC;
  --accent: #1E1E2A;
  --accent-fg: #ECECEC;
  --muted: #1A1A24;
  --muted-fg: #A1A1AA;
  --border: #27272A;
  --border-light: #1E1E2A;
  --card: #14141C;
  --card-fg: #ECECEC;
  --shadow-xs: 0 0 0 1px rgba(236, 236, 236, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 0 0 1px rgba(236, 236, 236, 0.05), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 0 0 1px rgba(230, 0, 35, 0.2), 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.navbar, .card, .step, .tool-card, .tool-interface, .result-card, .faq-item, .modal, .toast,
.footer, .section-alt, .section-muted, .cta-box, .screenshot-mock, .usage-counter,
.btn, .input, .badge, .theme-toggle, .hamburger span {
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

::selection { background: rgba(230, 0, 35, 0.15); color: var(--fg); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: var(--fg); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--fg-secondary); margin-bottom: 1rem; line-height: 1.73; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: var(--container-sm); }
.container-xs { max-width: var(--container-xs); }
section:has(.steps) .container-sm { max-width: var(--container); }

.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-muted { background: var(--bg-muted); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.grid-2 > *, .grid-3 > *, .grid-4 > * { animation: cardIn 0.5s var(--ease-out) both; }
.grid-2 > *:nth-child(1), .grid-3 > *:nth-child(1), .grid-4 > *:nth-child(1) { animation-delay: 0s; }
.grid-2 > *:nth-child(2), .grid-3 > *:nth-child(2), .grid-4 > *:nth-child(2) { animation-delay: 0.08s; }
.grid-2 > *:nth-child(3), .grid-3 > *:nth-child(3), .grid-4 > *:nth-child(3) { animation-delay: 0.16s; }
.grid-2 > *:nth-child(4), .grid-3 > *:nth-child(4), .grid-4 > *:nth-child(4) { animation-delay: 0.24s; }
.grid-3 > *:nth-child(5) { animation-delay: 0.32s; }
.grid-3 > *:nth-child(6) { animation-delay: 0.4s; }
.grid-4 > *:nth-child(5) { animation-delay: 0.32s; }
.grid-4 > *:nth-child(6) { animation-delay: 0.4s; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 24px; padding: 0 0.75rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); background: var(--primary-bg);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header { text-align: center; margin-bottom: 3rem; animation: cardIn 0.5s var(--ease-out); }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

.overline {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary); margin-bottom: 0.75rem;
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 40px; padding: 0 1.25rem;
  font-size: 0.875rem; font-weight: 600; line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; opacity: 1; }

.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-secondary:hover { background: var(--accent); color: var(--accent-fg); }

.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--fg-secondary); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-fg); }

.btn-google {
  background: #fff; color: #3C4043; border: 1px solid #DADCE0;
  border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(60,64,67,0.08);
  font-weight: 500;
}
.btn-google:hover {
  background: #F8F9FA; border-color: #C4C7CC; color: #3C4043;
  box-shadow: 0 1px 3px rgba(60,64,67,0.12); opacity: 1;
}
.btn-google:active {
  background: #F1F3F4; box-shadow: 0 1px 2px rgba(60,64,67,0.08);
}
.dark .btn-google {
  background: #1F1F1F; color: #E8EAED; border-color: #3C4043;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.dark .btn-google:hover {
  background: #282A2D; border-color: #5F6368; color: #E8EAED;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.dark .btn-google:active { background: #303134; }
.btn-google svg { flex-shrink: 0; }
.navbar-actions .btn-google.btn-sm {
  height: 30.4px; padding: 0 0.8313rem; font-size: 0.7719rem; gap: 0.475rem;
}
.navbar-actions .btn-google.btn-sm svg { width: 15px; height: 15px; }

.btn-link { background: transparent; color: var(--primary); padding: 0; height: auto; border: none; }
.btn-link:hover { text-decoration: underline; opacity: 0.85; }

.btn-sm { height: 32px; padding: 0 0.875rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-lg { height: 48px; padding: 0 1.75rem; font-size: 0.9375rem; border-radius: var(--radius-md); }
.btn-xl { height: 56px; padding: 0 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.btn-icon.btn-sm { width: 32px; height: 32px; }

.card {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.75rem; transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-card);
  animation: cardIn 0.5s var(--ease-out) both;
  border: 1px solid rgba(255,255,255,0.3);
}
.dark .card { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(230, 0, 35, 0.12);
}
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-text { font-size: 0.875rem; color: var(--fg-secondary); line-height: 1.65; }
.card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--primary-bg); color: var(--primary);
  margin-bottom: 1rem; font-size: 1.375rem; flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .card-icon { transform: scale(1.12) rotate(-3deg); background: var(--primary); color: #fff; }

.label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--fg-secondary); margin-bottom: 0.375rem; }

.input {
  display: block; width: 100%; height: 44px; padding: 0 1rem;
  font-size: 0.9375rem; color: var(--fg);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.input:hover { border-color: var(--fg-muted); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.input::placeholder { color: var(--fg-muted); }

textarea.input { height: auto; min-height: 120px; padding: 0.75rem 1rem; resize: vertical; }

.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 0.625rem;
  font-size: 0.6875rem; font-weight: 600; border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-free { background: var(--success-bg); color: var(--success); }

.spacer { height: 1rem; }
.spacer-sm { height: 0.5rem; }
.spacer-lg { height: 2rem; }
.spacer-xl { height: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-secondary { color: var(--fg-secondary); }
.text-primary { color: var(--primary); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

/* â”€â”€â”€ NAVBAR â”€â”€â”€ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s var(--ease);
}
.dark .navbar { background: rgba(11, 11, 15, 0.85); }

.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.navbar-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 700; color: var(--fg); text-decoration: none;
}
.navbar-logo:hover { color: var(--primary); opacity: 1; }
.navbar-logo svg { width: 24px; height: 24px; color: var(--primary); }

.navbar-links { display: none; align-items: center; gap: 0.125rem; list-style: none; }
.navbar-links a {
  padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500;
  color: var(--fg-secondary); border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease); text-decoration: none;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--fg); background: var(--accent); }

.navbar-actions { display: flex; align-items: center; gap: 0.375rem; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  color: var(--fg-muted); font-size: 1.125rem;
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--accent); color: var(--fg); }

.hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; gap: 5px; padding: 12px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: all 0.25s var(--ease); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .navbar-links { display: flex; } .hamburger { display: none; } }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  background: var(--bg);
  z-index: 999; padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  display: none; flex-direction: column; gap: 0.25rem;
  border-top: 1px solid var(--border);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.dark .mobile-menu { background: var(--bg); }
.mobile-menu.open { display: flex; animation: menuSlideIn 0.28s var(--ease); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  padding: 0.625rem 0.875rem; font-size: 0.9375rem; font-weight: 500;
  color: var(--fg); border-radius: var(--radius-sm); text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: all 0.2s var(--ease);
}
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn).active { color: var(--primary); background: var(--primary-bg); }
.mobile-menu a:not(.btn):active { transform: scale(0.98); }
@keyframes menuSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* tablet: keep desktop links from crowding */
@media (min-width: 900px) and (max-width: 1024px) {
  .navbar-links a { padding: 0.375rem 0.5rem; font-size: 0.7813rem; }
  .navbar-actions .btn { padding: 0 0.875rem; font-size: 0.8125rem; }
}

/* â”€â”€â”€ HERO â”€â”€â”€ */
.hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardIn 0.6s var(--ease-out);
}
.hero::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--primary-bg) 0%, transparent 70%);
  opacity: 0.5; pointer-events: none; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  z-index: 0;
}
.hero-xl { padding: calc(var(--nav-h) + 4rem) 0 4rem; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 0.875rem; position: relative; }
.hero p { font-size: 1.0625rem; max-width: 620px; margin: 0 auto 1.5rem; position: relative; color: var(--fg-secondary); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; position: relative; }

/* â”€â”€â”€ FLOATING PINS â”€â”€â”€ */
@keyframes pinFloat {
  0%, 100% { transform: translateY(0) rotate(var(--pr, -6deg)); }
  25% { transform: translateY(-12px) rotate(var(--pr25, 3deg)); }
  50% { transform: translateY(-20px) rotate(var(--pr50, 8deg)); }
  75% { transform: translateY(-8px) rotate(var(--pr75, -2deg)); }
}
.pin-float {
  position: absolute; pointer-events: none; z-index: 0;
  animation: pinFloat var(--pd, 6s) ease-in-out var(--pdel, 0s) infinite;
  line-height: 1; opacity: var(--po, 0.12);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  transition: opacity 0.4s, filter 0.4s;
  font-size: var(--ps, 1.4rem);
}
.cta-box { position: relative; overflow: hidden; }
.section-alt:has(.tool-interface) { position: relative; overflow: hidden; }
.hero:hover .pin-float, .cta-box:hover .pin-float, .section-alt:has(.tool-interface):hover .pin-float {
  opacity: 0.3 !important;
  animation-duration: 2.5s !important;
  filter: drop-shadow(0 3px 10px rgba(230,0,35,0.2));
}
.cta-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 26px; padding: 0 0.875rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary); background: var(--primary-bg);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  position: relative;
}

.status-banner {
  display: flex; align-items: center; gap: 0.75rem; text-align: left;
  max-width: 640px; margin: 1.5rem auto 0;
  background: var(--warning-bg); border: 1px solid var(--warning);
  border-radius: var(--radius); padding: 0.75rem 1rem;
}
.status-banner-icon { font-size: 1.125rem; line-height: 1; flex-shrink: 0; }
.status-banner strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--fg); }
.status-banner .status-banner-text { font-size: 0.75rem; line-height: 1.45; color: var(--fg-secondary); }

.hero-new {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  text-align: center;
}
.hero-new::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 600px at 50% -10%, rgba(230,0,35,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-new .hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.gradient-text {
  background: linear-gradient(135deg, #E60023, #FF4D6A);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem; margin-top: 2rem;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.hero-stat-label { font-size: 0.75rem; color: var(--fg-muted); font-weight: 500; }

/* â”€â”€â”€ TOOL INTERFACE â”€â”€â”€ */
.tool-interface {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 2rem; box-shadow: var(--shadow-card);
  max-width: 640px; margin: 0 auto;
  position: relative;
  animation: cardIn 0.5s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.3);
}
.dark .tool-interface { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.tool-interface::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.tool-interface label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--fg); margin-bottom: 0.375rem; }
.tool-interface .input-group { margin-bottom: 1rem; }
.tool-interface .input-group:last-of-type { margin-bottom: 0; }

/* â”€â”€â”€ RESULTS â”€â”€â”€ */
.results-section { margin-top: 1.5rem; animation: resultsIn 0.4s var(--ease-out); }
@keyframes resultsIn { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: translateY(0); } }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-header h3 { font-size: 0.9375rem; }

.results-list { display: flex; flex-direction: column; gap: 0.75rem; }

.results-section-block { margin-bottom: 1.75rem; }
.results-subheader { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.results-subheader h4 { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-secondary); }

.result-card {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius);
  padding: 1rem 1.125rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  box-shadow: var(--shadow-xs); transition: all 0.2s var(--ease);
  position: relative;
}
.dark .result-card { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.result-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  opacity: 0; transition: opacity 0.25s var(--ease);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 16px var(--shadow-card-hover, rgba(230,0,35,0.1));
  pointer-events: none;
}
.result-card:hover::after { opacity: 1; }
.result-card:hover { border-color: transparent; }

.result-card-content { flex: 1; font-size: 0.875rem; line-height: 1.75; word-break: break-word; color: var(--fg); white-space: pre-wrap; }
.result-card-content p { margin: 0; }
.result-card-content p + p { margin-top: 0.75rem; }

.result-card-copy {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--fg-muted); font-size: 0.8125rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.result-card-copy:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.result-card-copy.copied { border-color: var(--success); color: var(--success); background: var(--success-bg); }

.result-card-copy-all {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 30px; padding: 0 0.75rem;
  font-size: 0.75rem; font-weight: 600; color: var(--primary);
  background: var(--primary-bg); border: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: all 0.2s var(--ease);
}
.result-card-copy-all:hover { background: var(--primary); color: #fff; }

/* Paired (title + description) results */
.results-pairs { display: flex; flex-direction: column; gap: 1rem; }
.results-pair { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) {
  .results-pair { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.result-card--pair { flex-direction: column; align-items: stretch; gap: 0.625rem; }
.result-card--pair .result-card-copy { align-self: flex-end; }
.result-card-head { display: flex; align-items: center; justify-content: space-between; }
.result-card-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-bg);
  padding: 0.2rem 0.5rem; border-radius: var(--radius-sm);
}

.results-loading { text-align: center; padding: 3.5rem 1rem; }
.results-loading p { margin-top: 1rem; color: var(--fg-secondary); font-size: 0.9375rem; }

.results-error { text-align: center; padding: 2.5rem 1rem; }
.results-error-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.5; }
.results-error p { color: var(--error); font-size: 0.9375rem; }

.results-empty { text-align: center; padding: 3rem 1rem; color: var(--fg-muted); }
.results-empty p { font-size: 0.9375rem; }

/* SEO score result */
.seo-score { animation: resultsIn 0.4s var(--ease-out); }
.seo-score-gauge { display: flex; justify-content: center; padding: 1.25rem 0 0.5rem; }
.seo-score-ring {
  --score: 0; --ring-color: var(--primary);
  position: relative; width: 148px; height: 148px; border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), rgba(230,0,35,0.12) 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.8s var(--ease-out);
}
.seo-score-ring-inner {
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), var(--shadow-md);
}
.dark .seo-score-ring-inner { background: #1a1a22; }
.seo-score-value { font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.seo-score-max { font-size: 0.75rem; color: var(--fg-muted); margin-top: 0.25rem; }
.seo-score-level { text-align: center; font-weight: 600; color: var(--fg-secondary); margin-bottom: 1.5rem; }
.seo-score-ring[data-level="good"] { --ring-color: var(--success); }
.seo-score-ring[data-level="fair"] { --ring-color: var(--warning); }
.seo-score-ring[data-level="poor"] { --ring-color: var(--error); }
.seo-score-section { margin-bottom: 1.5rem; }
.seo-score-section h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 0.625rem;
}
.seo-score-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.seo-score-section li {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--fg);
  display: flex; gap: 0.625rem; align-items: flex-start;
}
.dark .seo-score-section li { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.seo-score-section li::before { font-weight: 700; flex-shrink: 0; }
.seo-score--strengths li::before { content: '\2713'; color: var(--success); }
.seo-score--weaknesses li::before { content: '\2715'; color: var(--error); }
.seo-score--suggestions li::before { content: '\2726'; color: var(--primary); }
.seo-score-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seo-score-chip {
  font-size: 0.8125rem; font-weight: 600; color: var(--primary);
  background: var(--primary-bg); border: 1px solid rgba(230,0,35,0.15);
  border-radius: 999px; padding: 0.4rem 0.875rem;
}
.seo-score-density { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--fg-secondary); }

/* Signup / limit card */
.signup-card {
  background: linear-gradient(160deg, var(--primary-bg), rgba(255,255,255,0.6));
  border: 1px solid rgba(230,0,35,0.18);
  border-radius: var(--radius-lg, 1rem);
  padding: 2rem 1.5rem;
  text-align: center;
  animation: resultsIn 0.4s var(--ease-out);
}
.dark .signup-card { background: linear-gradient(160deg, rgba(230,0,35,0.12), rgba(20,20,28,0.7)); }
.signup-card-badge {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--primary); border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1rem;
}
.signup-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--fg); }
.signup-card-msg { font-size: 0.9375rem; color: var(--fg-secondary); margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.signup-features { display: grid; grid-template-columns: 1fr; gap: 0.75rem; text-align: left; max-width: 520px; margin: 0 auto 1.5rem; }
@media (min-width: 640px) { .signup-features { grid-template-columns: repeat(3, 1fr); } }
.signup-feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; display: flex; gap: 0.75rem; align-items: flex-start;
}
.signup-feature-icon { font-size: 1.4rem; line-height: 1; }
.signup-feature strong { display: block; font-size: 0.8125rem; margin-bottom: 0.25rem; color: var(--fg); }
.signup-feature p { font-size: 0.75rem; line-height: 1.5; color: var(--fg-secondary); margin: 0; }
.signup-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 0.75rem; }
.signup-card-note { font-size: 0.75rem; color: var(--fg-muted); margin: 0; }

/* â”€â”€â”€ TOOL GRID â”€â”€â”€ */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1.125rem; }
@media (min-width: 480px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }

.tool-card {
  display: flex; flex-direction: column;
  padding: 1.25rem; background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
  position: relative;
  animation: cardIn 0.5s var(--ease-out) both;
  border: 1px solid rgba(255,255,255,0.3);
}
.dark .tool-card { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.tool-card:nth-child(1) { animation-delay: 0s; }
.tool-card:nth-child(2) { animation-delay: 0.08s; }
.tool-card:nth-child(3) { animation-delay: 0.16s; }
.tool-card:nth-child(4) { animation-delay: 0.24s; }
.tool-card:nth-child(5) { animation-delay: 0.32s; }
.tool-card:nth-child(6) { animation-delay: 0.4s; }
.tool-card:nth-child(7) { animation-delay: 0.48s; }
.tool-card:nth-child(8) { animation-delay: 0.56s; }
.tool-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(230, 0, 35, 0.15);
}
.tool-card:active { transform: translateY(-1px); }

.tool-card-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg); border-radius: var(--radius);
  margin-bottom: 0.875rem; font-size: 1.375rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.tool-card:hover .tool-card-icon { transform: scale(1.15) rotate(-5deg); background: var(--primary); color: #fff; }

.tool-card h3 {
  font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.375rem;
  color: var(--fg); transition: color 0.2s var(--ease);
}
.tool-card:hover h3 { color: var(--primary); }

.tool-card p {
  font-size: 0.8125rem; color: var(--fg-secondary); line-height: 1.5; flex: 1;
}

.tool-card .badge {
  align-self: flex-start; margin-top: 0.75rem;
}

.category-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-muted); margin-bottom: 0.75rem;
}
.category-section { margin-bottom: 2.5rem; }

/* â”€â”€â”€ USAGE REMAINING BADGE â”€â”€â”€ */
.usage-remaining {
  display: none; align-items: center; gap: 0.375rem;
  height: 26px; padding: 0 0.75rem;
  font-size: 0.75rem; font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-bg); color: var(--primary);
  white-space: nowrap;
}
.usage-remaining--low { background: var(--warning-bg); color: var(--warning); }
.usage-remaining--empty { background: var(--error-bg); color: var(--error); }

/* â”€â”€â”€ SPINNER â”€â”€â”€ */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
.spinner-lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€â”€ TOAST â”€â”€â”€ */
.toast-container {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 10000;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: 340px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--fg); color: var(--bg);
  border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease-out);
  pointer-events: auto;
}
.dark .toast { background: var(--card); color: var(--card-fg); }
.toast-success { background: var(--success); color: #fff; }
.dark .toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--error); color: #fff; }
.dark .toast-error { background: var(--error); color: #fff; }

@keyframes toastIn { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: translateY(0); } }
.toast-out { animation: toastOut 0.3s var(--ease-in) forwards; }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(0.75rem); } }

/* â”€â”€â”€ MODAL â”€â”€â”€ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
  animation: fadeIn 0.2s var(--ease);
}
.modal-overlay.open { display: flex; }

.modal {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.3);
}
.dark .modal { background: rgba(20,20,28,0.85); border-color: rgba(255,255,255,0.06); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; }
.modal-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--fg-muted); font-size: 1.125rem; transition: all 0.2s var(--ease); }
.modal-close:hover { background: var(--accent); color: var(--fg); }
.modal-body { padding: 1.5rem; }
.modal-footer { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* â”€â”€â”€ PREMIUM UPGRADE MODAL â”€â”€â”€ */
.upgrade-modal {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg);
}
.dark .upgrade-modal { border-color: rgba(255,255,255,0.08); }
.upgrade-modal-close {
  position: absolute; top: 0.625rem; right: 0.625rem; z-index: 5;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; line-height: 1; color: var(--fg-muted);
  background: var(--accent); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.upgrade-modal-close:hover { color: var(--fg); transform: rotate(90deg) scale(1.05); background: var(--primary-bg); }

.upgrade-modal-body {
  padding: 2.25rem 2rem 1.75rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.upgrade-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; margin-bottom: 1rem;
  background: var(--primary-bg); color: var(--primary);
}
.dark .upgrade-icon { background: rgba(230,0,35,0.16); color: var(--primary-light); }
.upgrade-badge {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-bg);
  border-radius: 999px; padding: 0.3125rem 0.75rem; margin-bottom: 0.875rem;
}
.dark .upgrade-badge { color: var(--primary-light); background: rgba(230,0,35,0.16); }
.upgrade-modal-body h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.5rem; color: var(--fg); }
.upgrade-desc { font-size: 0.8125rem; line-height: 1.55; color: var(--fg-secondary); margin-bottom: 1.375rem; max-width: 34ch; }

.upgrade-benefits {
  list-style: none; display: flex; flex-direction: column; gap: 0.875rem;
  width: 100%; text-align: left; margin-bottom: 1.5rem;
}
.upgrade-benefits li { display: flex; gap: 0.6875rem; align-items: flex-start; }
.upgrade-check {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.0625rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 800; color: var(--success);
  background: var(--success-bg); border-radius: 50%;
}
.dark .upgrade-check { background: rgba(16,185,129,0.18); }
.upgrade-benefits li strong { display: block; font-size: 0.75rem; font-weight: 600; color: var(--fg); }
.upgrade-benefits li div > span { font-size: 0.6875rem; line-height: 1.45; color: var(--fg-secondary); }

.upgrade-actions { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.upgrade-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  height: 44px; padding: 0 1.25rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
  transition: all 0.25s var(--ease); cursor: pointer; width: 100%;
}
.upgrade-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; box-shadow: 0 5px 14px rgba(230,0,35,0.28);
}
.upgrade-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,0,35,0.4), 0 0 0 1px rgba(230,0,35,0.3);
}
.upgrade-btn-primary .upgrade-arrow { transition: transform 0.25s var(--ease); }
.upgrade-btn-primary:hover .upgrade-arrow { transform: translateX(4px); }
.upgrade-btn-ghost {
  background: transparent; color: var(--fg-secondary);
  border: 1px solid var(--border);
}
.dark .upgrade-btn-ghost { border-color: rgba(255,255,255,0.12); }
.upgrade-btn-ghost:hover { border-color: var(--fg-muted); color: var(--fg); background: var(--accent); }
.upgrade-note { font-size: 0.625rem; color: var(--fg-muted); margin: 0.875rem 0 0; text-align: center; }

/* â”€â”€â”€ CHANGELOG â”€â”€â”€ */
.changelog-hero {
  text-align: center; padding: 4rem 0 2rem; position: relative; overflow: hidden;
}
.changelog-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 30% 20%, rgba(230,0,35,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 70% 80%, rgba(99,102,241,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.changelog-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800;
  background: linear-gradient(135deg, var(--fg) 40%, var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.75rem;
}
.changelog-hero p { color: var(--fg-secondary); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.changelog-list { list-style: none; padding: 0; margin: 0; position: relative; }
.changelog-list::before { content: ""; position: absolute; left: 0.875rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.changelog-item { position: relative; padding-left: 3rem; margin-bottom: 2.5rem; animation: cardIn 0.5s var(--ease-out); }
.changelog-item:last-child { margin-bottom: 0; }
.changelog-dot { position: absolute; left: 0.125rem; top: 0.375rem; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--primary-bg); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.changelog-item h2 { font-size: 1.375rem; margin-bottom: 0.25rem; color: var(--fg); display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem; }
.changelog-version { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.1875rem 0.5rem; border-radius: var(--radius-sm); background: var(--primary-bg); color: var(--primary); white-space: nowrap; }
.dark .changelog-version { color: var(--primary-light); }
.changelog-date { font-size: 0.8125rem; color: var(--fg-secondary); margin-bottom: 0.75rem; }
.changelog-item p { color: var(--fg-secondary); line-height: 1.7; margin: 0 0 0.5rem; }
.changelog-item p:last-child { margin-bottom: 0; }

/* â”€â”€â”€ FAQ â”€â”€â”€ */
.faq-item {
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-lg);
  margin-bottom: 0.75rem; overflow: hidden;
  transition: all 0.3s var(--ease);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dark .faq-item { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.faq-item:hover {
  border-color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(230, 0, 35, 0.12), var(--shadow-md);
}

.faq-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.125rem 1.25rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--fg);
  text-align: left; transition: background 0.2s var(--ease);
  border-radius: var(--radius-lg);
}
.faq-trigger:hover { background: var(--accent); }
.faq-trigger svg {
  flex-shrink: 0; width: 20px; height: 20px; color: var(--fg-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item.open .faq-trigger svg { transform: rotate(180deg); color: var(--primary); }

.faq-content {
  display: none; padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem; color: var(--fg-secondary); line-height: 1.73;
}
.faq-item.open .faq-content { display: block; animation: faqOpen 0.3s var(--ease-out); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€ FONT GENERATOR â”€â”€â”€ */
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.875rem; margin-top: 1.25rem; }
.font-card {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  transition: all 0.25s var(--ease); position: relative;
}
.font-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  opacity: 0; transition: opacity 0.25s var(--ease);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 20px var(--shadow-card-hover, rgba(230,0,35,0.12));
  pointer-events: none;
}
.font-card:hover::after { opacity: 1; }
.font-card:hover { border-color: transparent; }
.font-preview {
  padding: 1.25rem 1rem 0.625rem; min-height: 3.25rem; word-break: break-all;
  font-size: 1.25rem; line-height: 1.55; color: var(--fg);
  display: flex; align-items: center;
}
.font-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.375rem 1rem 0.75rem;
}
.font-name { font-size: 0.6875rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.font-card .font-copy {
  font-size: 0.75rem; padding: 0.375rem 0.875rem; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--primary); border: 1px solid transparent;
  cursor: pointer; font-weight: 600; transition: all 0.2s var(--ease); line-height: 1;
}
.font-card .font-copy:hover { background: var(--primary); color: #fff; }
.font-card .font-copy.copied { background: var(--success); color: #fff; }

.font-divider { grid-column: 1 / -1; text-align: center; padding: 1.5rem 0 0.5rem; position: relative; }
.font-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-light); }
.font-divider span { position: relative; background: var(--section-bg, var(--bg)); padding: 0 1rem; font-size: 0.8125rem; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.font-category { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; padding: 1rem 0 0.25rem; }
.font-card-web .font-preview { font-size: 1.375rem; }

.font-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }

/* â”€â”€â”€ STEPS â”€â”€â”€ */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  text-align: center; padding: 2rem 1.5rem;
  animation: cardIn 0.5s var(--ease-out) both;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
  position: relative;
}
.dark .step { background: rgba(20,20,28,0.7); border-color: rgba(255,255,255,0.06); }
.step::after {
  content: ''; position: absolute; top: 50%; right: -0.75rem;
  width: 1.5rem; height: 1.5rem;
  background: var(--primary-bg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
  opacity: 0.6;
}
.step:last-child::after { display: none; }
@media (max-width: 639px) { .step::after { display: none; } }
.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(4) { animation-delay: 0.3s; }
.step:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(230, 0, 35, 0.12);
}
.step-number {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 1rem;
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  background: var(--primary-bg); border-radius: 50%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.step-number::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-bg);
  transition: border-color 0.3s var(--ease);
}
.step:hover .step-number {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px var(--primary-bg);
}
.step:hover .step-number::after { border-color: var(--primary); }
.step h4 { margin-bottom: 0.5rem; font-size: 1rem; color: var(--fg); }
.step p { font-size: 0.8125rem; line-height: 1.6; color: var(--fg-secondary); }

/* â”€â”€â”€ USAGE COUNTER â”€â”€â”€ */
.usage-counter {
  font-size: 0.75rem; color: var(--fg-muted); text-align: center;
  padding: 0.625rem; background: var(--bg-muted); border-radius: var(--radius-sm);
  margin-top: 0.875rem;
}
.usage-counter strong { color: var(--fg); }

/* â”€â”€â”€ CTA SECTION â”€â”€â”€ */
.cta-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-2xl); padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
  isolation: isolate;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 450px at 20% 30%, rgba(230,0,35,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 600px 350px at 80% 70%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 30%, rgba(230,0,35,0.03) 50%, transparent 70%);
  animation: ctaGlow 12s linear infinite;
  pointer-events: none;
}
@keyframes ctaGlow {
  to { transform: rotate(360deg); }
}
.cta-box h2 {
  color: #fff; position: relative; margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(135deg, #fff 60%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-box p { color: rgba(255,255,255,0.75); position: relative; max-width: 560px; margin: 0 auto 1.5rem; font-size: 1rem; line-height: 1.6; }

.cta-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-bottom: 1.75rem; position: relative;
}
.cta-features span {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 0.8125rem; color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

.cta-box .btn-primary {
  background: #fff; color: #0F172A; border-color: #fff;
  position: relative;
  box-shadow: 0 4px 20px rgba(230,0,35,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-box .btn-primary:hover {
  background: #fff; color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230,0,35,0.35);
}

.screenshot-mock {
  background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted); font-size: 0.8125rem;
}

/* â”€â”€â”€ BREADCRUMBS â”€â”€â”€ */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; padding: 0.875rem 0; font-size: 0.75rem; color: var(--fg-muted); flex-wrap: wrap; list-style: none; }
.breadcrumbs a { color: var(--fg-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.375rem; color: var(--fg-muted); }

/* â”€â”€â”€ TWO COLUMN â”€â”€â”€ */
.two-col-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .two-col-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

/* â”€â”€â”€ WYSIWYG â”€â”€â”€ */
.wysiwyg h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.wysiwyg h3 { margin-top: 1.25rem; margin-bottom: 0.375rem; }
.wysiwyg p { margin-bottom: 0.875rem; }
.wysiwyg ul, .wysiwyg ol { padding-left: 1.25rem; margin-bottom: 0.875rem; }
.wysiwyg li { margin-bottom: 0.25rem; color: var(--fg-secondary); }
.wysiwyg strong { color: var(--fg); }

/* â”€â”€â”€ GLASS â”€â”€â”€ */
.glass-card { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* â”€â”€â”€ FOOTER â”€â”€â”€ */
.dark .footer { --footer-bg: #06060A; --footer-heading: #ECECEC; --footer-link: #A1A1AA; --footer-link-hover: #fff; --footer-muted: #71717A; background: #06060A; }
:root { --footer-bg: #0F172A; --footer-heading: #fff; --footer-link: #94A3B8; --footer-link-hover: #fff; --footer-muted: #475569; }

.footer { background: var(--footer-bg); padding: 3rem 0 1.5rem; }

.footer h4 { color: var(--footer-heading); font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.875rem; letter-spacing: 0.02em; }
.footer a { color: var(--footer-link); font-size: 0.8125rem; display: block; padding: 0.18rem 0; transition: color 0.2s var(--ease); line-height: 1.44; }
.footer a:hover { color: var(--footer-link-hover); opacity: 1; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.5fr 1fr; } }

.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--footer-link); font-size: 0.8125rem; margin-top: 0.5rem; line-height: 1.4; }
.footer h4 { font-size: 0.75rem; font-weight: 700; color: var(--footer-heading); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { font-size: 0.8125rem; color: var(--footer-link); transition: color 0.2s; line-height: 1.44; }
.footer-links a:hover { color: var(--primary); }
.footer-tools { display: flex; flex-direction: column; }
.footer-tools a { font-size: 0.8125rem; color: var(--footer-link); padding: 0.18rem 0; transition: color 0.2s; line-height: 1.44; }
.footer-tools a:hover { color: var(--primary); }
.footer-legal { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-legal a { font-size: 0.8125rem; color: var(--footer-link); transition: color 0.2s; line-height: 1.44; }
.footer-legal a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.25rem; display: flex; justify-content: center; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--primary); margin: 0; animation: footerShine 3s ease-in-out infinite; }
@keyframes footerShine {
  0%, 100% { opacity: 0.85; text-shadow: 0 0 8px rgba(230, 0, 35, 0.2); }
  50% { opacity: 1; text-shadow: 0 0 16px rgba(230, 0, 35, 0.5); }
}

/* â”€â”€â”€ HIDE UTILITIES â”€â”€â”€ */
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }

/* â”€â”€â”€ STICKY â”€â”€â”€ */
@media (min-width: 768px) { .sticky-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); } }

.growth-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  padding: 0 1rem 1rem;
  pointer-events: none;
}
.growth-popup.show {
  transform: translateY(0);
  pointer-events: auto;
}
.growth-popup-content {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}
.dark .growth-popup-content { background: rgba(20,20,28,0.95); }
.growth-popup-text {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--fg-secondary);
  line-height: 1.5;
}
.growth-popup-text strong {
  color: var(--fg);
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.875rem;
}
.growth-popup-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--fg-muted); font-size: 0.75rem;
  flex-shrink: 0; transition: all 0.2s;
}
.growth-popup-close:hover { background: var(--accent); color: var(--fg); }

/* ─── PURCHASE POPUP ─── */
.purchase-popup {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 10001;
  width: 300px;
  max-width: calc(100vw - 2.5rem);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.purchase-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.purchase-popup.hide {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}
.purchase-popup-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.875rem;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .purchase-popup-content { background: rgba(20,20,28,0.97); }
.purchase-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}
.purchase-avatar svg { display: block; width: 100%; height: 100%; }
.purchase-text {
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fg-secondary);
}
.purchase-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.0625rem;
}
.purchase-text b { font-weight: 700; }
.pp-scale-pro { color: var(--primary); }
.pp-scale-max { color: var(--success); }
.pp-starter { color: var(--warning); }
.purchase-popup-close {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--fg-muted);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.purchase-popup-close:hover { background: var(--accent); color: var(--fg); }

@media (max-width: 480px) {
  .purchase-popup { bottom: 1rem; left: 1rem; }
}

/* ─── PROGRESS BAR ─── */
.progress-bar {
  position: fixed; top: var(--nav-h, 56px); left: 0; right: 0; height: 3px;
  z-index: 99999; pointer-events: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ─── SCROLL TO TOP ─── */
.scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 12px rgba(230,0,35,0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,0,35,0.4); }
.dark .scroll-top { box-shadow: 0 4px 12px rgba(255,77,106,0.25); }
.dark .scroll-top:hover { box-shadow: 0 6px 20px rgba(255,77,106,0.35); }