/* ================================================================
   PAGIQ - DESIGN SYSTEM & TOKENS
   Inspired by Notion, Linear, Arc & Apple
   Simple. Powerful. Private. Intelligent.
   ================================================================ */

:root {
  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Light Theme Palette (Default) */
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-tint: #F1F5F9;
  --bg-pill: #EFF6FF;

  --text: #0F172A;
  --text-dark: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-focus: #2563EB;

  /* Brand Accents */
  --primary: #2563EB;
  --brand-primary: #2563EB;
  --brand-secondary: #3B82F6;
  --brand-light: #EFF6FF;
  --brand-glow: rgba(37, 99, 235, 0.16);

  /* Status / Accents */
  --accent-green: #059669;
  --accent-green-bg: #ECFDF5;
  --accent-amber: #D97706;
  --accent-amber-bg: #FEF3C7;
  --accent-purple: #9333EA;
  --accent-purple-bg: #F3E8FF;
  --accent-red: #DC2626;
  --accent-red-bg: #FEE2E2;

  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-floating-bg: rgba(255, 255, 255, 0.82);
  --nav-floating-bg-scrolled: rgba(255, 255, 255, 0.94);
  --nav-floating-border: rgba(15, 23, 42, 0.08);
  --nav-floating-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --nav-link-hover-bg: rgba(15, 23, 42, 0.05);

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-mockup: 0 30px 60px -15px rgba(37, 99, 235, 0.18), 0 16px 32px -10px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Support */
html.dark {
  --bg: #0A0D14;
  --bg-subtle: #0F131C;
  --bg-card: #141A26;
  --bg-card-hover: #1A2232;
  --bg-tint: #111622;
  --bg-pill: #1E293B;

  --text: #F8FAFC;
  --text-dark: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #3B82F6;

  --primary: #3B82F6;
  --brand-primary: #3B82F6;
  --brand-secondary: #60A5FA;
  --brand-light: rgba(59, 130, 246, 0.12);
  --brand-glow: rgba(59, 130, 246, 0.25);

  --nav-bg: rgba(10, 13, 20, 0.85);
  --nav-floating-bg: rgba(14, 18, 28, 0.78);
  --nav-floating-bg-scrolled: rgba(14, 18, 28, 0.92);
  --nav-floating-border: rgba(255, 255, 255, 0.10);
  --nav-floating-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.65), 0 4px 14px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --nav-link-hover-bg: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
  --shadow-mockup: 0 35px 70px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.15);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ================================================================
   CONTAINER & SECTION COMMONS
   ================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-tint {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

/* Section Header */
.section-header {
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-badge.badge-ai {
  background: rgba(147, 51, 234, 0.08);
  color: var(--accent-purple);
  border-color: rgba(147, 51, 234, 0.2);
}

.section-badge.badge-resume {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.section-badge.badge-security {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
}

.section-badge.badge-scanner {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.section-badge.badge-privacy {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.75rem;
  }

  .section-subheading {
    font-size: 1.15rem;
  }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-color: #1D4ED8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-card);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ================================================================
   NAVBAR (MODERN FLOATING & ROUNDED CAPSULE)
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px 0;
  background: transparent;
  pointer-events: none;
  transition: padding var(--transition-normal);
}

.navbar.scrolled {
  padding: 10px 24px 0;
}

.navbar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  height: 62px;
  padding: 0 10px 0 18px;
  background: var(--nav-floating-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--nav-floating-border);
  border-radius: var(--radius-full);
  box-shadow: var(--nav-floating-shadow);
  transition: height var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled .navbar-inner {
  height: 56px;
  background: var(--nav-floating-bg-scrolled);
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html.dark .navbar.scrolled .navbar-inner {
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.75), 0 6px 18px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img,
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
  transition: transform var(--transition-normal);
}

.logo:hover .logo-img,
.logo:hover .logo-icon {
  transform: rotate(-4deg) scale(1.06);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.nav-links li {
  display: inline-flex;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--nav-link-hover-bg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  transform: scale(1.05);
}

.theme-toggle .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle:hover .icon {
  transform: rotate(20deg);
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hamburger:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

@media (min-width: 960px) {
  .hamburger {
    display: none;
  }
}

.hamburger .icon {
  width: 18px;
  height: 18px;
}

/* Mobile Navigation Drawer (Side Panel above Header) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-card);
  z-index: 2010;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.25);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.open {
  transform: translate3d(0, 0, 0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.drawer-links a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 16px;
}

/* ================================================================
   1 & 2. HERO SECTION
   ================================================================ */
.hero {
  padding-top: 130px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  contain: paint layout;
  transform: translateZ(0);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.glow-orb-1 {
  width: 600px;
  height: 450px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(59, 130, 246, 0.05) 70%, transparent 100%);
}

.glow-orb-2 {
  width: 400px;
  height: 300px;
  top: 150px;
  left: 60%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
}

html.dark .hero-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.badge-icon-img {
  border-radius: 4px;
}

.badge-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.badge-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Hero Title & Pill */
.hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 1000px;
  margin-inline: auto;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;

  text-align: center;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.25rem;
    max-width: 920px;
  }
}

.hero-pill,
.hero-pill *,
#heroPillText {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-line--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#heroPillText {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-pill {
  display: inline-flex;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-start;
  vertical-align: middle;
  transform-origin: left center;

  position: relative;
  top: -0.04em;

  gap: 0.28em;

  /* Optically centered padding for font metrics */
  padding: 0.06em 0.38em 0.16em 0.34em;

  border-radius: 9999px;

  background: #0F172A;
  color: #FFFFFF;

  border: 1px solid rgba(255, 255, 255, 0.10);

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 6px 18px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  line-height: 1;
  font-size: 0.86em;
  font-weight: 700;
  letter-spacing: -0.025em;

  white-space: nowrap;
  flex-shrink: 0;

  overflow: hidden;
  isolation: isolate;

  transform: translateZ(0);
  will-change: width, transform, opacity;

  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.hero-pill:hover {
  transform: translateY(-1px);

  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.10),
    0 10px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.14) 52%, transparent 68%);
  transform: translateX(-120%);
  animation: pillShine 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.9), 0 0 18px rgba(0, 229, 255, 0.45);
  position: relative;
  top: 0.04em;
  flex-shrink: 0;
  align-self: center;
  z-index: 1;
}

.hero-pill-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.32);
  animation: pillDotRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes pillDotRing {
  0% {
    transform: scale(0.65);
    opacity: 1;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes pillShine {

  0%,
  65% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

#heroPillText {
  position: relative;
  z-index: 1;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease;
}

.hero-line {
  display: block;
  line-height: 1.05;
}

.hero-title br {
  display: none;
}

.hero-line--pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  margin-top: 0.06em;
  line-height: 1.1;
}

.hero-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  justify-content: flex-start;
  vertical-align: middle;
}

.hero-in-one {
  flex: 0 0 100%;
  text-align: center;
  margin-top: 0.06em;
  line-height: 1.05;
}

html.dark .hero-pill {
  background: #F8FAFC;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

html.dark .hero-pill::before {
  background: linear-gradient(105deg, transparent 35%, rgba(15, 23, 42, 0.04) 48%, rgba(15, 23, 42, 0.07) 52%, transparent 68%);
}

html.dark .hero-pill-dot {
  background: #2563EB;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.65), 0 0 16px rgba(37, 99, 235, 0.35);
}

html.dark .hero-pill-dot::after {
  border-color: rgba(37, 99, 235, 0.22);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Feature Badge Row (7 circular badges) */
.hero-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .hero-badges-row {
    gap: 28px;
  }
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast);
}

.hero-feature-item:hover {
  transform: translateY(-3px);
}

.hero-feature-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.hero-feature-item:hover .hero-feature-circle {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.hero-feature-circle svg {
  width: 22px;
  height: 22px;
}

.hero-feature-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Hero Actions & Store Badges */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
}

.cta-button-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.store-badge-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.store-badge-pill:hover {
  background-color: #1E293B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.store-badge-pill.light {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.1);
}

.store-badge-pill.light:hover {
  background-color: #F8FAFC;
  transform: translateY(-1px);
}

.store-svg {
  width: 22px;
  height: 22px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.store-sub {
  font-size: 0.65rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-main {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ================================================================
   CENTERPIECE: MOBILE PHONE UI MOCKUP
   ================================================================ */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Floating Badges Around Phone */
.floating-card {
  position: absolute;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  text-align: left;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: floatCard 4s ease-in-out infinite alternate;
}

html.dark .floating-card {
  background: rgba(20, 26, 38, 0.94);
}

@media (min-width: 960px) {
  .floating-card {
    display: flex;
  }
}

.floating-card-left {
  top: 120px;
  left: 20px;
}

.floating-card-right {
  top: 240px;
  right: 20px;
  animation-delay: -2s;
}

@keyframes floatCard {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, -8px, 0);
  }
}

.floating-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-title {
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text);
}

.floating-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
}

/* Authentic iPhone 15 Pro Frame - Natural Titanium */
.phone-stage {
  position: relative;
  z-index: 5;
  perspective: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateZ(0);
  will-change: transform;
}

.iphone-shell {
  width: min(330px, 100%);
  max-width: 100%;
  height: 680px;
  background: linear-gradient(90deg, #2E323C 0%, #3B404E 7%, #343842 14%, #232730 22%, #1A1D24 50%, #232730 78%, #343842 86%, #3B404E 93%, #2E323C 100%);
  border-radius: 58px;
  padding: 11px;
  position: relative;
  border: 1px solid #0A0C10;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.16),
    0 24px 48px rgba(0, 0, 0, 0.20),
    0 48px 80px -20px rgba(0, 0, 0, 0.32);
  overflow: visible;
}

/* subtle brushed highlight */
.iphone-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 57px;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.07) 50%, transparent 62%);
  pointer-events: none;
  z-index: 1;
}

/* bottom speaker / USB-C / mic - iPhone 15 Pro */
.iphone-shell::after {
  content: "";
  position: absolute;
  bottom: 4.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  background: #0D0F13;
  border-radius: 1.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 480px) {
  .iphone-shell {
    width: min(360px, 100%);
    height: 730px;
  }
}

/* Hardware Buttons - iPhone 15 Pro: Action + Volume + Side */
.iphone-button {
  position: absolute;
  background: linear-gradient(90deg, #2A2E38 0%, #3A3F4B 50%, #2A2E38 100%);
  border: 1px solid #0A0C10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.28);
}

.iphone-button.action {
  left: -3.5px;
  top: 102px;
  width: 3.2px;
  height: 32px;
  border-radius: 1.5px;
}

.iphone-button.vol-up {
  left: -3.5px;
  top: 148px;
  width: 3.5px;
  height: 62px;
  border-radius: 1.5px;
}

.iphone-button.vol-down {
  left: -3.5px;
  top: 218px;
  width: 3.5px;
  height: 62px;
  border-radius: 1.5px;
}

.iphone-button.power {
  right: -3.5px;
  top: 178px;
  width: 3.8px;
  height: 84px;
  border-radius: 1.5px;
}

.iphone-bezel-inner {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 47px;
  padding: 3px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 2px 10px rgba(0, 0, 0, 0.85);
}

.iphone-screen-surface {
  width: 100%;
  height: 100%;
  background: #F8FAFC;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #0F172A;
  text-align: left;
}

.iphone-screen-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 44px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0%, transparent 22%, transparent 78%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 2;
}

html.dark .iphone-screen-surface {
  background: #0B0E17;
  color: #F8FAFC;
}

/* iOS Status Bar - iPhone 15 Pro original */
.mobile-statusbar {
  height: 44px;
  padding: 11px 28px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-feature-settings: "tnum";
  letter-spacing: -0.28px;
  line-height: 1;
  color: #0F172A;
  background: transparent;
  position: relative;
  z-index: 20;
}

html.dark .iphone-screen-surface .mobile-statusbar {
  color: #F8FAFC;
}

.mobile-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  min-width: 38px;
}

.dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 6px rgba(0, 0, 0, 0.38);
  z-index: 5;
}

.island-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1e2e4a 0%, #0a1128 55%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 4px rgba(0, 0, 0, 0.6);
  position: relative;
}

.island-camera::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
}

.island-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.9);
}

.mobile-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-stat {
  width: 17px;
  height: 11px;
  display: block;
}

.battery-pill {
  width: 26px;
  height: 12.5px;
  border: 1px solid currentColor;
  border-radius: 4.2px;
  padding: 1.5px 1.5px 1.5px 1.5px;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0.92;
}

.battery-pill::after {
  content: "";
  position: absolute;
  right: -3.2px;
  top: 3.5px;
  width: 1.6px;
  height: 4.2px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.92;
}

.battery-level {
  width: 76%;
  height: 100%;
  background: currentColor;
  border-radius: 1.8px;
}

/* ================================================================
   MOBILE PHONE APP INTERIOR (Matches Flutter HomeScreen)
   ================================================================ */
.app-header-home {
  padding: 8px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-greeting-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-greeting-time {
  font-size: 0.675rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.app-greeting-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

html.dark .app-greeting-name {
  color: #F8FAFC;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-badge-credits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}

html.dark .app-badge-credits {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.25);
  color: #00E5FF;
}

.app-user-avatar-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  border: 1.5px solid #FFFFFF;
}

html.dark .app-user-avatar-initials {
  border-color: #182030;
}

/* App Scroll Body */
.app-scroll-body {
  flex: 1;
  padding: 0 14px;
  overflow-y: auto;
  scrollbar-width: none;
}

.app-scroll-body::-webkit-scrollbar {
  display: none;
}

/* Section Header Compact */
.app-section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 6px;
}

.app-section-title {
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
}

html.dark .app-section-title {
  color: #F8FAFC;
}

.app-section-link {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563EB;
}

html.dark .app-section-link {
  color: #00E5FF;
}

/* SECTION 1: SCAN CARDS ROW (3 Rectangles) */
.app-scan-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.app-scan-rect-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html.dark .app-scan-rect-card {
  background: #182030;
  border-color: rgba(255, 255, 255, 0.06);
}

.scan-card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.scan-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0F172A;
  text-align: center;
}

html.dark .scan-card-label {
  color: #F8FAFC;
}

/* SECTION 2: QUICK TOOLS SCROLL ROW */
.app-tools-scroll-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.app-tool-squircle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-tool-squircle-box {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
}

html.dark .app-tool-squircle-box {
  background: #182030;
  border-color: rgba(255, 255, 255, 0.06);
}

.app-tool-squircle-box.has-pro {
  position: relative;
}

.tool-mini-pro {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, #00E5FF, #2563EB);
  color: #FFFFFF;
  font-size: 0.45rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0, 229, 255, 0.4);
}

.app-tool-label {
  font-size: 0.575rem;
  font-weight: 600;
  color: #0F172A;
  text-align: center;
  white-space: nowrap;
}

html.dark .app-tool-label {
  color: #F8FAFC;
}

/* SECTION 3: AI PRO BANNER */
.app-ai-pro-card {
  background: #182030;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.08);
  margin-bottom: 8px;
  color: #FFFFFF;
}

.ai-pro-bolt-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.14);
  color: #00E5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-pro-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ai-pro-headline {
  font-family: var(--font-display);
  font-size: 0.725rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

.ai-pro-sub {
  font-size: 0.6rem;
  color: #94A3B8;
  line-height: 1.2;
}

.ai-pro-badge-btn {
  background: #00E5FF;
  color: #070A11;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

/* SECTION 4: RECENT FILES LIST */
.app-recent-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.app-file-card-real {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

html.dark .app-file-card-real {
  background: #182030;
  border-color: rgba(255, 255, 255, 0.06);
}

.file-thumb-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-thumb-box.pdf {
  background: #FEE2E2;
  color: #EF4444;
}

.file-thumb-box.latex {
  background: #EFF6FF;
  color: #2563EB;
}

.file-info-col {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.file-title-real {
  font-size: 0.675rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark .file-title-real {
  color: #F8FAFC;
}

.file-meta-real {
  font-size: 0.575rem;
  color: #64748B;
}

.file-action-pill {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #FEE2E2;
  color: #EF4444;
}

.file-action-pill.green {
  background: #ECFDF5;
  color: #059669;
}

/* Mobile Tab Bar */
.mobile-tabbar {
  height: 52px;
  background: #FFFFFF;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  position: relative;
  z-index: 20;
}

html.dark .mobile-tabbar {
  background: #0F131C;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.575rem;
  font-weight: 600;
  color: #94A3B8;
}

.tab-item.active {
  color: #2563EB;
}

.tab-item-scan {
  position: relative;
  top: -12px;
}

.tab-scan-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  border: 3px solid #FFFFFF;
}

html.dark .tab-scan-fab {
  border-color: #0F131C;
}

.mobile-home-indicator {
  width: 130px;
  height: 4px;
  background: #0F172A;
  border-radius: 99px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

html.dark .mobile-home-indicator {
  background: #FFFFFF;
}

/* ================================================================
   3. TRUST & PRODUCT HIGHLIGHTS
   ================================================================ */
.trust-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.trust-icon-box svg {
  width: 20px;
  height: 20px;
}

.trust-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ================================================================
   4. 4 PILLARS GRID
   ================================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.pillar-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pillar-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.pillar-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.bullet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ================================================================
   5, 6, 8, 10. SPLIT FEATURE SHOWCASE SECTIONS
   ================================================================ */
.feature-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .feature-split-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }

  .feature-split-layout.reverse {
    grid-template-columns: 1fr 1.1fr;
  }

  .feature-split-layout.reverse .feature-split-text {
    order: 2;
  }

  .feature-split-layout.reverse .feature-split-visual {
    order: 1;
  }
}

.feature-split-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .feature-split-title {
    font-size: 2.85rem;
  }
}

.feature-split-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.feature-check-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.feature-check-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-split-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mobile Feature Showcase Frame - iPhone 15 Pro - true replica */
.mobile-showcase-frame {
  width: min(330px, 100%);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(90deg, #2E323C 0%, #3B404E 7%, #343842 14%, #232730 22%, #1A1D24 50%, #232730 78%, #343842 86%, #3B404E 93%, #2E323C 100%);
  border-radius: 54px;
  padding: 10px;
  border: 1px solid #0A0C10;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 16px 36px rgba(0, 0, 0, 0.16),
    0 28px 64px rgba(0, 0, 0, 0.20);
}

@media (min-width: 480px) {
  .mobile-showcase-frame {
    width: min(360px, 100%);
  }
}

.mobile-showcase-frame::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 53px;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.05) 45%, transparent 62%);
  pointer-events: none;
  z-index: 1;
}

.mobile-showcase-frame::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 3.5px;
  background: #0D0F13;
  border-radius: 1.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 3;
}

.mobile-app-window {
  background: #000000;
  border-radius: 44px;
  padding: 3px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 2px 8px rgba(0, 0, 0, 0.85);
  height: 680px;
  min-height: 680px;
}

@media (min-width: 480px) {
  .mobile-app-window {
    height: 730px;
    min-height: 730px;
  }
}

/* inner screen - clips to rounded OLED */
.mobile-app-window>.mobile-statusbar-mini,
.mobile-app-window>.chat-mockup-header,
.mobile-app-window>.chat-stream,
.mobile-app-window>.chat-input-bar,
.mobile-app-window>.resume-mockup-header,
.mobile-app-window>.resume-step-indicator,
.mobile-app-window>.resume-sheet-preview,
.mobile-app-window>.sign-mockup-header,
.mobile-app-window>.sign-doc-sheet,
.mobile-app-window>.camera-viewfinder-screen,
.mobile-app-window>.mobile-statusbar-mini+* {
  position: relative;
  z-index: 1;
}

/* screen surface - first and last child rounded via parent overflow */
.mobile-app-window> :first-child {
  border-top-left-radius: 41px;
  border-top-right-radius: 41px;
  overflow: hidden;
}

.mobile-app-window> :last-child {
  border-bottom-left-radius: 41px;
  border-bottom-right-radius: 41px;
  overflow: hidden;
}

.mobile-app-window::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  background: #0F172A;
  border-radius: 9999px;
  opacity: 0.18;
  z-index: 3;
  pointer-events: none;
}

html.dark .mobile-app-window {
  background: #000000;
}

html.dark .mobile-app-window::after {
  background: #FFFFFF;
  opacity: 0.22;
}

.mobile-statusbar-mini {
  height: 44px;
  padding: 11px 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.22px;
  color: #0F172A;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

html.dark .mobile-statusbar-mini {
  color: #F8FAFC;
}

.mobile-time-mini {
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.dynamic-island-mini {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #000000;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.mobile-status-icons-mini {
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon-stat-mini {
  width: 15px;
  height: 10px;
  display: block;
}

.battery-pill-mini {
  width: 24px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 3.8px;
  padding: 1.2px;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0.92;
}

.battery-pill-mini::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 1.4px;
  height: 3.8px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.92;
}

.battery-level-mini {
  width: 74%;
  height: 100%;
  background: currentColor;
  border-radius: 1.6px;
}

/* AI Chat Screen Mockup */
.chat-mockup-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-doc-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-doc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-doc-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.chat-doc-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.chat-mode-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-primary);
  padding: 3px 8px;
  border-radius: 99px;
}

.chat-stream {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-subtle);
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chat-timestamp {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  text-align: right;
  margin-top: 4px;
}

.chat-bubble-ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.ai-bubble-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ai-extracted-list {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-extracted-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.ai-extracted-list strong {
  color: var(--text);
}

.ai-highlight-callout {
  background: var(--brand-light);
  border-left: 3px solid var(--brand-primary);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 8px;
}

.chat-citation-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.quick-prompts-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.quick-prompt-pill {
  white-space: nowrap;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--bg-card);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 12px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

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

.chat-input-placeholder {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LaTeX Resume Section Styles */
.resume-workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.resume-step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.resume-step-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.resume-step-card p {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.resume-mockup-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}

.resume-score-pill {
  font-size: 0.675rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 2px;
}

.resume-mockup-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.resume-export-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
}

.resume-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.675rem;
  font-weight: 600;
}

.step-pill {
  color: var(--text-muted);
}

.step-pill.done {
  color: #059669;
}

.step-pill.active {
  color: var(--brand-primary);
  font-weight: 700;
}

.resume-sheet-preview {
  padding: 18px;
  background: #FFFFFF;
  color: #0F172A;
  font-family: 'Times New Roman', serif;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

html.dark .resume-sheet-preview {
  background: #0F131C;
  color: #E2E8F0;
}

.resume-name {
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.resume-contact {
  text-align: center;
  font-size: 0.65rem;
  color: #64748B;
  margin-bottom: 12px;
}

.resume-section-divider {
  border-bottom: 1px solid #0F172A;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

html.dark .resume-section-divider {
  border-bottom-color: #94A3B8;
}

.job-line-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 8px;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.ai-bullet-comparison {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  border: 1px solid #E2E8F0;
}

html.dark .ai-bullet-comparison {
  background: #1A2232;
  border-color: rgba(255, 255, 255, 0.08);
}

.bullet-before {
  font-size: 0.7rem;
  color: #64748B;
  text-decoration: line-through;
}

.bullet-tag-sub {
  font-weight: 600;
}

.bullet-after {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.bullet-tag-pro {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #2563EB;
  font-weight: 700;
}

.resume-skills-text {
  font-size: 0.7rem;
  line-height: 1.4;
}

/* ================================================================
   7. COMPRESSION SECTION
   ================================================================ */
.compression-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .compression-showcase-box {
    padding: 24px 16px;
  }
}

.compression-header-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-badge-original,
.stat-badge-compressed {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
}

.stat-val.text-green {
  color: #059669;
}

.stat-arrow-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.reduction-pill {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  background: #ECFDF5;
  color: #059669;
  padding: 4px 12px;
  border-radius: 99px;
}

.compression-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

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

.compression-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.compression-card.compressed-highlight {
  border-color: #059669;
  background: #F0FDF4;
}

html.dark .compression-card.compressed-highlight {
  background: rgba(5, 150, 105, 0.1);
}

.compression-card-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.compression-card-badge.pro {
  color: #059669;
}

.pdf-page-mockup {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

html.dark .pdf-page-mockup {
  background: #141A26;
}

.pdf-doc-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.pdf-doc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
}

.pdf-doc-dot.green {
  background: #10B981;
}

.pdf-doc-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-line {
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
}

html.dark .mock-line {
  background: #242E42;
}

.mock-line.title {
  width: 50%;
  height: 10px;
  background: #CBD5E1;
}

.mock-line.w-90 {
  width: 90%;
}

.mock-line.w-80 {
  width: 80%;
}

.mock-line.w-75 {
  width: 75%;
}

.mock-line.w-60 {
  width: 60%;
}

.mock-image-block {
  height: 60px;
  background: #EFF6FF;
  border: 1px dashed #93C5FD;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #2563EB;
  margin: 6px 0;
}

.mock-image-block.crisp {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #059669;
}

.pdf-file-footer {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-green {
  color: #059669;
}

.compression-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  font-size: 1.25rem;
}

.benefit-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.benefit-item p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ================================================================
   8. SIGNATURES & SECURITY VISUALS
   ================================================================ */
.sign-mockup-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}

.sign-shield-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.sign-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: #ECFDF5;
  color: #059669;
  padding: 3px 8px;
  border-radius: 99px;
}

.sign-doc-sheet {
  padding: 20px;
  background: #FFFFFF;
  color: #0F172A;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

html.dark .sign-doc-sheet {
  background: #141A26;
  color: #F8FAFC;
}

.sign-doc-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sign-doc-body {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.sign-signature-box {
  background: var(--bg-subtle);
  border: 1px dashed var(--brand-primary);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  position: relative;
}

.signature-line-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.drawn-signature-svg {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sig-path {
  width: 160px;
  height: 50px;
}

.sig-timestamp {
  font-size: 0.65rem;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
}

.sign-controls-row {
  display: flex;
  gap: 8px;
}

.sign-control-pill {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.sign-control-pill.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

/* ================================================================
   9. COMPLETE 28+ TOOL CATALOG
   ================================================================ */
.tools-filter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .tools-filter-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
}

.tools-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-tab {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.tool-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tool-tab.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tools-search-box {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.tools-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.tools-search-box input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

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

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

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

.tool-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.tool-catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.tool-catalog-card.hidden {
  display: none !important;
}

.tool-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.tool-card-content {
  flex: 1;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tool-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.tool-cat-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  text-transform: uppercase;
}

.tool-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ================================================================
   10. DOCUMENT SCANNER VIEWPORT
   ================================================================ */
.scanner-workflow-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.scanner-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.scanner-step-pill {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.scanner-arrow {
  color: var(--text-muted);
  font-weight: bold;
}

.camera-viewfinder-screen {
  background: #000000;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.camera-top-bar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.camera-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-mode-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FCD34D;
}

.scanner-viewfinder-target {
  flex: 1;
  margin: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.05);
}

.corner-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #3B82F6;
  border-style: solid;
}

.corner-marker.top-left {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 8px;
}

.corner-marker.top-right {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 8px;
}

.corner-marker.bottom-left {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 8px;
}

.corner-marker.bottom-right {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 8px;
}

.scanned-paper-preview {
  width: 75%;
  height: 75%;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.scan-laser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3B82F6;
  box-shadow: 0 0 12px #3B82F6;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: laserScan 2.5s infinite ease-in-out alternate;
}

@keyframes laserScan {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, 195px, 0);
  }
}

.paper-title-line {
  width: 40%;
  height: 8px;
  background: #94A3B8;
  border-radius: 4px;
  margin-bottom: 12px;
}

.paper-text-line {
  height: 5px;
  background: #CBD5E1;
  border-radius: 3px;
  margin-bottom: 6px;
}

.scanner-guidance-pill {
  position: absolute;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #FFFFFF;
}

.camera-shutter-bar {
  padding: 16px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.camera-gallery-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.thumb-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563EB;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-shutter-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-shutter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
}

.camera-done-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #3B82F6;
}

/* ================================================================
   11. PRIVACY-FIRST GRID
   ================================================================ */
.privacy-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-fast);
}

.privacy-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.privacy-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.privacy-card-icon svg {
  width: 24px;
  height: 24px;
}

.privacy-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.privacy-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ================================================================
   12. FREE VS PRO PRICING
   ================================================================ */
.pricing-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-cards-container {
    grid-template-columns: 1fr 1fr;
  }
}

.price-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-plan-card.pro-card {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-mockup);
}

.pro-ribbon {
  position: absolute;
  top: -12px;
  right: 28px;
  background: #2563EB;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.price-plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pro-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-popular-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: #EFF6FF;
  color: #2563EB;
  padding: 2px 8px;
  border-radius: 99px;
}

.price-plan-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.price-amount-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-cycle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-credits-callout {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 28px;
}

.price-credits-callout.pro-callout {
  background: #EFF6FF;
}

html.dark .price-credits-callout.pro-callout {
  background: rgba(37, 99, 235, 0.15);
}

.credit-pill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.credit-rate-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.price-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.price-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.check-icon.pro-check {
  background: #ECFDF5;
  color: #059669;
}

/* ================================================================
   13. HOW PAGIQ WORKS (3 Steps)
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.step-badge-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.4;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.step-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ================================================================
   14. USE CASES
   ================================================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.use-case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.use-case-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-icon-box svg {
  width: 24px;
  height: 24px;
}

.use-case-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.use-case-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.use-case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.use-case-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.uc-bullet {
  color: #059669;
  font-weight: 800;
}

/* ================================================================
   15. FAQ ACCORDION
   ================================================================ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.active {
  border-color: var(--brand-primary);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 24px;
}

.faq-item.active .faq-content {
  padding-bottom: 24px;
}

.faq-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   16. FINAL CTA
   ================================================================ */
.final-cta-section {
  padding: 80px 0 100px;
}

.final-cta-box {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 70px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.final-cta-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow-circle {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

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

.cta-logo-wrap {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 12px;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.cta-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: block;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .final-cta-title {
    font-size: 3.25rem;
  }
}

.final-cta-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #DBEAFE;
  margin-bottom: 4px;
}

.final-cta-sub {
  font-size: 1rem;
  color: #EFF6FF;
  opacity: 0.9;
  margin-bottom: 36px;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.final-cta-trust-note {
  font-size: 0.8rem;
  color: #BFDBFE;
}

/* ================================================================
   17. FOOTER & LEGAL PAGES COMPATIBILITY
   ================================================================ */
.footer {
  padding: 64px 0 32px;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

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

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-sub-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.footer-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-list a:hover {
  color: var(--brand-primary);
}

.footer-bottom-row {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Legal Pages Footer Layout Compatibility */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

/* Legal Page Content Containers */
.legal-container {
  max-width: 840px;
  margin: 120px auto 80px;
  padding: 0 24px;
}

.legal-container h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-container p.updated {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.legal-container h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  letter-spacing: -0.01em;
}

.legal-container h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-container p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.legal-container ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

.legal-container li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-container a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ================================================================
   18. SMOOTH SCROLL REVEALS & ANIMATIONS
   ================================================================ */
.fade-up {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  will-change: opacity, transform;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.fade-up-d1 {
  transition-delay: 0.06s;
}

.fade-up-d2 {
  transition-delay: 0.12s;
}

.fade-up-d3 {
  transition-delay: 0.18s;
}

.fade-up-d4 {
  transition-delay: 0.24s;
}

.fade-up-d5 {
  transition-delay: 0.30s;
}

.fade-up-d6 {
  transition-delay: 0.36s;
}

/* Offscreen Section Rendering Performance */
#tools,
#faq,
#privacy,
.final-cta-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ================================================================
   19. TOAST NOTIFICATION (App Store Coming Soon)
   ================================================================ */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 90vw;
}

html.dark .toast-notification {
  background: rgba(24, 32, 48, 0.95);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.toast-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.toast-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  color: #FFFFFF;
}

.toast-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #2563EB;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toast-sub {
  font-size: 0.775rem;
  color: #94A3B8;
  line-height: 1.3;
}

.toast-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: #FFFFFF;
}

/* ================================================================
   20. RESPONSIVE LAYOUT SAFEGUARDS
   ================================================================ */

/* Flexible defaults keep nested flex and grid children from forcing
   their parent wider than the viewport. */
main,
section,
.container,
.feature-split-layout,
.feature-split-text,
.feature-split-visual,
.tool-card-content,
.footer-col,
.legal-container {
  min-width: 0;
}

.nav-right,
.cta-button-group,
.store-badge-strip,
.final-cta-buttons {
  min-width: 0;
}

.btn-primary,
.btn-secondary,
.btn-download,
.store-badge-pill {
  max-width: 100%;
  min-width: 0;
}

.btn-primary span,
.btn-secondary span,
.store-badge-text,
.btn-download {
  overflow-wrap: anywhere;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.legal-container p,
.legal-container li,
.legal-container code,
.legal-container a {
  overflow-wrap: anywhere;
}

.legal-container code {
  white-space: normal;
}

.tool-card-top,
.pro-title-wrap,
.price-amount-box {
  min-width: 0;
  flex-wrap: wrap;
}

.tool-card-title,
.price-plan-name,
.faq-trigger span,
.use-case-list li,
.pillar-bullets li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-trigger span {
  flex: 1;
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px 0;
  }

  .navbar.scrolled {
    padding: 8px 16px 0;
  }

  .navbar-inner {
    height: 56px;
    padding: 0 8px 0 14px;
  }

  .navbar.scrolled .navbar-inner {
    height: 52px;
  }
}

/* Extra Small Phones: <= 360px */
@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-title {
    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
  }

  .hero-line--pill {
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
  }

  .hero-feature-item {
    flex: 0 0 calc(33.333% - 8px);
  }

  .hero-feature-circle {
    width: 42px;
    height: 42px;
  }

  .stat-val {
    font-size: 1.5rem;
  }

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

  .iphone-shell {
    width: min(310px, calc(100vw - 24px));
    height: clamp(490px, 165vw, 650px);
  }
}

/* Mobile phones: 320px through 479px */
@media (max-width: 479px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar {
    padding: 8px 12px 0;
  }

  .navbar.scrolled {
    padding: 6px 12px 0;
  }

  .navbar-inner {
    height: 52px;
    padding: 0 6px 0 12px;
  }

  .navbar.scrolled .navbar-inner {
    height: 48px;
  }

  .logo {
    gap: 7px;
    font-size: 1.1rem;
  }

  .logo-img,
  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-right>.btn-primary {
    display: none;
  }

  .theme-toggle,
  .hamburger {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .hero-badge {
    max-width: 100%;
    margin-bottom: 18px;
    padding: 6px 10px;
    gap: 6px;
  }

  .badge-brand,
  .badge-tag {
    font-size: 0.72rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.65rem, 8.5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.18;
    text-wrap: balance;
  }

  .hero-line {
    display: block;
  }

  .hero-line--pill {
    font-size: clamp(1.25rem, 5.2vw, 1.85rem);
    white-space: normal;
    letter-spacing: -0.02em;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    flex-wrap: wrap;
  }

  .hero-in-one {
    flex: 0 0 100%;
    text-align: center;
    white-space: nowrap;
    margin-top: 0.08em;
  }

  .hero-pill {
    gap: 0.32em;
    padding: 0.06em 0.42em 0.16em 0.36em;
    font-size: 0.88em;
    letter-spacing: -0.02em;
    vertical-align: middle;
    top: 0;
    max-width: calc(100vw - 32px);
    justify-content: flex-start;
    align-self: center;
  }

  .hero-pill-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    align-self: center;
    top: 0.04em;
  }

  .hero-pill-dot::after {
    inset: -6px;
  }

  #heroPillText {
    letter-spacing: -0.01em;
  }

  .hero-subtitle {
    max-width: 36rem;
    font-size: 0.98rem;
    margin-bottom: 28px;
  }

  .hero-badges-row {
    width: 100%;
    gap: 16px 14px;
    margin-bottom: 32px;
  }

  .hero-feature-item {
    flex: 0 0 calc(25% - 11px);
  }

  .hero-feature-circle {
    width: 46px;
    height: 46px;
  }

  .hero-feature-label {
    font-size: 0.7rem;
  }

  .cta-button-group,
  .store-badge-strip,
  .final-cta-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cta-button-group>*,
  .store-badge-strip>*,
  .final-cta-buttons>* {
    width: 100%;
  }

  .btn-lg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    width: 100%;
    margin-bottom: 40px;
  }

  .hero-mockup-wrapper {
    max-width: 100%;
  }

  .iphone-shell {
    width: min(360px, calc(100vw - 32px));
    height: clamp(560px, calc(202.7vw - 97.3px), 730px);
    border-radius: clamp(42px, 13vw, 54px);
  }

  .iphone-bezel-inner {
    border-radius: clamp(36px, 11vw, 46px);
  }

  .iphone-screen-surface {
    border-radius: clamp(34px, 10.5vw, 44px);
  }

  .app-badge-credits {
    max-width: 92px;
  }

  .app-badge-credits span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-heading,
  .feature-split-title {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }

  .pillar-card,
  .use-case-card,
  .price-plan-card,
  .step-card {
    padding: 24px 20px;
  }

  .compression-showcase-box {
    border-radius: var(--radius-lg);
  }

  .compression-header-stats {
    gap: 14px;
  }

  .stat-val {
    font-size: 1.8rem;
  }

  .tools-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tools-tabs::-webkit-scrollbar {
    display: none;
  }

  .tool-tab {
    flex: 0 0 auto;
  }

  .tools-search-box {
    max-width: none;
  }

  .faq-trigger {
    padding: 16px;
    font-size: 0.95rem;
  }

  .faq-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .final-cta-section {
    padding: 56px 0 64px;
  }

  .final-cta-box {
    padding: 48px 20px;
    border-radius: var(--radius-lg);
  }

  .final-cta-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .footer {
    padding-top: 48px;
  }

  .footer-links-group {
    gap: 20px;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .legal-container {
    margin-top: 96px;
    margin-bottom: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-container h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .legal-container h2 {
    font-size: 1.3rem;
    margin-top: 32px;
  }

  .highlight-box,
  .notice-box {
    padding: 16px;
  }
}

/* Tablets & Phablets: 480px through 767px */
@media (min-width: 480px) and (max-width: 767px) {
  .nav-right>.btn-primary {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.75rem, 8vw, 3.5rem);
  }

  .iphone-shell {
    width: min(360px, calc(100vw - 48px));
    height: min(730px, calc(202.7vw - 97.3px));
  }

  .cta-button-group,
  .final-cta-buttons {
    flex-direction: row;
  }

  .store-badge-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Medium Tablets: 768px through 959px */
@media (min-width: 768px) and (max-width: 959px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-mockup-wrapper {
    max-width: 760px;
  }

  .floating-card {
    display: none;
  }
}

/* Laptops & Standard Desktops: 960px through 1199px */
@media (min-width: 960px) and (max-width: 1199px) {
  .hero-mockup-wrapper {
    max-width: 820px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
}

/* Large screens: keep reading width and visual scale intentional. */
@media (min-width: 1920px) {
  .container {
    max-width: 1440px;
  }

  .section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero {
    padding-top: 156px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}