/* ═══════════════════════════════════════════════════════════════
   Campus Flow Design System — UniMate Landing Page
   Indigo -> Violet -> Cyan  |  Fraunces + Space Grotesk
   ═══════════════════════════════════════════════════════════════ */


/* ── 1. DESIGN TOKENS ───────────────────────────────────────── */

:root {
  /* Surfaces */
  --hm-bg: #fafafa;
  --hm-surface: #ffffff;
  --hm-surface-2: #f5f5f5;
  --hm-surface-glass: rgba(255, 255, 255, 0.8);

  /* Text */
  --hm-text: #0a0a0a;
  --hm-sub: #3a3a3a;
  --hm-muted: #6a6a6a;

  /* Brand */
  --hm-primary: #2563eb;
  --hm-primary-hover: #1e40af;
  --hm-accent: #3b82f6;
  --hm-accent2: #0ea5a1;
  --hm-gradient: linear-gradient(135deg, #2563eb, #3b82f6, #0ea5a1);
  --hm-glow-primary: rgba(37, 99, 235, 0.35);
  --hm-glow-accent: rgba(59, 130, 246, 0.3);

  /* Borders */
  --hm-border: rgba(0, 0, 0, 0.06);
  --hm-border-hover: rgba(0, 0, 0, 0.12);

  /* Shadows */
  --hm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --hm-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --hm-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.10), 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Radii */
  --hm-rad-sm: 12px;
  --hm-rad-md: 20px;
  --hm-rad-lg: 32px;

  /* Typography */
  --hm-font-display: 'Fraunces', serif;
  --hm-font-body: 'Space Grotesk', sans-serif;

  /* Motion */
  --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hm-duration: 0.35s;
}

/* ── DARK THEME ── */
.theme-dark {
  --hm-bg: #000000;
  --hm-surface: #0f0f0f;
  --hm-surface-2: #1a1a1a;
  --hm-surface-glass: rgba(15, 15, 15, 0.8);

  --hm-text: #ffffff;
  --hm-sub: #d4d4d4;
  --hm-muted: #8a8a8a;

  --hm-primary: #60a5fa;
  --hm-primary-hover: #1e40af;
  --hm-accent: #93c5fd;
  --hm-accent2: #5eead4;
  --hm-glow-primary: rgba(37, 99, 235, 0.4);
  --hm-glow-accent: rgba(147, 197, 253, 0.35);

  --hm-border: rgba(255, 255, 255, 0.08);
  --hm-border-hover: rgba(255, 255, 255, 0.16);

  --hm-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
  --hm-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 12px rgba(0, 0, 0, 0.4);
  --hm-shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
}


/* ── 2. BASE RESETS ─────────────────────────────────────────── */

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

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
  font-family: var(--hm-font-body);
}

body.home-page {
  background-color: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--hm-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}


/* ── 3. CONTAINER ───────────────────────────────────────────── */

.home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .home-container { padding: 0 32px; }
}


/* ── 4. NAVBAR ──────────────────────────────────────────────── */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--hm-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--hm-duration) var(--hm-ease),
              border-color var(--hm-duration) var(--hm-ease),
              box-shadow var(--hm-duration) var(--hm-ease);
}

.home-nav.scrolled {
  border-bottom-color: var(--hm-border);
  box-shadow: var(--hm-shadow-sm);
}

.theme-dark .home-nav.scrolled {
  box-shadow: 0 1px 24px rgba(37, 99, 235, 0.06);
}

.home-nav .home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.home-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--hm-text);
  flex-shrink: 0;
}

.home-nav-logo img {
  height: 32px;
  width: auto;
}

/* Center links */
.home-nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .home-nav-links { display: flex; }
}

.home-nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hm-sub);
  position: relative;
  transition: color var(--hm-duration) var(--hm-ease);
}

.home-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hm-gradient);
  border-radius: 1px;
  transition: width var(--hm-duration) var(--hm-ease);
}

.home-nav-links a:hover {
  color: var(--hm-text);
}

.home-nav-links a:hover::after {
  width: 100%;
}

/* Actions */
.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hm-border);
  background: var(--hm-surface);
  color: var(--hm-muted);
  cursor: pointer;
  transition: all var(--hm-duration) var(--hm-ease);
}

.theme-toggle-btn:hover {
  border-color: var(--hm-border-hover);
  color: var(--hm-text);
}

/* Burger */
.home-nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.home-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hm-text);
  border-radius: 2px;
  transition: transform var(--hm-duration) var(--hm-ease),
              opacity var(--hm-duration) var(--hm-ease);
}

@media (min-width: 768px) {
  .home-nav-burger { display: none; }
}

/* Mobile nav */
.home-nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--hm-surface);
  border-bottom: 1px solid var(--hm-border);
  box-shadow: var(--hm-shadow-md);
  padding: 16px 24px;
  z-index: 999;
}

.home-nav-mobile.active {
  display: block;
}

.home-nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--hm-sub);
  border-bottom: 1px solid var(--hm-border);
  transition: color var(--hm-duration) var(--hm-ease);
}

.home-nav-mobile a:last-child {
  border-bottom: none;
}

.home-nav-mobile a:hover {
  color: var(--hm-primary);
}


/* ── 5. HERO ────────────────────────────────────────────────── */

.home-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .home-hero { padding: 100px 0 80px; }
}

/* Animated gradient mesh background */
.home-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(37, 99, 235, 0.4), transparent),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(59, 130, 246, 0.35), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(6, 182, 212, 0.3), transparent);
  animation: meshMove 20s ease-in-out infinite;
}

.theme-dark .home-hero::before {
  opacity: 0.25;
}

.home-hero .home-container {
  position: relative;
  z-index: 2;
}

.home-hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Badge pill */
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 100px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hm-sub);
  margin-bottom: 32px;
  box-shadow: var(--hm-shadow-sm);
}

.home-hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s ease-in-out infinite;
}

/* Headline */
.home-hero h1 {
  font-family: var(--hm-font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hm-text);
  margin-bottom: 20px;
}

.home-hero h1 .gradient-text {
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subheadline */
.home-hero p.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--hm-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* CTA buttons wrapper */
.home-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Primary button */
.hm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--hm-rad-sm);
  background: var(--hm-gradient);
  color: #ffffff;
  font-family: var(--hm-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--hm-duration) var(--hm-ease),
              box-shadow var(--hm-duration) var(--hm-ease);
  box-shadow: 0 4px 16px var(--hm-glow-primary);
}

.hm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--hm-glow-primary), 0 4px 16px var(--hm-glow-accent);
}

.hm-btn-primary:active {
  transform: translateY(0);
}

/* Secondary button */
.hm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--hm-rad-sm);
  background: transparent;
  color: var(--hm-text);
  font-family: var(--hm-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--hm-border-hover);
  cursor: pointer;
  transition: all var(--hm-duration) var(--hm-ease);
}

.hm-btn-secondary:hover {
  background: var(--hm-surface);
  border-color: var(--hm-primary);
  color: var(--hm-primary);
  box-shadow: var(--hm-shadow-sm);
}

/* Hero dashboard mockup */
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--hm-rad-md);
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  box-shadow: var(--hm-shadow-lg);
  overflow: hidden;
}

.theme-dark .hero-mockup {
  box-shadow: var(--hm-shadow-lg), 0 0 80px rgba(37, 99, 235, 0.06);
}

/* Browser chrome */
.hero-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--hm-surface-2);
  border-bottom: 1px solid var(--hm-border);
}

.hero-mockup-chrome .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hm-border-hover);
}

.hero-mockup-chrome .dot:nth-child(1) { background: #ff5f57; }
.hero-mockup-chrome .dot:nth-child(2) { background: #febc2e; }
.hero-mockup-chrome .dot:nth-child(3) { background: #28c840; }

.hero-mockup-body {
  display: flex;
  min-height: 360px;
}

/* Sidebar */
.hero-mockup-sidebar {
  width: 200px;
  padding: 20px 16px;
  border-right: 1px solid var(--hm-border);
  background: var(--hm-surface-2);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 640px) {
  .hero-mockup-sidebar { display: block; }
}

.hero-mockup-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--hm-muted);
  margin-bottom: 4px;
}

.hero-mockup-sidebar .sidebar-item.active {
  background: var(--hm-surface);
  color: var(--hm-primary);
  font-weight: 600;
}

/* Card grid inside mockup */
.hero-mockup-grid {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}

@media (max-width: 639px) {
  .hero-mockup-grid { grid-template-columns: 1fr; }
}

.hero-mockup-card {
  background: var(--hm-surface-2);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-rad-sm);
  padding: 18px;
  min-height: 100px;
}

.hero-mockup-card .card-bar {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 60%;
}

.hero-mockup-card:nth-child(1) .card-bar { background: var(--hm-primary); width: 70%; }
.hero-mockup-card:nth-child(2) .card-bar { background: var(--hm-accent); width: 55%; }
.hero-mockup-card:nth-child(3) .card-bar { background: var(--hm-accent2); width: 80%; }
.hero-mockup-card:nth-child(4) .card-bar { background: var(--hm-primary); width: 45%; }

.hero-mockup-card .card-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-mockup-card .card-line {
  height: 6px;
  border-radius: 3px;
  background: var(--hm-border);
}

.hero-mockup-card .card-line:nth-child(2) { width: 80%; }
.hero-mockup-card .card-line:nth-child(3) { width: 50%; }

/* Floating cards */
.hero-floating-card {
  position: absolute;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-rad-sm);
  padding: 14px 18px;
  box-shadow: var(--hm-shadow-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hm-sub);
  display: none;
  animation: float 6s ease-in-out infinite;
  z-index: 5;
}

@media (min-width: 1024px) {
  .hero-floating-card { display: flex; align-items: center; gap: 8px; }
}

.hero-floating-card.card-left {
  left: -40px;
  top: 40%;
  animation-delay: 0s;
}

.hero-floating-card.card-right {
  right: -40px;
  top: 30%;
  animation-delay: 2s;
}

.theme-dark .hero-floating-card {
  box-shadow: var(--hm-shadow-md), 0 0 30px rgba(37, 99, 235, 0.06);
}


/* ── 6. SOCIAL PROOF / LOGO SECTION ─────────────────────────── */

.logo-section {
  padding: 48px 0 56px;
  text-align: center;
}

.logo-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hm-muted);
  margin-bottom: 28px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.logo-row img {
  height: 28px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: all var(--hm-duration) var(--hm-ease);
}

.logo-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (min-width: 768px) {
  .logo-row { gap: 48px; }
  .logo-row img { height: 32px; }
}


/* ── 7. BENTO GRID ──────────────────────────────────────────── */

.bento-section {
  padding: 80px 0;
}

.bento-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.bento-section-header h2 {
  font-family: var(--hm-font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.bento-section-header p {
  font-size: 1.05rem;
  color: var(--hm-muted);
  max-width: 520px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.bento-item {
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-rad-md);
  overflow: hidden;
  transition: transform var(--hm-duration) var(--hm-ease),
              box-shadow var(--hm-duration) var(--hm-ease),
              border-color var(--hm-duration) var(--hm-ease);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--hm-shadow-md), 0 0 0 1px var(--hm-primary);
  border-color: transparent;
}

.theme-dark .bento-item:hover {
  box-shadow: var(--hm-shadow-md), 0 4px 40px rgba(37, 99, 235, 0.08);
}

@media (min-width: 640px) {
  .bento-large { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento-tall { grid-row: span 2; }
}

.bento-visual {
  padding: 32px 28px 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bento-visual svg,
.bento-visual img {
  max-width: 100%;
  height: auto;
}

/* Abstract decorative shapes inside bento visuals */
.bento-visual .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.bento-visual .shape-1 {
  width: 120px;
  height: 120px;
  background: var(--hm-primary);
  top: -20px;
  right: -20px;
}

.bento-visual .shape-2 {
  width: 80px;
  height: 80px;
  background: var(--hm-accent);
  bottom: -10px;
  left: 20px;
}

.bento-content {
  padding: 0 28px 28px;
}

.bento-content h3 {
  font-family: var(--hm-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--hm-text);
}

.bento-content p {
  font-size: 0.9rem;
  color: var(--hm-muted);
  line-height: 1.65;
}


/* ── 8. HOW IT WORKS / WORKFLOW ─────────────────────────────── */

.workflow-section {
  padding: 80px 0;
}

.workflow-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.workflow-section-header h2 {
  font-family: var(--hm-font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.workflow-section-header p {
  font-size: 1.05rem;
  color: var(--hm-muted);
  max-width: 520px;
  margin: 0 auto;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.workflow-step {
  text-align: center;
}

@media (min-width: 768px) {
  .workflow-step { text-align: left; }
}

.step-num {
  font-family: var(--hm-font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.workflow-step h3 {
  font-family: var(--hm-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--hm-text);
}

.workflow-step p {
  font-size: 0.9rem;
  color: var(--hm-muted);
  line-height: 1.65;
}


/* ── 9. WALL OF LOVE / REVIEWS ──────────────────────────────── */

.reviews-section {
  padding: 80px 0;
}

.reviews-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-section-header h2 {
  font-family: var(--hm-font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.reviews-section-header p {
  font-size: 1.05rem;
  color: var(--hm-muted);
  max-width: 520px;
  margin: 0 auto;
}

.masonry-grid {
  columns: 1;
  column-gap: 20px;
}

@media (min-width: 640px) {
  .masonry-grid { columns: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { columns: 3; }
}

.review-card {
  break-inside: avoid;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-rad-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: transform var(--hm-duration) var(--hm-ease),
              box-shadow var(--hm-duration) var(--hm-ease);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hm-shadow-md);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #f59e0b;
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.92rem;
  color: var(--hm-sub);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.review-avatar.avatar-indigo { background: var(--hm-primary); }
.review-avatar.avatar-violet { background: var(--hm-accent); }
.review-avatar.avatar-cyan   { background: var(--hm-accent2); }

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hm-text);
}

.review-author-role {
  font-size: 0.78rem;
  color: var(--hm-muted);
}


/* ── 10. CTA SECTION ────────────────────────────────────────── */

.cta-section {
  padding: 80px 0;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--hm-rad-lg);
  background: var(--hm-surface);
  overflow: hidden;
}

/* Gradient border via pseudo-element */
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--hm-rad-lg);
  padding: 2px;
  background: var(--hm-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.theme-dark .cta-card {
  box-shadow: 0 0 80px rgba(37, 99, 235, 0.06), 0 0 40px rgba(59, 130, 246, 0.04);
}

.cta-card h2 {
  font-family: var(--hm-font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: 1.05rem;
  color: var(--hm-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-card .hm-btn-primary {
  position: relative;
  z-index: 1;
}


/* ── 11. FAQ ────────────────────────────────────────────────── */

.faq-section {
  padding: 80px 0;
}

.faq-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-section-header h2 {
  font-family: var(--hm-font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.faq-section-header p {
  font-size: 1.05rem;
  color: var(--hm-muted);
  max-width: 520px;
  margin: 0 auto;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--hm-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--hm-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hm-text);
  text-align: left;
  gap: 16px;
  transition: color var(--hm-duration) var(--hm-ease);
}

.faq-question:hover {
  color: var(--hm-primary);
}

.faq-question .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--hm-duration) var(--hm-ease);
  color: var(--hm-muted);
}

.faq-item.active .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--hm-ease), opacity 0.3s var(--hm-ease);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.92rem;
  color: var(--hm-muted);
  line-height: 1.7;
}


/* ── 12. FOOTER ─────────────────────────────────────────────── */

.home-footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--hm-border);
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--hm-muted);
  line-height: 1.7;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--hm-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hm-sub);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--hm-muted);
  transition: color var(--hm-duration) var(--hm-ease);
}

.footer-col ul a:hover {
  color: var(--hm-primary);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--hm-border);
  font-size: 0.8rem;
  color: var(--hm-muted);
}

.footer-bottom select {
  background: var(--hm-surface-2);
  border: 1px solid var(--hm-border);
  color: var(--hm-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: var(--hm-font-body);
  cursor: pointer;
}


/* ── 13. SCROLL REVEAL ──────────────────────────────────────── */

.hm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--hm-ease), transform 0.6s var(--hm-ease);
}

.hm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* ── 14. KEYFRAME ANIMATIONS ────────────────────────────────── */

@keyframes meshMove {
  0%, 100% { background-position: 0% 50%, 100% 50%, 50% 100%; }
  25%      { background-position: 50% 0%, 0% 100%, 100% 50%; }
  50%      { background-position: 100% 50%, 50% 0%, 0% 50%; }
  75%      { background-position: 50% 100%, 100% 0%, 50% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}


/* ── 15. UTILITY ────────────────────────────────────────────── */

.text-gradient {
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hm-primary);
  margin-bottom: 12px;
}


/* ── 16. RESPONSIVE FINE-TUNING ─────────────────────────────── */

@media (max-width: 639px) {
  .home-hero { min-height: auto; padding: 60px 0 40px; }
  .home-hero-cta { flex-direction: column; align-items: center; }
  .hm-btn-primary,
  .hm-btn-secondary { width: 100%; justify-content: center; max-width: 320px; }
  .hero-mockup { border-radius: var(--hm-rad-sm); }
  .hero-mockup-body { min-height: 240px; }
  .bento-visual { min-height: 120px; padding: 24px 20px 16px; }
  .bento-content { padding: 0 20px 20px; }
  .cta-card { padding: 40px 20px; }
}

@media (min-width: 640px) and (max-width: 767px) {
  .bento-large { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento-section { padding: 100px 0; }
  .workflow-section { padding: 100px 0; }
  .reviews-section { padding: 100px 0; }
  .cta-section { padding: 100px 0; }
  .faq-section { padding: 100px 0; }
}
