/* ================================================================
   My API Sider — Website Design System
   Premium, production-grade CSS matching Chrome Extension theme.
   Dark-first with full light theme support. Glassmorphism + animations.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Dark Theme — matches extension exactly */
  --bg-primary: #212121;
  --bg-secondary: #171717;
  --bg-tertiary: #2f2f2f;
  --bg-surface: #2f2f2f;
  --bg-surface-hover: #383838;
  --bg-card: #1e1e1e;

  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --text-tertiary: #8e8e8e;
  --text-inverse: #171717;

  --accent: #10a37f;
  --accent-hover: #0d8a6b;
  --accent-light: rgba(16, 163, 127, 0.12);
  --accent-gradient: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%);
  --accent-glow: 0 0 30px rgba(16, 163, 127, 0.25);

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(16, 163, 127, 0.3);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(16,163,127,0.15);

  --glass-bg: rgba(33, 33, 33, 0.85);
  --glass-border: rgba(255, 255, 255, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.22s ease;
  --transition-slow: 0.4s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 68px;
}

/* ── Light Theme ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f0f0f0;
  --bg-surface: #f4f4f4;
  --bg-surface-hover: #ebebeb;
  --bg-card: #ffffff;

  --text-primary: #0d0d0d;
  --text-secondary: #676767;
  --text-tertiary: #9b9b9b;
  --text-inverse: #ffffff;

  --border: rgba(0,0,0,0.08);
  --border-accent: rgba(16,163,127,0.25);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 20px rgba(16,163,127,0.1);

  --glass-bg: rgba(255,255,255,0.9);
  --glass-border: rgba(0,0,0,0.06);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #424242; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* ─────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.site-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow);
  flex-shrink: 0;
}

.site-logo .logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-logo span { color: var(--text-primary); }
.site-logo span em { color: var(--accent); font-style: normal; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-link.nav-cta {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  box-shadow: var(--shadow-glow);
}
.nav-link.nav-cta:hover {
  background: linear-gradient(135deg, #0d8a6b 0%, #0b7a5e 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle */
.btn-theme {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-theme:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.btn-theme svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Mobile menu toggle */
.btn-menu {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at top, rgba(16,163,127,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
  animation: fadeInDown 0.6s ease both;
}
.hero-badge span { font-size: 14px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.7;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

/* Primary CTA — Chat Now */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16,163,127,0.35);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: inherit;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16,163,127,0.45);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-primary svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Secondary CTA */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.btn-secondary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Provider Pills */
.provider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.provider-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.provider-pill:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.provider-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   FEATURES / CARDS
   ───────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
  position: relative;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  border-radius: inherit;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: all var(--transition);
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { background: var(--accent); box-shadow: var(--shadow-glow); }
.card:hover .card-icon svg { stroke: white; }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   ARTICLE / CONTENT
   ───────────────────────────────────────────────────────────── */
.article-section { padding: 80px 0; }
.article-section .container { max-width: 860px; }

.article-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 44px 0 14px;
  color: var(--text-primary);
}
.article-section h2:first-child { margin-top: 0; }

.article-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text-primary);
}

.article-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-section ul, .article-section ol {
  margin: 12px 0 20px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.article-section li { margin-bottom: 6px; }

/* FAQ Accordion */
.faq-list { margin-top: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-accent); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-primary);
  transition: color var(--transition);
  user-select: none;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--text-tertiary);
}
.faq-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--transition); }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); color: white; }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition);
  padding: 0 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 22px 20px;
}

/* ─────────────────────────────────────────────────────────────
   DOWNLOAD PAGE BUTTONS
   ───────────────────────────────────────────────────────────── */
.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}
.dl-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.dl-card-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.dl-icon {
  width: 64px; height: 64px;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.dl-icon svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.dl-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.dl-card p { font-size: 0.87rem; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.6; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-dl-zip {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(16,163,127,0.3);
}
.btn-dl-zip:hover { color: white; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,163,127,0.4); }

.btn-dl-store {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-dl-store:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

/* Ripple animation */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Coming Soon tooltip */
.coming-soon-wrap { position: relative; }
.coming-soon-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.coming-soon-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-accent);
}
.coming-soon-wrap:hover .coming-soon-tip { display: block; animation: fadeIn 0.2s ease; }

/* Steps guide */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 42px; height: 42px;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.step-content h4 { font-size: 0.97rem; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.step-content p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.step-content code {
  font-family: monospace;
  font-size: 0.83rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   CONTACT FORM
   ───────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  max-width: 660px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { min-height: 130px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(16,163,127,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,163,127,0.4); }

/* ─────────────────────────────────────────────────────────────
   INLINE CHAT SECTION
   ───────────────────────────────────────────────────────────── */
.chat-embed-section { padding: 80px 0; }
.chat-embed-section .section-title { text-align: center; }
.chat-embed-section .section-sub { text-align: center; margin: 0 auto 40px; }

.chat-embed-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  min-height: 600px;
  position: relative;
}

.chat-embed-wrapper iframe {
  width: 100%;
  height: 650px;
  border: none;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .site-logo { margin-bottom: 14px; font-size: 1.05rem; }
.footer-brand p {
  font-size: 0.87rem;
  color: var(--text-tertiary);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bar-copy {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-bar-credit {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-bar-credit a {
  color: var(--accent);
  font-weight: 600;
}
.footer-bar-credit a:hover { color: var(--accent-hover); }

/* ─────────────────────────────────────────────────────────────
   PAGE HERO (inner pages)
   ───────────────────────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at top, rgba(16,163,127,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT PAGE
   ───────────────────────────────────────────────────────────── */
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 40px;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--accent-glow);
}
.profile-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.profile-info .role { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.profile-info p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: all var(--transition);
}
.skill-item:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.skill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.skill-item span { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Floating glow orb */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ─────────────────────────────────────────────────────────────
   LEGAL PAGES
   ───────────────────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; color: var(--text-primary); }
.legal-content h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; color: var(--text-primary); }
.legal-content p, .legal-content li { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin-left: 20px; }
.legal-content a { color: var(--accent); }
.legal-meta { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 32px; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  nav.main-nav { display: none; }
  .btn-menu { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 60px; }
  .hero h1 { letter-spacing: -0.8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { flex-direction: column; padding: 24px; }
  .contact-card { padding: 24px; }
  .section { padding: 60px 0; }
  nav.main-nav.open { display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--glass-bg); backdrop-filter: blur(16px); padding: 16px; border-bottom: 1px solid var(--border); z-index: 999; }
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}
