/* ===== FAST READ — Design System ===== */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273548;
  --bg-input: #334155;
  --bg-surface: #1a2332;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: rgba(249, 115, 22, .15);
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-light: rgba(59, 130, 246, .15);
  --green: #22c55e;
  --green-light: rgba(34, 197, 94, .15);
  --red: #ef4444;
  --red-pivot: #ff3333;
  --border: #334155;
  --border-light: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .4);
  --transition: .2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --max-w: 1200px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent);
}

.text-blue {
  color: var(--blue);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.text-sm {
  font-size: .875rem;
}

.text-xs {
  font-size: .75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.font-light {
  font-weight: 300;
}

.mb-1 {
  margin-bottom: .25rem;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-3 {
  margin-bottom: .75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: .5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: .75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.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;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.w-full {
  width: 100%;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relative {
  position: relative;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 2px 12px rgba(249, 115, 22, .3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(249, 115, 22, .4);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, .3);
}

.btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, .4);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: .5rem .75rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  opacity: .9;
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-light);
}

.card-glow:hover {
  box-shadow: var(--shadow);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .5rem;
}

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .95rem;
  transition: border var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-logo i {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: .9rem;
  color: var(--text-secondary);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, .08) 0%, transparent 60%);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RSVP Pivot Word Layout (shared by demo + reader) ===== */
/* 
 * The pivot letter is ALWAYS at the exact center of the container.
 * Words slide left/right so the red letter never moves — the eye stays fixed.
 * Layout: [left part right-aligned] [PIVOT] [right part left-aligned]
 */
.rsvp-word-wrap {
  display: flex;
  align-items: center;
  position: relative;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.rsvp-word-left {
  flex: 1 1 0;
  text-align: right;
  overflow: hidden;
  min-width: 0;
}

.rsvp-word-pivot {
  color: var(--red-pivot);
  flex: 0 0 auto;
  text-align: center;
}

.rsvp-word-right {
  flex: 1 1 0;
  text-align: left;
  overflow: hidden;
  min-width: 0;
}

/* ===== RSVP Demo (landing page) ===== */
.rsvp-demo {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.rsvp-demo .rsvp-word-wrap {
  font-size: 3rem;
  height: 4.5rem;
}

/* ===== Features Grid ===== */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon.orange {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.feature-icon.green {
  background: var(--green-light);
  color: var(--green);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing-section {
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(249, 115, 22, .1);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem 2.5rem;
  transform: rotate(45deg);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
}

.pricing-price .currency {
  font-size: 1.25rem;
  vertical-align: top;
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: .5rem 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text-secondary);
}

.pricing-features li i {
  color: var(--green);
  flex-shrink: 0;
}

/* ===== Auth Page ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(249, 115, 22, .06) 0%, transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.auth-card h2 {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.auth-card .subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.auth-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: var(--red);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1rem;
}

.auth-success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  color: var(--green);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1rem;
}

.auth-toggle {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .9rem;
  color: var(--text-secondary);
}

.auth-toggle a {
  color: var(--accent);
  font-weight: 500;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* ===== Dashboard ===== */
.dashboard {
  padding: 5rem 0 3rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
}

.dashboard-header p {
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.orange {
  background: var(--accent-light);
  color: var(--accent);
}

.stat-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.stat-icon.green {
  background: var(--green-light);
  color: var(--green);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-card {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-card:hover {
  border-color: var(--accent);
}

.action-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

/* Library */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.book-card {
  padding: 1.25rem;
  cursor: pointer;
}

.book-card:hover {
  border-color: var(--blue);
}

.book-title {
  font-weight: 600;
  margin-bottom: .25rem;
}

.book-author {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: .75rem;
}

.book-progress-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: .5rem;
}

.book-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width .3s ease;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
}

.book-delete {
  color: var(--text-muted);
  padding: .25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.book-delete:hover {
  color: var(--red);
  background: rgba(239, 68, 68, .1);
}

/* ===== RSVP Reader ===== */
.reader-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.reader-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.reader-header h2 {
  font-size: 1rem;
  font-weight: 500;
  max-width: 40%;
}

.reader-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.reader-word-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  padding: 3rem 0;
}

.reader-word-container .rsvp-word-wrap {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.reader-idle-msg {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-align: center;
}

.reader-controls {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.reader-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reader-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
}

.reader-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  border-radius: var(--radius-full);
  transition: width .15s;
}

.reader-progress-text {
  font-size: .8rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}

.reader-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reader-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(249, 115, 22, .3);
}

.reader-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(249, 115, 22, .4);
}

.reader-play-btn i {
  width: 24px;
  height: 24px;
}

.reader-skip-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.reader-skip-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.reader-skip-btn i {
  width: 18px;
  height: 18px;
}

.reader-speed {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.reader-speed label {
  font-size: .8rem;
  color: var(--text-muted);
}

.reader-speed-value {
  font-weight: 700;
  font-size: .9rem;
  min-width: 50px;
}

.reader-speed input[type="range"] {
  width: 120px;
  accent-color: var(--accent);
}

.reader-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.reader-stats span strong {
  color: var(--text-secondary);
}

/* ===== Settings ===== */
.settings-page {
  padding: 5rem 0 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-weight: 500;
}

.settings-value {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .2s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ===== Paste Text Area ===== */
.paste-area {
  min-height: 200px;
  max-height: 400px;
  resize: vertical;
}

/* ===== Upload Zone ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-zone i {
  margin: 0 auto .75rem;
  color: var(--text-muted);
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: .9rem;
}

.upload-zone .formats {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toast {
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  min-width: 250px;
  animation: slideUp .3s ease;
  box-shadow: var(--shadow);
}

.toast.success {
  background: var(--green);
  color: #fff;
}

.toast.error {
  background: var(--red);
  color: #fff;
}

.toast.info {
  background: var(--blue);
  color: #fff;
}

@keyframes slideUp {
  from {
    transform: translateY(1rem);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn .4s ease;
}

.fade-in-up {
  animation: fadeInUp .5s ease;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  margin: 0 auto 1rem;
  opacity: .5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: .5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3rem;
  }

  .nav-links .btn {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .reader-word {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .reader-speed input[type="range"] {
    width: 80px;
  }

  .reader-stats {
    gap: 1rem;
  }

  .settings-page {
    padding: 5rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .reader-buttons {
    gap: .5rem;
  }
}