/* ==========================================================================
   APILAGEAI — DESIGN SYSTEM & STYLES (NOTION AESTHETICS)
   ========================================================================== */

:root {
  /* Core Color Tokens */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f5;
  --bg-tertiary: #f0f0ee;
  --bg-card: #ffffff;
  --border-light: #e6e6e4;
  --border-medium: #d4d4d1;
  --border-strong: #111111;

  --text-primary: #111111;
  --text-secondary: #555553;
  --text-tertiary: #888884;
  --text-inverted: #ffffff;

  /* Notion Blue Accent & Button */
  --notion-blue: #0075eb;
  --notion-blue-hover: #0060c4;
  --notion-blue-active: #004da1;
  --notion-blue-soft: #ebf3fe;
  --notion-blue-border: #c8e0fd;

  /* Apilage Brand Red */
  --apilage-red: #ea3943;
  --apilage-red-dark: #cc2933;
  --apilage-red-soft: #fef2f2;
  --apilage-red-border: #fecaca;

  /* Notion Amber Pill Highlight */
  --pill-bg: #ffe7a3;
  --pill-dot: #f59e0b;
  --pill-text: #191919;

  /* Tinted Testimonial Cards (Screenshot 5) */
  --tint-red-bg: #982226;
  --tint-blue-bg: #1c3d73;
  --tint-amber-bg: #9c631b;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-device: 0 28px 70px -15px rgba(0, 0, 0, 0.22), 0 10px 24px -5px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
body.theme-dark {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222222;
  --bg-card: #181818;
  --border-light: #2c2c2c;
  --border-medium: #3c3c3c;
  --border-strong: #ffffff;

  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --text-inverted: #121212;

  --notion-blue: #258cfb;
  --notion-blue-hover: #3b9bff;
  --notion-blue-soft: #17263b;
  --notion-blue-border: #1f3b5c;

  --pill-bg: #3f3114;
  --pill-dot: #fbbf24;
  --pill-text: #fef3c7;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.6);
  --shadow-device: 0 28px 70px -15px rgba(0, 0, 0, 0.8);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-700 { max-width: 700px; }
.max-w-840 { max-width: 840px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ==========================================================================
   ANNOUNCEMENT BANNER
   ========================================================================== */
.top-announcement {
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-sparkle {
  background: var(--apilage-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.announcement-link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: var(--transition);
}

.announcement-link:hover {
  color: #bfdbfe;
}

.announcement-close {
  position: absolute;
  right: 16px;
  color: #888888;
  font-size: 18px;
  line-height: 1;
  transition: var(--transition);
}

.announcement-close:hover {
  color: #ffffff;
}

/* ==========================================================================
   NAVIGATION BAR (Matches Screenshot 1 & 2)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.theme-dark .site-header {
  background: rgba(18, 18, 18, 0.92);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.brand-text {
  font-weight: 800;
}

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

.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  background: var(--bg-tertiary);
}

.chevron {
  transition: transform 0.2s ease;
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1010;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.menu-icon-box {
  font-size: 18px;
  line-height: 1;
  padding-top: 2px;
}

.menu-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-link {
  font-size: 14px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 8px;
}

.btn-primary {
  background-color: var(--notion-blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--notion-blue-hover);
  box-shadow: 0 3px 8px rgba(0, 117, 235, 0.25);
}

.btn-ghost-blue {
  background-color: var(--notion-blue-soft);
  color: var(--notion-blue);
}

.btn-ghost-blue:hover {
  background-color: #dbeafe;
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--border-light);
}

.btn-github-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.btn-github-nav:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111111;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: left;
}

.btn-playstore:hover {
  background: #1c1c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.playstore-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.playstore-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.playstore-micro {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.playstore-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.btn-try-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--apilage-red);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(234, 57, 67, 0.32);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-try-now:hover {
  background: var(--apilage-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 57, 67, 0.42);
  color: #ffffff;
}

.btn-try-now .arrow-circle {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.full-width {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION (Matches Screenshot 1 & 2)
   ========================================================================== */
.hero-section {
  padding: 56px 0 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Notion Avatar Pill Capsule */
.avatar-capsule-wrapper {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.avatar-capsule {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-full);
  padding: 4px 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  gap: 0px;
  transform: translateY(0);
  transition: var(--transition);
}

.avatar-capsule:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.capsule-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.6px solid #000000;
  margin: 0 1px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.capsule-item:hover {
  transform: scale(1.1);
  z-index: 2;
}

.capsule-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fafafa;
}

.signpost-circle, .accent-red {
  background: var(--apilage-red);
  color: #ffffff;
}

.folder-circle, .accent-blue {
  background: #38bdf8;
  color: #000000;
}

.highlight-avatar {
  border-color: #000000;
  background: #fef08a;
}

.capsule-icon {
  font-size: 20px;
  line-height: 1;
}

/* Notion Typography Headline */
.hero-title {
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 980px;
}

/* Notion Pill Highlight (Screenshot 1: "🟡 Build") */
.pill-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--pill-bg);
  color: var(--pill-text);
  padding: 0 20px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.pill-highlight:hover {
  transform: scale(1.03);
}

.pill-dot {
  width: 16px;
  height: 16px;
  background-color: var(--pill-dot);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.hero-subtitle {
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 32px auto;
  line-height: 1.48;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ==========================================================================
   HERO DEVICE STAGE & FLOATING STICKERS (Matches Screenshot 1, 2, 4)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 0;
}

.mockup-frame {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
}

.mockup-shadow-glow {
  position: absolute;
  top: 15%;
  left: 10%;
  right: 10%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(234, 57, 67, 0.08) 0%, rgba(0, 117, 235, 0.06) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.macbook-device-container {
  position: relative;
  z-index: 2;
  width: 100%;
  transition: transform 0.3s ease;
}

.macbook-hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.14));
}

/* Floating Badges & Stickers around Hero Mockup */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float-gentle 4s ease-in-out infinite;
  pointer-events: auto;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-gentle-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(1deg); }
}

/* Top Left Badge (Notebook Doodle + Question Bubble) */
.badge-top-left {
  top: 2%;
  left: -2%;
  flex-direction: column;
  align-items: flex-start;
  animation-duration: 4.8s;
}

.sticker-book-wrap {
  position: relative;
  display: inline-block;
}

.sticker-book {
  font-size: 38px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.sticker-check {
  position: absolute;
  bottom: -4px;
  right: -8px;
  background: #10b981;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.doodle-motion-swoop {
  position: absolute;
  top: -12px;
  left: -32px;
  opacity: 0.6;
}

/* Top Right Badge (Purple Check + GitHub + Answer Bubble) */
.badge-top-right {
  top: 6%;
  right: -2%;
  flex-direction: column;
  align-items: flex-end;
  animation: float-gentle-reverse 5.2s ease-in-out infinite;
}

.sparkles-wrap {
  position: absolute;
  top: -14px;
  right: 2px;
  display: flex;
  gap: 4px;
  color: #111111;
  font-size: 14px;
}

.sticker-github-badge {
  position: absolute;
  left: -14px;
  bottom: 0px;
  background: #111111;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid #ffffff;
}

.sticker-purple-check {
  width: 44px;
  height: 44px;
  background: #c084fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-md);
}

/* Bottom Left Badge (Globe + Mail) */
.badge-bottom-left {
  bottom: 22%;
  left: -4%;
  flex-direction: column;
  align-items: flex-start;
  animation-duration: 4.2s;
}

.sticker-globe-wrap {
  position: relative;
}

.sticker-globe {
  font-size: 34px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.sticker-red-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: #ef4444;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.live-status-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
}

/* Bottom Right Badge (Lightbulb + Notification count) */
.badge-bottom-right {
  bottom: 20%;
  right: -4%;
  flex-direction: column;
  align-items: flex-end;
  animation: float-gentle-reverse 4.5s ease-in-out infinite;
}

.sticker-bulb-wrap {
  position: relative;
}

.sticker-bulb {
  font-size: 34px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.sticker-notif-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ea3943;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.floating-agent-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  display: flex;
  gap: 6px;
  font-size: 11px;
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
}

.agent-tag {
  font-weight: 700;
  color: var(--notion-blue);
}

.agent-status {
  color: var(--text-secondary);
}

/* User Speech Bubbles Floating with DiceBear Avatars */
.floating-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  max-width: 250px;
  text-align: left;
  margin-top: 8px;
  backdrop-filter: blur(8px);
}

.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  background: #f8fafc;
}

.bubble-body {
  display: flex;
  flex-direction: column;
}

.bubble-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.bubble-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.25;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Trusted Logos Ticker (Matches Screenshot 1 & 2 bottom ticker) */
.trusted-logos-section {
  margin-top: 48px;
  width: 100%;
}

.trusted-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.logos-ticker-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partner-logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 56px;
  min-width: 140px;
}

.partner-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--border-medium);
}

.partner-logo-img {
  max-height: 38px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

body.theme-dark .partner-logo-item {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
}

.logo-item {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.logo-item:hover {
  color: var(--text-primary);
}

.logo-dot {
  color: var(--border-medium);
  font-size: 12px;
}

.ramp-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cursor-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vercel-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SECTION 2: AI WHERE YOUR TEAM WORKS (Matches Screenshot 3)
   ========================================================================== */
.section-ai-works {
  padding: 80px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

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

.section-title-large {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-sub-large {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
}

/* Split Feature Grid */
.split-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feature-card-clean {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 32px 0 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card-clean:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.feature-card-header {
  margin-bottom: 24px;
}

.category-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.feature-card-headline {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #111111;
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.feature-card-link:hover .arrow-circle {
  transform: translateX(4px);
}

/* Canvas / Mini App Visual in Card (Matches Screenshot 3) */
.feature-preview-canvas {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 24px 24px 0 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mini-app-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
  flex-grow: 1;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.panel-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.panel-tags {
  display: flex;
  gap: 6px;
}

.tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tag-epd {
  background: #f1f5f9;
  color: #334155;
}

.tag-ghost {
  color: var(--text-tertiary);
  border: 1px dashed var(--border-medium);
}

.tag-sync {
  background: #f0fdf4;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Panel Table rows */
.panel-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.table-row-item:hover {
  background-color: var(--bg-secondary);
}

.table-col-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.mini-avatar-pair {
  display: flex;
  margin-left: 4px;
}

.mini-avatar-pair img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid white;
  margin-left: -5px;
}

.table-col-team {
  display: flex;
  gap: 4px;
}

.badge-peach { background: #ffedd5; color: #9a3412; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.badge-lavender { background: #ede9fe; color: #5b21b6; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.badge-sky { background: #e0f2fe; color: #0369a1; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.badge-mint { background: #dcfce7; color: #15803d; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }

/* Audio Waveform Bar */
.audio-waveform-bar {
  margin-top: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.wave-label {
  font-weight: 600;
  color: var(--text-primary);
}

.wave-visual {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.wave-visual .bar {
  width: 3px;
  background: #111111;
  border-radius: 2px;
  animation: wave-bounce 1.2s ease-in-out infinite;
}

body.theme-dark .wave-visual .bar {
  background: #ffffff;
}

.b1 { height: 8px; animation-delay: 0.1s; }
.b2 { height: 14px; animation-delay: 0.3s; }
.b3 { height: 10px; animation-delay: 0.2s; }
.b4 { height: 16px; animation-delay: 0.5s; }
.b5 { height: 12px; animation-delay: 0.1s; }
.b6 { height: 15px; animation-delay: 0.4s; }
.b7 { height: 9px; animation-delay: 0.2s; }
.b8 { height: 13px; animation-delay: 0.3s; }
.b9 { height: 6px; animation-delay: 0.1s; }

@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.wave-time {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Citations & Deal Flow Card (Card 2) */
.citations-source-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.source-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.source-badge.sf { background: #00a1e0; color: white; }
.source-badge.slack { background: #4a154b; color: white; font-weight: 800; font-size: 16px; }
.source-badge.apilage { background: #ffffff; }

.metrics-dashboard-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0 20px 0;
}

.gauge-metric {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 6px solid #10b981;
  border-top-color: transparent;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-circle {
  transform: rotate(-45deg);
  text-align: center;
}

.gauge-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.gauge-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.bar-chart-visual {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 80px;
  flex-grow: 1;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 18px;
  background: #cbd5e1;
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.bar-fill.red-fill {
  background: var(--apilage-red);
}

.bar-fill.green-fill {
  background: #10b981;
}

.bar-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Instant Q&A box inside feature card */
.instant-qa-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.query-prompt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.qa-input-display {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.qa-submit-btn {
  background: var(--notion-blue);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.query-answer-bubble {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.citation-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--notion-blue);
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   SECTION 3: WORKSPACE & GALLERY TABS
   ========================================================================== */
.section-gallery {
  padding: 88px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.pill-badge-red {
  display: inline-block;
  background: var(--apilage-red-soft);
  color: var(--apilage-red);
  border: 1px solid var(--apilage-red-border);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gallery-nav-tabs {
  display: inline-flex;
  background: var(--bg-card);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-tab {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.gallery-tab.active {
  background: var(--text-primary);
  color: var(--text-inverted);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-device);
}

.device-laptop-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.showcase-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.showcase-caption-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.caption-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cap-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.cap-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dual Showcase (Papers & PDFs) */
.dual-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.paper-preview-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}

.rounded-preview {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
}

/* Mobile Triad Grid */
.mobile-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-end;
}

.mobile-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-img {
  max-width: 260px;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s ease;
}

.mobile-phone-col:hover .phone-img {
  transform: translateY(-8px);
}

.featured-phone .phone-img {
  max-width: 280px;
}

/* ==========================================================================
   SECTION 4: TESTIMONIALS (Matches Screenshot 5 - "Trusted by teams that ship.")
   ========================================================================== */
.section-testimonials {
  padding: 88px 0;
  background: var(--bg-primary);
}

.tinted-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.tinted-card {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tinted-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

/* Card 1: Red Tint (Screenshot 5 - Cursor/Dineth) */
.card-red {
  background: linear-gradient(175deg, #a82025 0%, #7d171b 100%);
}

/* Card 2: Deep Blue Tint (Screenshot 5 - Faire/Yeshara) */
.card-blue {
  background: linear-gradient(175deg, #1c4587 0%, #132f5d 100%);
}

/* Card 3: Amber/Golden Tint (Screenshot 5 - Ramp/Dilshan) */
.card-amber {
  background: linear-gradient(175deg, #a66a1e 0%, #734812 100%);
}

.card-brand-header {
  margin-bottom: 32px;
}

.brand-tag-cursor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  opacity: 0.95;
}

.brand-tag-faire {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.35em;
  opacity: 0.95;
}

.brand-tag-ramp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  opacity: 0.95;
}

.card-quote {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 36px;
  flex-grow: 1;
}

.card-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-avatar-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.author-dicebear {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 5: INTERACTIVE LIVE AI DEMO SANDBOX
   ========================================================================== */
.section-demo-sandbox {
  padding: 88px 0;
  background: var(--bg-secondary);
}

.demo-card-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-device);
}

.demo-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 12px 0 16px 0;
  line-height: 1.2;
}

.demo-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.quick-prompts-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-pill {
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.prompt-pill:hover, .prompt-pill.active {
  border-color: var(--notion-blue);
  background: var(--notion-blue-soft);
  color: var(--notion-blue);
}

/* Interactive Chat Box */
.interactive-chat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 480px;
  overflow: hidden;
}

.chat-header-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.mini-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.chat-name {
  font-size: 13.5px;
  font-weight: 700;
  display: block;
}

.chat-status {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.model-badge {
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.chat-messages-container {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-row {
  display: flex;
  gap: 12px;
  max-width: 90%;
}

.user-row {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: #fff;
  flex-shrink: 0;
}

.ai-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--apilage-red);
  padding: 4px;
  flex-shrink: 0;
}

.ai-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
}

.user-bubble {
  background: var(--notion-blue);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.ai-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.citation-strip {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.cit-badge {
  background: var(--notion-blue-soft);
  color: var(--notion-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.reasoning-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12.5px;
}

.reasoning-header {
  font-weight: 700;
  margin-bottom: 6px;
}

.reasoning-box ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-prompt {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-style: italic;
}

.chat-input-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-text-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
}

.btn-chat-send {
  width: 34px;
  height: 34px;
  background: var(--notion-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-chat-send:hover {
  background: var(--notion-blue-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   SECTION 6: PRICING
   ========================================================================== */
.section-pricing {
  padding: 88px 0;
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-featured {
  border: 2px solid var(--notion-blue);
  box-shadow: 0 10px 30px rgba(0, 117, 235, 0.12);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--notion-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  min-height: 40px;
}

.plan-price-wrap {
  margin: 20px 0 24px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-val {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 14px;
  color: var(--text-tertiary);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features .chk {
  color: #10b981;
  font-weight: 800;
}

/* ==========================================================================
   SECTION 7: FAQ ACCORDION
   ========================================================================== */
.section-faq {
  padding: 88px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 20px 24px;
}

/* ==========================================================================
   SECTION 8: FINAL CTA BANNER
   ========================================================================== */
.section-final-cta {
  padding: 88px 0;
  background: var(--bg-primary);
}

.cta-banner-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.orbit-avatar {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  animation: float-gentle 4s ease-in-out infinite;
}

.orbit-avatar:hover {
  transform: scale(1.15) !important;
}

.orbit-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av-1 { top: 12%; left: 8%; animation-delay: 0.2s; }
.av-2 { bottom: 15%; left: 12%; animation-delay: 1.2s; }
.av-3 { top: 14%; right: 9%; animation-delay: 0.7s; }
.av-4 { bottom: 16%; right: 11%; animation-delay: 1.8s; }

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-guarantee {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 24px 0;
}

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

.footer-mission {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 14px 0 20px 0;
  max-width: 280px;
  line-height: 1.5;
}

.footer-social-links {
  display: flex;
  gap: 14px;
  color: var(--text-secondary);
}

.social-icon {
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-label {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.theme-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.theme-btn.active {
  background: var(--text-primary);
  color: var(--text-inverted);
  border-color: var(--text-primary);
}

/* ==========================================================================
   WHAT IT CAN DO — ENHANCED FEATURE SHOWCASE
   ========================================================================== */
.what-it-can-do-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}

.feature-showcase-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-showcase-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.feature-showcase-item.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.feature-showcase-item.reverse .feature-media-col {
  order: 1;
}

.feature-showcase-item.reverse .feature-info-col {
  order: 2;
}

.feature-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.badge-tag-blue {
  background: var(--notion-blue-soft);
  color: var(--notion-blue);
}

.badge-tag-red {
  background: rgba(224, 62, 62, 0.1);
  color: #e03e3e;
}

.badge-tag-amber {
  background: rgba(217, 115, 13, 0.1);
  color: #d9730d;
}

.badge-tag-green {
  background: rgba(15, 157, 88, 0.1);
  color: #0f9d58;
}

.badge-tag-purple {
  background: rgba(144, 56, 195, 0.1);
  color: #9038c3;
}

.feature-info-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.feature-info-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-points-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-point-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.point-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.point-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.point-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.feature-media-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-frame-mockup {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.feature-frame-mockup:hover {
  transform: scale(1.015);
}

.feature-img-display {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.feature-phone-dual {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-card-wrap {
  width: 50%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  background: #000;
}

.phone-card-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   OPEN SOURCE REPO & ARCHIVED PROJECTS
   ========================================================================== */
.github-repo-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  margin-top: 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}

.repo-pill-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.repo-octocat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.repo-title-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.repo-desc-text {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.btn-github-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-github-action:hover {
  background: #2b2b2b;
  color: #ffffff;
  transform: translateY(-1px);
}

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: var(--notion-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-card-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.project-badge-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.project-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-tertiary);
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.lang-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.lang-dot.python { background: #3572A5; }
.lang-dot.js { background: #f1e05a; }
.lang-dot.ts { background: #3178c6; }
.lang-dot.css { background: #563d7c; }
.lang-dot.php { background: #4F5D95; }

/* ==========================================================================
   DONATION & CONTACT OPTIONS
   ========================================================================== */
.donation-coffee-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.08);
}

body.theme-dark .donation-coffee-card {
  background: linear-gradient(135deg, #2b1d0c 0%, #1c140a 100%);
  border-color: #633806;
}

.coffee-card-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.coffee-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.coffee-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.coffee-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

.btn-coffee {
  background: #ea580c;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s ease;
}

.btn-coffee:hover {
  background: #c2410c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.contact-card-channel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-card-channel:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.channel-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.channel-icon.tg {
  background: rgba(0, 136, 204, 0.15);
  color: #0088cc;
}

.channel-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.channel-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.btn-channel-action {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-wa {
  background: #25D366;
  color: #ffffff;
}

.btn-wa:hover {
  background: #1eb857;
  color: #ffffff;
}

.btn-tg {
  background: #0088cc;
  color: #ffffff;
}

.btn-tg:hover {
  background: #0077b3;
  color: #ffffff;
}

.social-channels-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.social-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.social-channel-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.social-channel-item.ig:hover {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.4);
}

.social-channel-item.fb:hover {
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.4);
}

.social-channel-item.in:hover {
  color: #0A66C2;
  border-color: rgba(10, 102, 194, 0.4);
}

.social-item-text {
  display: flex;
  flex-direction: column;
}

.social-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.social-handle {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .split-feature-grid {
    grid-template-columns: 1fr;
  }

  .tinted-cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .demo-card-container {
    grid-template-columns: 1fr;
  }

  .showcase-caption-bar {
    grid-template-columns: 1fr;
  }

  .dual-showcase-grid {
    grid-template-columns: 1fr;
  }

  .mobile-triad-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .feature-showcase-item,
  .feature-showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .feature-showcase-item.reverse .feature-media-col {
    order: 2;
  }

  .feature-showcase-item.reverse .feature-info-col {
    order: 1;
  }

  .projects-archive-grid {
    grid-template-columns: 1fr;
  }

  .donation-coffee-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .coffee-card-left {
    flex-direction: column;
    text-align: center;
  }

  .contact-channels-grid {
    grid-template-columns: 1fr;
  }

  /* Floating badges repositioning for tablets */
  .badge-top-left { left: 2%; }
  .badge-top-right { right: 2%; }
  .badge-bottom-left { display: none; }
  .badge-bottom-right { display: none; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-drawer.open {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-card);
    padding: 24px;
    z-index: 999;
    overflow-y: auto;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-nav-link {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-cta-group {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .capsule-item {
    width: 36px;
    height: 36px;
  }

  .orbit-avatar {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
