/* ==========================================================================
   BORROW — PRODUCTION DESIGN SYSTEM
   Visual Identity: Light Theme, Sky Tint to White Gradients, Slate Ink
   Tagline: Borrow. Share. Use. Repeat.
   Color Palette:
     --brand: #2563EB, --deep: #1D4ED8, --bright: #3B82F6
     --sky-accent: #38BDF8, --sky-tint: #E8F1FF, --mist: #F6F9FF
     --ink: #0F172A, --muted: #52607A, --border: #DCE7F8
   ========================================================================== */

:root {
  /* Brand Tokens */
  --brand: #2563EB;
  --deep: #1D4ED8;
  --bright: #3B82F6;
  --sky-accent: #38BDF8;
  --sky-tint: #E8F1FF;
  --mist: #F6F9FF;
  --ink: #0F172A;
  --muted: #52607A;
  --border: #DCE7F8;
  --white: #FFFFFF;

  /* Surfaces & Elevation */
  --bg-gradient: radial-gradient(120% 100% at 50% 0%, #E8F1FF 0%, #F6F9FF 50%, #FFFFFF 100%);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-card-hover: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(255, 255, 255, 0.95);
  
  --shadow-xs: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 6px 18px -4px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 16px 36px -8px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 28px 64px -12px rgba(37, 99, 235, 0.18), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-phone: 0 30px 70px -15px rgba(29, 78, 216, 0.22), 0 12px 24px -6px rgba(37, 99, 235, 0.12);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-body);

  /* Geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --radius-phone: 44px;
  --radius-screen: 34px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-gradient);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ==========================================================================
   HYPERSPEED & BACKGROUND ATMOSPHERE
   ========================================================================== */

.hyperspeed-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 820px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#hyperspeedContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.hyperspeed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(232, 241, 255, 0.2) 0%,
    rgba(246, 249, 255, 0.6) 45%,
    rgba(255, 255, 255, 0.96) 85%,
    #FFFFFF 100%
  );
  pointer-events: none;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

/* Video Sky Background */
.video-bg-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.sky-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.2) brightness(1.06);
}

.sky-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 85% at 50% 20%, rgba(255, 255, 255, 0.52) 0%, rgba(246, 249, 255, 0.82) 65%, #ffffff 100%);
}

.glow-top {
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 75%);
}

.glow-middle {
  top: 45%;
  right: -200px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
  animation-duration: 22s;
}

.micro-slats {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
}

@keyframes floatAmbient {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(25px) scale(1.05); }
  100% { transform: translateY(-15px) scale(0.97); }
}

/* Scroll Progress */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--sky-accent), var(--brand), var(--deep));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 999;
  transition: transform 0.08s linear;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION WITH WHITE & SKY GRADIENTS
   ========================================================================== */

.nav {
  position: sticky;
  top: 16px;
  z-index: 200;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 241, 255, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(220, 231, 248, 0.85);
  transition: all var(--transition-smooth);
}

.nav.scrolled .nav-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 254, 0.95) 100%);
  box-shadow: 0 14px 36px -6px rgba(37, 99, 235, 0.2), 0 0 0 1px var(--bright);
  padding: 10px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: transform var(--transition-spring);
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--brand);
  background: var(--sky-tint);
}

.nav-links a.active {
  color: var(--deep);
  background: var(--sky-tint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--bright) 0%, var(--deep) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4f94fc 0%, var(--brand) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  color: var(--brand);
  border-color: var(--bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.02rem;
}

.btn-tag {
  background: var(--sky-tint);
  border: 1px solid var(--border);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2.2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 76px;
  background: rgba(246, 249, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ==========================================================================
   HERO SECTION & LAYERED 3-PHONE COMPOSITION
   ========================================================================== */

.hero {
  padding: 45px 0 85px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--sky-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 20px;
}

.badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--brand) 0%, var(--sky-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.hero-chip-pill svg {
  color: var(--brand);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

/* App Explorer Tabs */
.screen-switcher-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.screen-switcher-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.screen-tab-btn {
  flex: 1 1 auto;
  padding: 8px 12px;
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.screen-tab-btn svg {
  color: var(--brand);
}

.screen-tab-btn:hover {
  color: var(--brand);
  background: var(--sky-tint);
  border-color: var(--bright);
}

.screen-tab-btn.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.screen-tab-btn.active svg {
  color: var(--white);
}

/* ==========================================================================
   THREE-PHONE LAYERED COMPOSITION (Matching User Mockup)
   ========================================================================== */

.hero-triple-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
  perspective: 1200px;
  padding: 20px 0;
}

.triple-phones-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup Frame */
.mockup-phone {
  position: absolute;
  width: 260px;
  height: 535px;
  background: #0f172a;
  border-radius: var(--radius-phone);
  padding: 8px;
  box-shadow: var(--shadow-phone);
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), z-index var(--transition-smooth);
}

.mockup-phone .phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-screen);
  overflow: hidden;
  background: #FFFFFF;
}

.mockup-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.25s ease;
}

/* Left Layered Phone */
.phone-left {
  left: 10px;
  transform: rotate(-9deg) translateY(24px) scale(0.92);
  z-index: 10;
  opacity: 0.95;
}

.phone-left:hover {
  transform: rotate(-6deg) translateY(12px) scale(0.96);
  z-index: 25;
}

/* Center Foreground Phone */
.phone-center {
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(1.05);
  z-index: 20;
  box-shadow: 0 35px 85px -15px rgba(29, 78, 216, 0.35), 0 16px 32px -6px rgba(37, 99, 235, 0.2);
}

.phone-center:hover {
  transform: translateX(-50%) translateY(-16px) scale(1.08);
  z-index: 30;
}

/* Right Layered Phone */
.phone-right {
  right: 10px;
  transform: rotate(9deg) translateY(24px) scale(0.92);
  z-index: 10;
  opacity: 0.95;
}

.phone-right:hover {
  transform: rotate(6deg) translateY(12px) scale(0.96);
  z-index: 25;
}

/* Floating Layer Badges on Mockups */
.mockup-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 231, 248, 0.95);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 35;
  pointer-events: none;
}

.mockup-badge.badge-left {
  bottom: 30px;
  left: -15px;
}

.mockup-badge.badge-right {
  bottom: 45px;
  right: -15px;
}

.mockup-badge .dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* ==========================================================================
   TICKER STRIP
   ========================================================================== */

.ticker-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  background: linear-gradient(90deg, var(--deep) 0%, var(--brand) 50%, var(--bright) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  opacity: 0.95;
}

.ticker-track span::after {
  content: "•";
  font-size: 1.1rem;
  color: var(--sky-accent);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS & BENTO GRID
   ========================================================================== */

.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: var(--mist);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--sky-tint);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.bento-card:hover {
  border-color: var(--bright);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bento-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill-chip {
  padding: 6px 12px;
  background: var(--sky-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-chip svg {
  color: var(--brand);
}

/* ==========================================================================
   SIX CATEGORIES
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:hover {
  border-color: var(--bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sky-tint);
  border: 1px solid var(--border);
  color: var(--brand);
}

.cat-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--mist);
  color: var(--muted);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cat-examples {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

.cat-examples strong {
  color: var(--ink);
}

/* ==========================================================================
   4-STEP TIMELINE JOURNEY
   ========================================================================== */

.timeline-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 36px;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-accent), var(--brand), var(--sky-accent));
  z-index: 0;
  opacity: 0.35;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-xs);
  position: relative;
  z-index: 1;
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--bright);
}

.timeline-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--bright) 0%, var(--deep) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   RULES & STANDARDS
   ========================================================================== */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.rule-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.rule-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rule-box.prohibited {
  border-top: 4px solid #ef4444;
  border-left: 1px solid var(--border);
}

.rule-box.standards {
  border-top: 4px solid var(--brand);
  border-left: 1px solid var(--border);
}

.rule-box h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.rule-list li strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.rule-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand);
}

.rule-box.prohibited .rule-list li svg {
  color: #ef4444;
}

/* ==========================================================================
   REACT BITS GLOW CURSOR CANVAS
   ========================================================================== */

.glow-cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  mix-blend-mode: screen;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--brand) 60%, var(--bright) 100%);
  border-radius: var(--radius-xl);
  padding: 65px 44px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 30px 0 90px;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   WARP TEXT COMPONENT
   ========================================================================== */

.warp-text-box {
  position: relative;
  width: 100%;
  height: 95px;
  min-height: 85px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  cursor: grab;
}

.warp-text-box:active {
  cursor: grabbing;
}

.warp-text-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   FOOTER WITH WHITE & SKY GRADIENTS
   ========================================================================== */

.footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F6FE 50%, #E0EEFC 100%);
  border-top: 1px solid var(--border);
  padding: 75px 0 38px;
  position: relative;
  z-index: 10;
  box-shadow: inset 0 20px 40px -20px rgba(37, 99, 235, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 45px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 14px 0 20px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.giant-watermark {
  position: absolute;
  bottom: 0;
  right: 5%;
  font-family: var(--font-heading);
  font-size: 14rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ==========================================================================
   LIGHTBOX & MODAL
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--deep);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 180;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.app-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-modal.active .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--mist);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--border);
  color: var(--ink);
}

.modal-phone {
  width: 270px;
  height: 540px;
  background: #0f172a;
  border-radius: 36px;
  padding: 7px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  margin-bottom: 16px;
}

.modal-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.modal-info { text-align: center; }

.modal-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.modal-info p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   DOCUMENTATION & LEGAL
   ========================================================================== */

.pagehero {
  padding: 55px 0 35px;
  position: relative;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
}

.crumb:hover {
  color: var(--deep);
  transform: translateX(-3px);
}

.pagehero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.pagehero p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 85px;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.toc-card h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-nav a:hover, .toc-nav a.active {
  color: var(--brand);
  background: var(--sky-tint);
}

.doc-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xs);
}

.doc-content section { margin-bottom: 38px; }

.doc-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.doc-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.doc-content ul, .doc-content ol {
  margin: 12px 0 16px 24px;
  color: var(--muted);
  line-height: 1.65;
}

.doc-content li { margin-bottom: 8px; }

.doc-note-box {
  background: var(--sky-tint);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--deep);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--bright);
  color: var(--brand);
}

.filter-btn.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
}

.search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-input-wrap input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-xs);
  max-width: 680px;
  margin: 0 auto 75px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.96rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges-row, .hero-cta-group {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-flow::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .category-grid, .rules-grid {
    grid-template-columns: 1fr;
  }

  .timeline-flow {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-triple-showcase {
    min-height: 480px;
  }

  .mockup-phone {
    width: 220px;
    height: 450px;
  }

  .phone-left { left: 0; }
  .phone-right { right: 0; }

  .form-card, .doc-content {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
