/* ===========================
   humarains — GLOBAL STYLES
   Dark Luxury Aesthetic
   =========================== */

:root {
  --bg: transparent;
  --bg2: rgba(255,255,255,0.35);
  --surface: rgba(255,255,255,0.6);
  --surface2: rgba(255,255,255,0.4);
  --border: rgba(100,140,200,0.18);
  --border2: rgba(100,140,200,0.28);
  --accent: #0284c7;          /* sky-600 — light blue */
  --accent2: #0369a1;         /* sky-700 */
  --accent3: #f97316;         /* orange */
  --text: #0f172a;            /* slate-900 — dark for contrast */
  --text2: #334155;           /* slate-700 */
  --text3: #64748b;           /* slate-500 */
  --text1: #0f172a;           /* alias for --text, used in dashboard intelligence view */
  --bg: rgba(255,255,255,0.6);/* used in rewrite blocks and modal backgrounds */
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(2,132,199,0.12);
  --shadow-lg: 0 24px 64px rgba(2,132,199,0.18);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Gradient shared across all pages */
  --grad: linear-gradient(135deg, #bae6fd 0%, #fed7aa 52%, #fbcfe8 100%);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  overflow-y: auto;
}

/* OVERLAYS */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.08;
}

.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(2,132,199,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(2,132,199,0.15);
  box-shadow: 0 2px 20px rgba(2,132,199,0.08);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 52px; height: 36px; border-radius: 0;
  background: url('logo.png') center/contain no-repeat;
  background-color: transparent;
  box-shadow: none;
  position: relative;
}

.logo-mark::after {
  display: none;
}

.logo-text {
  font-family: var(--font-body); font-size: 18px; font-weight: 400;
  color: #0369a1; letter-spacing: -0.3px;
}
.logo-text strong { font-weight: 800; color: #0284c7; }

.nav-links {
  display: flex; list-style: none; gap: 36px;
}

.nav-links a {
  color: #334155; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: #0284c7; }

.nav-cta { display: flex; gap: 12px; align-items: center; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 8px;
  transition: background var(--transition);
}
.nav-hamburger:hover { background: rgba(2,132,199,0.08); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU DRAWER */
.mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(2,132,199,0.12);
  padding: 20px 24px 28px;
  flex-direction: column; gap: 8px;
  box-shadow: 0 8px 32px rgba(2,132,199,0.1);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  display: block; padding: 12px 16px;
  font-size: 16px; font-weight: 500; color: var(--text);
  text-decoration: none; border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu a:hover { background: rgba(2,132,199,0.07); color: var(--accent); }
.mobile-menu .mobile-menu-divider {
  height: 1px; background: var(--border); margin: 8px 0;
}
.mobile-menu .btn-primary {
  display: block; text-align: center; margin-top: 8px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#38bdf8,#0284c7); color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; padding: 10px 22px;
  border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.1px;
  box-shadow: 0 4px 14px rgba(2,132,199,0.35);
}
.btn-primary:hover { background: linear-gradient(135deg,#0284c7,#0369a1); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(2,132,199,0.45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.55); color: #0f172a; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; padding: 10px 22px;
  border-radius: 8px; text-decoration: none; border: 1px solid rgba(2,132,199,0.25); cursor: pointer;
  transition: var(--transition); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: #0284c7; background: rgba(255,255,255,0.75); color: #0284c7; }

.btn-lg { font-size: 15px; padding: 14px 28px; }
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 120px 80px 80px;
  max-width: 1440px; margin: 0 auto;
  gap: 60px; overflow: clip;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}

#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6;
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: rgba(2,132,199,0.12); top: -100px; right: -100px; animation: orbFloat 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: rgba(249,115,22,0.08); bottom: 0; left: -100px; animation: orbFloat 10s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: rgba(236,72,153,0.06); top: 50%; left: 50%; animation: orbFloat 12s ease-in-out infinite 2s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2,132,199,0.1); border: 1px solid rgba(2,132,199,0.3);
  color: #0284c7; font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #0284c7;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.8)} }

.hero-heading {
  font-family: var(--font-display); font-size: clamp(48px, 5vw, 76px);
  font-weight: 600; line-height: 1.08; letter-spacing: -1px;
  margin-bottom: 24px; color: #0f172a;
}
.hero-heading em { font-style: italic; color: #0284c7; }

.hero-sub {
  font-size: 18px; color: #334155; line-height: 1.7;
  margin-bottom: 36px; font-weight: 400; max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 32px; align-items: center; }
.stat { display: flex; flex-direction: column; }
.stat-row { display: flex; align-items: baseline; gap: 1px; }
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: #0f172a; line-height: 1; }
.stat-suf { font-size: 20px; font-weight: 600; color: #0284c7; display: inline; }
.stat-label { font-size: 11px; color: #64748b; margin-top: 5px; letter-spacing: 0.5px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO VISUAL */
.hero-visual {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 16px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.score-card {
  background: rgba(255,255,255,0.72); backdrop-filter:blur(16px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  width: 320px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.score-ring {
  position: relative; width: 120px; height: 120px; margin: 0 auto 16px;
}
.score-svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.score-track { fill: none; stroke: var(--surface2); stroke-width: 8; }
.score-fill {
  fill: none; stroke: var(--accent); stroke-width: 8;
  stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
  stroke-linecap: round; transition: stroke-dashoffset 2s cubic-bezier(0.4,0,0.2,1);
}
.score-number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
}
.score-label { text-align: center; font-size: 13px; color: var(--text3); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

.sub-score {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 10px;
}
.sub-score span:first-child { width: 60px; color: var(--text2); }
.sub-score span:last-child { width: 24px; text-align: right; color: var(--text2); font-family: var(--font-mono); font-size: 12px; }
.sub-bar { flex: 1; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.sub-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; transition: width 1.5s cubic-bezier(0.4,0,0.2,1) 0.5s; }

.suggestion-card {
  background: rgba(255,255,255,0.72); backdrop-filter:blur(16px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; width: 320px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}
.sug-tag {
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.sug-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.sug-body { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.sug-impact { font-size: 13px; color: var(--good); font-weight: 600; font-family: var(--font-mono); }

/* SOCIAL PROOF */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative; z-index: 1;
}
.proof-label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.proof-logos { overflow: hidden; }
.proof-logos-inner {
  display: flex; gap: 12px; width: max-content;
  animation: scroll 28s linear infinite;
}
.proof-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(2,132,199,0.15);
  border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 500; color: var(--text2); white-space: nowrap;
  backdrop-filter: blur(8px);
}
@keyframes scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* SECTIONS */
.section { padding: 100px 0; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 60px; max-width: 650px;
}

/* STEPS */
.steps {
  display: flex; align-items: flex-start; gap: 0;
}
.step { flex: 1; }
.step-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 20px;
}
.step-icon {
  width: 56px; height: 56px; border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 20px; background: var(--surface);
}
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.step p { color: var(--text2); font-size: 15px; line-height: 1.6; font-weight: 300; }
.step-connector {
  flex-shrink: 0; width: 60px; margin-top: 28px; padding: 0 8px;
  display: flex; align-items: center;
}
.step-connector-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(2,132,199,0.2));
  position: relative;
}
.step-connector-line::after {
  content: '›'; position: absolute; right: -6px; top: -9px;
  color: var(--accent); font-size: 14px;
}

/* FEATURES */
.features-section { background: radial-gradient(ellipse at 50% 0%, rgba(240,165,0,0.04), transparent 70%); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,0.65); backdrop-filter:blur(12px); border: 1px solid rgba(2,132,199,0.15);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-large { grid-column: span 2; }
.feature-tag {
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(2,132,199,0.08); border: 1px solid rgba(2,132,199,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.65; font-weight: 300; }

.feature-demo { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.analysis-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border-radius: 8px; padding: 10px 14px;
  font-size: 13px; animation: scanLine 0.5s ease forwards; opacity: 0;
}
.analysis-item:nth-child(1){animation-delay:0.2s}
.analysis-item:nth-child(2){animation-delay:0.5s}
.analysis-item:nth-child(3){animation-delay:0.8s}
.analysis-item:nth-child(4){animation-delay:1.1s}
@keyframes scanLine { to { opacity: 1; } }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.ai-dot.warning { background: var(--warn); }
.ai-dot.bad { background: var(--bad); }
.analysis-item span:nth-child(2) { flex: 1; color: var(--text2); }
.ai-score { font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.ai-score.good { color: var(--good); }
.ai-score.warn { color: var(--warn); }
.ai-score.bad { color: var(--bad); }

.integration-logos { display: flex; gap: 16px; margin-top: 24px; }
.int-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.int-logo svg { width: 40px; height: 40px; border-radius: 8px; }
.int-logo span { font-size: 12px; color: var(--text3); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.price-card {
  background: rgba(255,255,255,0.68); backdrop-filter:blur(14px); border: 1px solid rgba(2,132,199,0.15);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(186,230,253,0.3));
  box-shadow: 0 8px 40px rgba(2,132,199,0.18);
  padding-top: 48px;
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,#38bdf8,#0284c7); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; white-space: nowrap; letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(2,132,199,0.4);
}
.price-tier { font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.price-amount { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; display: flex; align-items: flex-start; }
.price-currency { font-size: 24px; margin-top: 8px; }
.price-period { font-size: 13px; color: var(--text3); margin-top: 4px; margin-bottom: 28px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.price-features li {
  font-size: 14px; color: var(--text2); padding-left: 22px; position: relative;
}
.price-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700; font-size: 13px;
}

/* TESTIMONIALS */
.testimonials-section { }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial-card {
  background: rgba(255,255,255,0.68); backdrop-filter: blur(14px);
  border: 1px solid rgba(2,132,199,0.15); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.testimonial-stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.testimonial-quote {
  font-size: 14px; color: var(--text2); line-height: 1.7; font-weight: 300;
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#38bdf8,#0284c7);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.5px;
}
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--text3); margin-top: 1px; }
.testimonial-lift {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--good);
  background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.2);
  padding: 4px 10px; border-radius: 6px;
}

/* CTA */
.cta-section { }
.cta-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(186,230,253,0.35));
  border: 1px solid rgba(2,132,199,0.2);
  border-radius: var(--radius-lg); padding: 80px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(2,132,199,0.12);
}
.cta-orb {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(2,132,199,0.07), transparent);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(2,132,199,0.08); border: 1px solid rgba(2,132,199,0.2);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.cta-box h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 600; line-height: 1.15; color: #0f172a;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.cta-box p {
  font-size: 16px; color: var(--text2); margin-bottom: 36px;
  max-width: 440px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}
.cta-box .btn-primary { position: relative; z-index: 1; }



/* FOOTER */
.footer { border-top: 1px solid rgba(2,132,199,0.15); padding: 60px 0 32px; position: relative; z-index: 1; background: rgba(255,255,255,0.35); backdrop-filter:blur(12px); }
.footer-top { display: flex; gap: 80px; margin-bottom: 40px; }
.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 14px; color: #475569; line-height: 1.7; }
.footer-links { display: flex; gap: 60px; margin-left: auto; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #334155; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #475569; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: #0284c7; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(2,132,199,0.12);
  font-size: 13px; color: #64748b;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #64748b; text-decoration: none; font-size: 13px; transition: color var(--transition); }
.footer-bottom-links a:hover { color: #0284c7; }

/* Admin nav link */
.nav-admin-link {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  color: var(--text3); opacity: 0.5; transition: var(--transition);
  background: transparent; border: 1px solid transparent;
}
.nav-admin-link:hover { opacity: 1; border-color: var(--border); background: var(--surface2); }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* AUTH FORMS */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative; background: transparent;
}
.auth-card {
  background: rgba(255,255,255,0.75); backdrop-filter:blur(20px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px; width: 100%; max-width: 440px;
  position: relative; z-index: 1;
}
.auth-logo { margin-bottom: 32px; }
.auth-title { color: #0f172a; font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.auth-sub { color: #475569; font-size: 15px; color: var(--text2); margin-bottom: 32px; font-weight: 300; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; letter-spacing: 0.3px; }
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--font-body); font-size: 14px;
  transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,165,0,0.1); }
.form-input::placeholder { color: var(--text3); }

.form-error { font-size: 12px; color: var(--bad); margin-top: 6px; display: none; }
.form-group.error .form-input { border-color: var(--bad); }
.form-group.error .form-error { display: block; }

.auth-footer { margin-top: 24px; text-align: center; font-size: 14px; color: #475569; }
.auth-footer a { color: #0284c7; text-decoration: none; font-weight: 600; }

.divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 13px; color: #64748b; background: rgba(255,255,255,0.7); padding: 0 8px; border-radius:4px; }

/* ALERTS */
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 14px;
  margin-bottom: 20px; display: none;
}
.alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert.show { display: block; }

/* LOADING */
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: ''; position: absolute; inset: 0;
  background: inherit; border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000; border-radius: 50%;
  animation: spin 0.6s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { padding: 120px 40px 80px; flex-direction: column; }
  .hero-visual { flex-direction: row; width: 100%; }
  .score-card, .suggestion-card { flex: 1; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feature-large { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 100px 24px 60px; }
  .hero-visual { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }

  .section { padding: 60px 0; }
  .container { padding: 0 24px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }

  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: clamp(26px, 6vw, 36px); }
  .cta-box .hero-actions { flex-direction: column; align-items: stretch; }

  .auth-card { padding: 32px 24px; }

  .footer-links { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .score-card, .suggestion-card { width: 100%; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: clamp(36px, 10vw, 52px); }
  .hero-badge { font-size: 12px; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .auth-card { padding: 28px 20px; border-radius: var(--radius); }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===========================
   ANIMATION LIBRARY
   =========================== */

/* --- Keyframes --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes driftIn {
  from { opacity: 0; transform: translateY(60px) scale(0.96); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes driftInLeft {
  from { opacity: 0; transform: translateX(-60px) scale(0.96); filter: blur(4px); }
  to   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes driftInRight {
  from { opacity: 0; transform: translateX(60px) scale(0.96); filter: blur(4px); }
  to   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes pop {
  0%   { opacity: 0; transform: scale(0.6); }
  70%  { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.5) rotate(-5deg); }
  60%  { opacity: 1; transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  15%  { transform: rotate(-8deg); }
  30%  { transform: rotate(8deg); }
  45%  { transform: rotate(-5deg); }
  60%  { transform: rotate(5deg); }
  75%  { transform: rotate(-2deg); }
  90%  { transform: rotate(2deg); }
}
@keyframes wiggleScale {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-6deg) scale(1.05); }
  40% { transform: rotate(6deg) scale(1.05); }
  60% { transform: rotate(-3deg) scale(1.02); }
  80% { transform: rotate(3deg) scale(1.02); }
}
@keyframes rotateSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rotateCW {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: translateY(-40px); }
  50%  { opacity: 1; transform: translateY(8px); }
  75%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes flipIn {
  from { opacity: 0; transform: perspective(400px) rotateY(-90deg); }
  to   { opacity: 1; transform: perspective(400px) rotateY(0deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(240,165,0,0.2); }
  50%       { box-shadow: 0 0 32px rgba(240,165,0,0.6), 0 0 60px rgba(240,165,0,0.2); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%  { transform: scale(1.12); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.08); }
  70%  { transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
}
@keyframes rubberBand {
  0%   { transform: scale(1); }
  30%  { transform: scaleX(1.25) scaleY(0.75); }
  40%  { transform: scaleX(0.75) scaleY(1.25); }
  50%  { transform: scaleX(1.15) scaleY(0.85); }
  65%  { transform: scaleX(0.95) scaleY(1.05); }
  75%  { transform: scaleX(1.05) scaleY(0.95); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}
@keyframes tada {
  0%   { transform: scale(1) rotate(0); }
  10%  { transform: scale(0.9) rotate(-3deg); }
  20%  { transform: scale(0.9) rotate(-3deg); }
  30%  { transform: scale(1.1) rotate(3deg); }
  40%  { transform: scale(1.1) rotate(-3deg); }
  50%  { transform: scale(1.1) rotate(3deg); }
  60%  { transform: scale(1.1) rotate(-3deg); }
  70%  { transform: scale(1.1) rotate(3deg); }
  80%  { transform: scale(1.1) rotate(-3deg); }
  90%  { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- Animation Utility Classes --- */
.anim-fade-in        { animation: fadeIn 0.6s ease forwards; }
.anim-fade-in-up     { animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-fade-in-down   { animation: fadeInDown 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-fade-in-left   { animation: fadeInLeft 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-fade-in-right  { animation: fadeInRight 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-drift-in       { animation: driftIn 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-drift-in-left  { animation: driftInLeft 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-drift-in-right { animation: driftInRight 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-pop            { animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-pop-in         { animation: popIn 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-wiggle         { animation: wiggle 0.8s ease-in-out; }
.anim-wiggle-loop    { animation: wiggle 2s ease-in-out infinite; }
.anim-wiggle-scale   { animation: wiggleScale 0.9s ease-in-out; }
.anim-rotate         { animation: rotateSpin 1s linear infinite; }
.anim-rotate-once    { animation: rotateCW 0.6s ease-in-out; }
.anim-rotate-in      { animation: rotateIn 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-bounce-in      { animation: bounceIn 0.6s ease forwards; }
.anim-slide-up       { animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-slide-down     { animation: slideDown 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-zoom-in        { animation: zoomIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-flip-in        { animation: flipIn 0.6s ease forwards; }
.anim-glow-pulse     { animation: glowPulse 2s ease-in-out infinite; }
.anim-heartbeat      { animation: heartbeat 1.5s ease-in-out infinite; }
.anim-float          { animation: float 3s ease-in-out infinite; }
.anim-rubber-band    { animation: rubberBand 0.8s ease; }
.anim-shake          { animation: shake 0.6s ease; }
.anim-tada           { animation: tada 1s ease; }

/* --- Delay helpers --- */
.anim-delay-100 { animation-delay: 0.1s; }
.anim-delay-200 { animation-delay: 0.2s; }
.anim-delay-300 { animation-delay: 0.3s; }
.anim-delay-400 { animation-delay: 0.4s; }
.anim-delay-500 { animation-delay: 0.5s; }
.anim-delay-600 { animation-delay: 0.6s; }
.anim-delay-700 { animation-delay: 0.7s; }
.anim-delay-800 { animation-delay: 0.8s; }
.anim-delay-900 { animation-delay: 0.9s; }
.anim-delay-1000{ animation-delay: 1s; }

/* Hide-before-animate */
.anim-hidden { opacity: 0; }

/* --- Applied animations on specific components --- */

/* Logo mark scales gently on hover */
.logo:hover .logo-mark {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Buttons: pop on click, rubber-band on hover */
.btn-primary:active { animation: rubberBand 0.4s ease; }
.btn-primary:hover  { animation: glowPulse 1.5s ease-in-out infinite; }
.btn-ghost:active   { animation: shake 0.3s ease; }

/* Badge dot: existing pulse stays, badge itself drifts in */
.hero-badge { animation: driftIn 0.9s cubic-bezier(0.22,1,0.36,1) both; }

/* Hero heading: fade in up staggered */
.hero-heading { animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero-sub     { animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both; }
.hero-actions { animation: fadeInUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.45s both; }
.hero-stats   { animation: fadeInUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.6s both; }

/* Hero visual: drift in from right */
.hero-visual  { animation: driftInRight 1s cubic-bezier(0.22,1,0.36,1) 0.3s both; }

/* Score card: pop in */
.score-card     { animation: popIn 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.7s both; }
.suggestion-card{ animation: driftIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.9s both; }

/* Feature cards: fade in on hover scale stays, add float on hover */
.feature-card { transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { animation: float 2.5s ease-in-out infinite; }

/* Stat numbers: pop when JS triggers data-animate */
.stat-num[data-animated] { animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }

/* Nav links drift down */
.nav-links li:nth-child(1) a { animation: fadeInDown 0.5s ease 0.1s both; }
.nav-links li:nth-child(2) a { animation: fadeInDown 0.5s ease 0.2s both; }
.nav-links li:nth-child(3) a { animation: fadeInDown 0.5s ease 0.3s both; }

/* Score ring: rotate-in on load */
.score-svg { animation: rotateIn 1s cubic-bezier(0.34,1.56,0.64,1) 0.8s both; }


/* Orbs: already have orbFloat, add extra glow */
.orb-1 { animation: orbFloat 8s ease-in-out infinite, glowPulse 4s ease-in-out infinite; }

/* Auth form: drift in */
.auth-card { animation: driftIn 0.8s cubic-bezier(0.22,1,0.36,1) both; }

/* Alerts: slide down when shown */
.alert.show { animation: slideDown 0.35s cubic-bezier(0.22,1,0.36,1); }

/* Sidebar nav items: fade in left stagger */
.sidebar-nav .nav-item:nth-child(1) { animation: fadeInLeft 0.5s ease 0.05s both; }
.sidebar-nav .nav-item:nth-child(2) { animation: fadeInLeft 0.5s ease 0.1s both; }
.sidebar-nav .nav-item:nth-child(3) { animation: fadeInLeft 0.5s ease 0.15s both; }
.sidebar-nav .nav-item:nth-child(4) { animation: fadeInLeft 0.5s ease 0.2s both; }
.sidebar-nav .nav-item:nth-child(5) { animation: fadeInLeft 0.5s ease 0.25s both; }
.sidebar-nav .nav-item:nth-child(6) { animation: fadeInLeft 0.5s ease 0.3s both; }
.sidebar-nav .nav-item:nth-child(7) { animation: fadeInLeft 0.5s ease 0.35s both; }
.sidebar-nav .nav-item:nth-child(8) { animation: fadeInLeft 0.5s ease 0.4s both; }

/* Active sidebar item: glow pulse */
.sidebar-nav .nav-item.active { animation: glowPulse 2.5s ease-in-out infinite; }

/* Upgrade button: heartbeat */
.upgrade-btn { animation: heartbeat 2.5s ease-in-out infinite; }

/* Dashboard cards: pop in on view transition */
.stat-card { animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.25s; }
.stat-card:nth-child(4) { animation-delay: 0.35s; }

/* Shimmer effect for loading skeleton */
.shimmer-loading {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Scroll-reveal base (JS toggles .visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Admin page specific animations */
.admin-card    { animation: driftIn 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.admin-row     { animation: fadeInLeft 0.5s ease both; }
.admin-badge   { animation: pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
.admin-stat    { animation: bounceIn 0.6s ease both; }
.admin-stat:nth-child(1) { animation-delay: 0.0s; }
.admin-stat:nth-child(2) { animation-delay: 0.1s; }
.admin-stat:nth-child(3) { animation-delay: 0.2s; }
.admin-stat:nth-child(4) { animation-delay: 0.3s; }

/* Prefers-reduced-motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a[href="forgot.html"] { color: #0284c7 !important; }

/* === NEW LOGO IMAGE STYLE (v2) === */
.logo-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: contain;
}
