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

:root {
  --indigo: #5B4FD9;
  --indigo-light: #A89FF5;
  --indigo-dark: #3D33B0;
  --indigo-pale: #EEEDFE;
  --ink: #0D0C1D;
  --ink-mid: #2D2B4E;
  --ink-soft: #6B6894;
  --parchment: #F7F6F2;
  --parchment-dark: #EDEAE0;
  --white: #FFFFFF;
  --mono: 'DM Mono', monospace;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Instrument Sans', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13,12,29,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--serif); background: var(--parchment); color: var(--ink); overflow-x: hidden; line-height: 1.6; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(247,246,242,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,79,217,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; background: var(--indigo); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 20px; height: 20px; }
.logo-wordmark { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.logo-wordmark span { color: var(--indigo); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--white) !important; background: var(--indigo); padding: 8px 18px; border-radius: 8px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--indigo-dark) !important; }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 48px 60px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 700px 500px at 60% 40%, rgba(91,79,217,0.07) 0%, transparent 70%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(91,79,217,0.12) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 800px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--indigo); background: var(--indigo-pale); border: 1px solid rgba(91,79,217,0.2); padding: 5px 14px 5px 10px; border-radius: 99px; margin-bottom: 32px; animation: fadeUp 0.6s ease both; }
.badge-dot { width: 6px; height: 6px; background: var(--indigo); border-radius: 50%; animation: pulse 2s ease infinite; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 76px); font-weight: 700; line-height: 1.05; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 20px; animation: fadeUp 0.6s 0.1s ease both; }
.hero h1 em { font-style: italic; color: var(--indigo); }
.hero-sub { font-family: var(--sans); font-size: 17px; color: var(--ink-soft); max-width: 540px; margin: 0 auto 40px; line-height: 1.65; animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; }

/* ── BUTTONS ── */
.btn-primary { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--white); background: var(--indigo); padding: 13px 28px; border-radius: 10px; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(91,79,217,0.25); display: inline-block; }
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91,79,217,0.35); }
.btn-secondary { font-family: var(--sans); font-size: 15px; color: var(--ink-mid); background: transparent; padding: 13px 22px; border-radius: 10px; text-decoration: none; border: 1px solid rgba(45,43,78,0.2); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--indigo); color: var(--indigo); }

/* ── DEMO ── */
.demo-section { padding: 0 48px 80px; display: flex; justify-content: center; }
.demo-window { width: 100%; max-width: 820px; background: var(--white); border-radius: 14px; border: 1px solid rgba(91,79,217,0.1); overflow: hidden; box-shadow: 0 20px 60px rgba(13,12,29,0.08); }
.demo-bar { background: #F0EFF9; padding: 11px 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(91,79,217,0.08); }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.demo-input { padding: 24px; border-right: 1px solid rgba(91,79,217,0.08); }
.demo-output { padding: 24px; }
.demo-panel-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--indigo-light); margin-bottom: 14px; text-transform: uppercase; }
.demo-upload-area { border: 1.5px dashed rgba(91,79,217,0.25); border-radius: 10px; padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.demo-upload-area:hover { border-color: var(--indigo); background: var(--indigo-pale); }
.upload-icon { width: 40px; height: 40px; background: var(--indigo-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.upload-icon svg { width: 20px; height: 20px; }
.demo-upload-text { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.demo-upload-text strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.demo-formats { display: flex; gap: 5px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.format-pill { font-family: var(--mono); font-size: 10px; color: var(--indigo); background: var(--indigo-pale); padding: 3px 8px; border-radius: 99px; }
.demo-code { font-family: var(--mono); font-size: 12px; line-height: 1.85; color: var(--ink-mid); background: #F7F6FF; border-radius: 8px; padding: 14px; }
.code-line { display: block; }
.code-cmd { color: var(--indigo); }
.code-arg { color: #0f766e; }
.code-comment { color: #94a3b8; font-style: italic; }
.code-cursor { display: inline-block; width: 2px; height: 13px; background: var(--indigo); vertical-align: middle; margin-left: 2px; animation: blink 1s step-end infinite; }

/* ── STATS ── */
.stats-section { background: var(--ink); padding: 56px 48px; }
.stats-inner { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: 32px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,0.06); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -2px; margin-bottom: 6px; }
.stat-num span { color: var(--indigo-light); }
.stat-label { font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,0.4); }

/* ── FEATURES ── */
.features-section { padding: 90px 48px; max-width: 1060px; margin: 0 auto; }
.section-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--indigo); text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; color: var(--ink); margin-bottom: 56px; max-width: 500px; }
.section-title em { font-style: italic; color: var(--indigo); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.feature-card { background: var(--white); padding: 32px 28px; transition: background 0.2s; }
.features-grid .feature-card:first-child { border-radius: 16px 0 0 16px; }
.features-grid .feature-card:last-child { border-radius: 0 16px 16px 0; }
.feature-card:hover { background: #FAFAFE; }
.feature-icon { width: 42px; height: 42px; background: var(--indigo-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-desc { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ── PRICING ── */
.pricing-section { padding: 90px 48px; max-width: 960px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.pricing-card { background: var(--white); border: 1px solid rgba(91,79,217,0.1); border-radius: 16px; padding: 28px 24px; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(91,79,217,0.1); }
.pricing-card.featured { border: 2px solid var(--indigo); background: var(--ink); }
.featured-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--white); background: var(--indigo); padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.plan-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 14px; }
.pricing-card.featured .plan-name { color: rgba(255,255,255,0.5); }
.plan-price { font-family: var(--serif); font-size: 42px; font-weight: 700; color: var(--ink); letter-spacing: -1px; line-height: 1; margin-bottom: 3px; }
.plan-price sup { font-size: 18px; font-weight: 400; vertical-align: super; }
.plan-period { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.pricing-card.featured .plan-period { color: rgba(255,255,255,0.4); }
.plan-divider { height: 1px; background: rgba(91,79,217,0.08); margin-bottom: 20px; }
.pricing-card.featured .plan-divider { background: rgba(255,255,255,0.1); }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { font-family: var(--sans); font-size: 13px; color: var(--ink-mid); display: flex; align-items: center; gap: 8px; }
.pricing-card.featured .plan-features li { color: rgba(255,255,255,0.75); }
.check { color: var(--indigo); font-size: 13px; font-weight: 700; }
.pricing-card.featured .check { color: var(--indigo-light); }
.plan-btn { display: block; text-align: center; font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 11px 18px; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.plan-btn-outline { color: var(--indigo); border: 1px solid rgba(91,79,217,0.3); }
.plan-btn-outline:hover { background: var(--indigo-pale); }
.plan-btn-filled { color: var(--white); background: var(--indigo); }
.plan-btn-filled:hover { background: var(--indigo-dark); }

/* ── CTA ── */
.cta-section { padding: 90px 48px; text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-section h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: -1px; line-height: 1.05; margin-bottom: 16px; }
.cta-section h2 em { font-style: italic; color: var(--indigo); }
.cta-section p { font-family: var(--sans); font-size: 16px; color: var(--ink-soft); margin-bottom: 36px; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--white); text-decoration: none; }
.footer-logo span { color: var(--indigo-light); font-weight: 400; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.2); }

/* ── AUTH FORMS ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px 40px; }
.auth-card { background: var(--white); border: 1px solid rgba(91,79,217,0.1); border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-title { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 6px; }
.auth-sub { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-mid); display: block; margin-bottom: 6px; }
.form-input { width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--parchment); border: 1px solid rgba(91,79,217,0.15); border-radius: 9px; padding: 11px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,79,217,0.1); }
.form-submit { width: 100%; margin-top: 8px; padding: 13px; font-size: 15px; }
.auth-divider { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(91,79,217,0.1); }
.auth-divider span { background: var(--white); padding: 0 12px; position: relative; }
.auth-switch { text-align: center; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-top: 24px; }
.auth-switch a { color: var(--indigo); text-decoration: none; font-weight: 500; }
.form-error { font-family: var(--sans); font-size: 13px; color: #C0392B; background: #FDEDEC; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; display: none; }
.form-error.visible { display: block; }

/* ── DASHBOARD ── */
.dashboard { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--ink); padding: 24px 0; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-logo { padding: 0 20px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; }
.sidebar-logo a { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--white); text-decoration: none; }
.sidebar-logo a span { color: var(--indigo-light); font-weight: 400; }
.sidebar-nav { list-style: none; padding: 0 12px; flex: 1; }
.sidebar-nav li a { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; padding: 10px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; margin-bottom: 2px; }
.sidebar-nav li a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.sidebar-nav li a.active { color: var(--white); background: rgba(91,79,217,0.3); }
.sidebar-nav li a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-bottom { padding: 12px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.user-pill { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--indigo); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--white); flex-shrink: 0; }
.user-name { font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,0.7); }
.user-plan { font-family: var(--mono); font-size: 10px; color: var(--indigo-light); }
.main-content { flex: 1; background: var(--parchment); overflow-y: auto; }
.page-header { background: var(--white); border-bottom: 1px solid rgba(91,79,217,0.08); padding: 20px 36px; display: flex; align-items: center; justify-content: space-between; }
.page-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.page-body { padding: 32px 36px; }

/* ── CONVERTER UI ── */
.converter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.panel { background: var(--white); border-radius: 14px; border: 1px solid rgba(91,79,217,0.08); overflow: hidden; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid rgba(91,79,217,0.06); display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.panel-body { padding: 20px; }
.upload-zone { border: 2px dashed rgba(91,79,217,0.2); border-radius: 10px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.2s; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--indigo); background: var(--indigo-pale); }
.upload-zone svg { width: 32px; height: 32px; color: var(--indigo); }
.upload-zone p { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.upload-zone strong { color: var(--ink); }
.upload-zone input { display: none; }
.output-area { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--ink-mid); background: #F7F6FF; border-radius: 8px; padding: 16px; min-height: 220px; white-space: pre-wrap; word-break: break-word; }
.output-placeholder { color: var(--ink-soft); font-style: italic; font-family: var(--sans); font-size: 13px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.action-bar { display: flex; gap: 10px; align-items: center; }
.btn-convert { background: var(--indigo); color: var(--white); border: none; font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 11px 24px; border-radius: 9px; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.btn-convert:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.btn-convert:disabled { background: var(--ink-soft); cursor: not-allowed; transform: none; }
.btn-copy { background: transparent; color: var(--ink-mid); border: 1px solid rgba(91,79,217,0.2); font-family: var(--sans); font-size: 14px; padding: 11px 18px; border-radius: 9px; cursor: pointer; transition: all 0.2s; }
.btn-copy:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-download { background: transparent; color: var(--ink-mid); border: 1px solid rgba(91,79,217,0.2); font-family: var(--sans); font-size: 14px; padding: 11px 18px; border-radius: 9px; cursor: pointer; transition: all 0.2s; }
.btn-download:hover { border-color: var(--indigo); color: var(--indigo); }
.progress-bar-wrap { height: 4px; background: rgba(91,79,217,0.1); border-radius: 99px; overflow: hidden; margin-top: 12px; display: none; }
.progress-bar-fill { height: 100%; background: var(--indigo); border-radius: 99px; transition: width 0.3s ease; }
.usage-bar-wrap { background: var(--white); border-radius: 10px; border: 1px solid rgba(91,79,217,0.08); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.usage-label { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); flex-shrink: 0; }
.usage-bar { flex: 1; height: 6px; background: rgba(91,79,217,0.1); border-radius: 99px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--indigo); border-radius: 99px; }
.usage-count { font-family: var(--mono); font-size: 12px; color: var(--ink-mid); flex-shrink: 0; }

/* ── TEMPLATES ── */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.template-card { background: var(--white); border: 1px solid rgba(91,79,217,0.08); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.template-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(91,79,217,0.1); }
.template-preview { height: 130px; background: var(--indigo-pale); display: flex; align-items: center; justify-content: center; }
.template-preview svg { width: 48px; height: 48px; color: var(--indigo); opacity: 0.4; }
.template-info { padding: 14px; }
.template-name { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.template-type { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }
.template-use-btn { display: block; text-align: center; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--indigo); padding: 10px; border-top: 1px solid rgba(91,79,217,0.08); text-decoration: none; transition: background 0.2s; }
.template-use-btn:hover { background: var(--indigo-pale); }

/* ── COURSE GENERATOR ── */
.course-form { background: var(--white); border-radius: 14px; border: 1px solid rgba(91,79,217,0.08); padding: 32px; max-width: 640px; }
.course-output { background: var(--white); border-radius: 14px; border: 1px solid rgba(91,79,217,0.08); padding: 24px; margin-top: 20px; }
.course-output pre { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--ink-mid); background: #F7F6FF; border-radius: 8px; padding: 16px; white-space: pre-wrap; word-break: break-word; max-height: 500px; overflow-y: auto; }

/* ── HISTORY ── */
.history-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(91,79,217,0.08); }
.history-table th { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-soft); padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(91,79,217,0.06); background: var(--parchment); }
.history-table td { font-family: var(--sans); font-size: 13px; color: var(--ink-mid); padding: 13px 16px; border-bottom: 1px solid rgba(91,79,217,0.04); }
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: rgba(91,79,217,0.02); }
.status-pill { font-family: var(--mono); font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: 99px; }
.status-done { background: #E1F5EE; color: #085041; }
.status-error { background: #FCEBEB; color: #791F1F; }

/* ── SETTINGS ── */
.settings-section { background: var(--white); border-radius: 14px; border: 1px solid rgba(91,79,217,0.08); padding: 28px; margin-bottom: 20px; }
.settings-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(91,79,217,0.06); }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.settings-hint { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero, .demo-section, .features-section, .pricing-section, .cta-section { padding-left: 20px; padding-right: 20px; }
  .features-grid, .pricing-grid, .stats-inner, .converter-grid { grid-template-columns: 1fr; }
  .features-grid .feature-card:first-child { border-radius: 16px 16px 0 0; }
  .features-grid .feature-card:last-child { border-radius: 0 0 16px 16px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-input { border-right: none; border-bottom: 1px solid rgba(91,79,217,0.08); }
  footer { flex-direction: column; align-items: flex-start; }
  .dashboard { flex-direction: column; }
  .sidebar { width: 100%; }
  .page-body { padding: 20px; }
}
