/**
 * Supermem Hero Section Styles
 *
 * Light/dark theming based on system preference.
 * Font: Work Sans
 * Design width: 1440px
 */

/* ========================================
   CSS Variables
   ======================================== */

:root {
  /* Light mode (default) */
  --background: #ffffff;
  --foreground: #030712;
  --secondary-foreground: #111827;
  --muted-foreground: #6b7280;
  --sidebar-accent: #f3f4f6;
  --brand-primary: #1a47e8;
  --brand-hover: #1539c0;
  --brand-accent: #e8edfd;
  --brand-background: #fafafa;
  --connector-line: #cbcbcb;
  --border: #e5e7eb;
}

@media (--dark-mode-disabled) {
  :root {
    --background: #171717;
    --foreground: #f9fafb;
    --secondary-foreground: #e5e7eb;
    --muted-foreground: #9ca3af;
    --sidebar-accent: #18181b;
    --brand-accent: #1e293b;
    --brand-background: #18181b;
    --card-accent: #1D252E;
    --connector-line: rgba(255, 255, 255, 0.2);
    --border: #202435;
  }
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Work Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll offset for fixed header (94px header + 20px breathing room) */
section[id] {
  scroll-margin-top: 114px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 146px;
  height: 40px;
  padding: 8px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.42px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background-color: var(--brand-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1539c0;
}

/* ========================================
   Header
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 111px 0;
  height: 94px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 154.5px;
  height: 60px;
  color: var(--foreground);
  text-decoration: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.logo.is-hidden {
  transform: translateY(-30px);
  opacity: 0;
}

.logo svg {
  display: block;
  width: auto;
  height: 42px;
}

/* Hamburger Button (mobile only) */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--sidebar-accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: var(--foreground);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hamburger-btn:hover {
  opacity: 0.7;
}

.hamburger-btn.is-hidden {
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
}


/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

/* Semi-transparent backdrop as pseudo-element */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(107, 114, 128, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu.is-open::before {
  opacity: 1;
}

/* Prevent scroll when menu is open */
html.menu-open,
body.menu-open {
  overflow: clip !important;
  overscroll-behavior: none;
}

/* Hide hamburger button when menu is open */
html.menu-open .hamburger-btn {
  opacity: 0;
  visibility: hidden;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 94px;
  padding: 24px 16px 0;
  box-sizing: border-box;
  opacity: 1;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--sidebar-accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu-close:hover {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--sidebar-accent);
  border-radius: 24px;
  margin: 24px 16px 16px;
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.9px;
  color: #111827;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mobile-menu-link:hover {
  opacity: 0.7;
}

.mobile-menu-link svg {
  width: 16px;
  height: 16px;
  color: #111827;
}

@media (--dark-mode-disabled) {
  .mobile-menu-link {
    color: #f9fafb;
  }

  .mobile-menu-link svg {
    color: #f9fafb;
  }
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  gap: 17px;
}

.mobile-menu-waitlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-waitlist .hero-waitlist-input,
.mobile-menu-waitlist .hero-waitlist-btn {
  width: 100%;
}

@media (--dark-mode-disabled) {
  .mobile-menu::before {
    background-color: rgba(0, 0, 0, 0.6);
  }
}

/* Navigation */
.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav-center.is-hidden {
  transform: translateY(-30px);
  opacity: 0;
}

.nav-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: var(--foreground);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Buttons */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 24px;
  background-color: var(--sidebar-accent);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: var(--foreground);
  text-decoration: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn-secondary.is-hidden {
  transform: translateY(-30px);
  opacity: 0;
}

.btn-secondary:hover {
  opacity: 0.7;
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 24px;
  background: transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: var(--foreground);
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-ghost:hover {
  opacity: 0.7;
}

.btn-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 8px 24px;
  background-color: var(--brand-primary);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-brand:hover {
  background-color: var(--brand-hover);
}

.browser-icons {
  display: flex;
  align-items: center;
}

.browser-icons img {
  width: 20px;
  height: 20px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 900px;
  margin: 0 auto;
  overflow: hidden;
}

/* Visual container */
.hero-visual {
  position: absolute;
  top: 147px;
  left: 0;
  right: 0;
  width: 1440px;
  height: 587px;
  margin: 0 auto;
  overflow: visible;
}

/* White background ellipse - solid white behind content */
.hero-bg-ellipse {
  position: absolute;
  left: 50%;
  top: 223px;
  transform: translateX(-50%);
  width: 944px;
  height: 434px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

@media (--dark-mode-disabled) {
  .hero-bg-ellipse {
    background: radial-gradient(51.38% 50% at 50% 50%, #171717 83.29%, rgba(23, 23, 23, 0) 100%);
  }
}

/* Connector lines */
.connector-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 587px;
  pointer-events: none;
}

.connector-line {
  stroke: var(--connector-line);
  stroke-width: 1.62;
  stroke-linecap: round;
  stroke-dasharray: 8.62 5.39;
}

/* Lit dashes that travel toward center */
.connector-line-lit {
  stroke: #000000;
  stroke-width: 1.62;
  stroke-linecap: round;
  stroke-dasharray: 8.62 5.39;
}

/* Icon tiles */
.icon-tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HuggingFace - white bg */
.icon-huggingface {
  width: 58.212px;
  height: 58.212px;
  background: white;
  border-radius: 12.734px;
  box-shadow: 0px 2.239px 2.239px rgba(0, 0, 0, 0.1);
}

/* MidJourney - white bg */
.icon-midjourney {
  width: 68.987px;
  height: 68.987px;
  background: white;
  border-radius: 15.091px;
  box-shadow:
    0px 44.195px 11.857px rgba(0, 0, 0, 0),
    0px 28.026px 10.779px rgba(0, 0, 0, 0.01),
    0px 16.169px 9.701px rgba(0, 0, 0, 0.05),
    0px 7.545px 7.545px rgba(0, 0, 0, 0.09),
    0px 2.156px 4.312px rgba(0, 0, 0, 0.1);
}

/* Claude - orange starburst icon */
.icon-claude {
  width: 88.034px;
  height: 88.034px;
  background: white;
  border-radius: 19.258px;
  box-shadow:
    0px 2.751px 2.751px rgba(0, 0, 0, 0.1),
    0px 9.629px 4.814px rgba(0, 0, 0, 0.09);
}

/* Doc - blue bg, rotated */
.icon-doc {
  width: 44.045px;
  height: 44.045px;
  transform: rotate(7.056deg);
}

/* Grok - dark bg in light mode, white bg in dark mode */
.icon-grok {
  width: 67.493px;
  height: 67.493px;
  background: var(--foreground);
  border-radius: 14.764px;
  box-shadow:
    0px 43.238px 11.6px rgba(0, 0, 0, 0),
    0px 27.419px 10.546px rgba(0, 0, 0, 0.01),
    0px 15.819px 9.491px rgba(0, 0, 0, 0.05),
    0px 7.382px 7.382px rgba(0, 0, 0, 0.09),
    0px 2.109px 4.218px rgba(0, 0, 0, 0.1);
}

.icon-grok img {
  /* Icon SVG is white, no filter needed on dark background */
}

@media (--dark-mode-disabled) {
  .icon-grok {
    background: white;
  }

  .icon-grok img {
    /* Invert white icon to black for white background */
    filter: invert(1);
  }
}

/* Perplexity - teal bg */
.icon-perplexity {
  width: 61.624px;
  height: 61.624px;
  background: #20808d;
  border-radius: 13.48px;
  box-shadow:
    0px 39.478px 10.592px rgba(0, 0, 0, 0),
    0px 25.035px 9.629px rgba(0, 0, 0, 0.01),
    0px 14.443px 8.666px rgba(0, 0, 0, 0.05),
    0px 6.74px 6.74px rgba(0, 0, 0, 0.09),
    0px 1.926px 3.851px rgba(0, 0, 0, 0.1);
}

/* ChatGPT - white bg in light mode, dark bg in dark mode */
.icon-chatgpt {
  width: 73.362px;
  height: 73.362px;
  background: white;
  border-radius: 16.048px;
  box-shadow:
    0px 46.997px 12.609px rgba(0, 0, 0, 0),
    0px 29.803px 11.463px rgba(0, 0, 0, 0.01),
    0px 17.194px 10.316px rgba(0, 0, 0, 0.05),
    0px 8.024px 8.024px rgba(0, 0, 0, 0.09),
    0px 2.293px 4.585px rgba(0, 0, 0, 0.1);
}

/* ChatGPT icon stays white background with dark logo in dark mode */

/* Hero content */
.hero-content {
  position: absolute;
  z-index: 5;
  top: 280px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 550px;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 56px;
  letter-spacing: -1.68px;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.96px;
  color: var(--foreground);
}

/* Waitlist CTA */
.hero-waitlist {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 448px;
}

.hero-waitlist-input {
  flex: 1;
  height: 56px;
  padding: 4px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: white;
  color: #030712;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.54px;
  outline: none;
  transition: border-color 0.2s;
}

.hero-waitlist-input::placeholder {
  color: #6b7280;
}

.hero-waitlist-input:focus {
  border-color: var(--brand-primary);
}

.hero-waitlist-btn {
  height: 56px;
  padding: 8px 24px;
  border-radius: 16px;
  border: none;
  background-color: var(--brand-primary);
  color: white;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.54px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.hero-waitlist-btn:hover {
  background-color: var(--brand-hover);
}

.waitlist-success {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.48px;
  color: var(--foreground);
}

/* ========================================
   Animations
   ======================================== */

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

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

@keyframes float-doc {
  0%, 100% {
    transform: rotate(7.056deg) translateY(0px);
  }
  50% {
    transform: rotate(7.056deg) translateY(-6px);
  }
}

/* Apply floating animations to icons */
.icon-huggingface {
  animation: float 4s ease-in-out infinite;
  animation-delay: 0s;
}

.icon-midjourney {
  animation: float-slow 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.icon-claude {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

.icon-doc {
  animation: float-doc 4s ease-in-out infinite;
  animation-delay: 0.3s;
}

.icon-grok {
  animation: float-slow 5s ease-in-out infinite;
  animation-delay: 0.7s;
}

.icon-perplexity {
  animation: float 4.2s ease-in-out infinite;
  animation-delay: 1.2s;
}

.icon-chatgpt {
  animation: float-slow 4.8s ease-in-out infinite;
  animation-delay: 0.2s;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: var(--muted-foreground);
  z-index: 5;
}

@media (--dark-mode-disabled) {
  .scroll-indicator {
    bottom: 45px;
  }
}

/* Mobile hero elements - hidden on desktop, shown on mobile */
.hero-mobile-visual,
.hero-mobile-ellipse,
.hero-mobile-icons {
  display: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1440px) {
  .hero-visual {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  header {
    position: absolute;
    padding: 24px 16px 0;
    z-index: 100;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav-center {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    height: 844px;
    min-height: 844px;
    padding-bottom: 0;
    display: block;
    position: relative;
    overflow: hidden;
  }

  .hero-visual {
    display: none;
  }

  .hero-bg-ellipse {
    display: none;
  }

  .hero-content {
    position: absolute;
    top: 290px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 342px;
    padding: 0;
    text-align: center;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hero-waitlist {
    flex-direction: column;
    width: 100%;
  }

  .hero-waitlist-input {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 14px;
  }

  .hero-waitlist-btn {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 40px;
    line-height: 40px;
    letter-spacing: -1.2px;
  }

  .hero-subtitle {
    font-size: 22px;
    line-height: 22px;
  }

  .hero-waitlist {
    width: 100%;
  }

  .scroll-indicator {
    bottom: 24px;
    z-index: 3;
  }

  /* Mobile hero visual (lines only) - lowest layer */
  .hero-mobile-visual {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    height: 844px;
    pointer-events: none;
    z-index: 1;
  }

  /* Mobile ellipse - middle layer */
  .hero-mobile-ellipse {
    display: block;
    position: absolute;
    top: 221px;
    left: calc(50% - 233px);
    width: 466px;
    height: 387px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 2;
  }

  /* Mobile icons container - highest layer (above ellipse) */
  .hero-mobile-icons {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    height: 844px;
    pointer-events: none;
    z-index: 4;
  }

  .mobile-connector-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .mobile-icon-tile {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
  }

  /* Floating animations for mobile icons */
  .mobile-icon-tile--chatgpt {
    animation: float-slow 4.8s ease-in-out infinite;
    animation-delay: 0.2s;
  }

  .mobile-icon-tile--claude {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 1s;
  }

  .mobile-icon-tile--grok {
    animation: float-slow 5s ease-in-out infinite;
    animation-delay: 0.7s;
  }

  .mobile-icon-tile--midjourney {
    animation: float-slow 5s ease-in-out infinite;
    animation-delay: 0.5s;
  }

  .mobile-icon-tile--huggingface {
    animation: float 4s ease-in-out infinite;
    animation-delay: 0s;
  }

  .mobile-icon-tile--perplexity {
    animation: float 4.2s ease-in-out infinite;
    animation-delay: 1.2s;
  }

  /* Icon-specific backgrounds */
  .mobile-icon-tile--grok {
    background: #030712;
  }

  .mobile-icon-tile--perplexity {
    background: #20808d;
  }
}

/* Dark mode for mobile hero */
@media (--dark-mode-disabled) and (max-width: 1024px) {
  .hero-mobile-ellipse {
    background: radial-gradient(51.38% 50% at 50% 50%, #171717 83.29%, rgba(23, 23, 23, 0) 100%);
  }

  /* ChatGPT icon stays white background with dark logo in dark mode */

  .mobile-icon-tile--grok {
    background: #030712;
  }

  .mobile-icon-tile--perplexity {
    background: #20808d;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
    line-height: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
    line-height: 20px;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */

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

/* ========================================
   Problem Statement Section
   ======================================== */

.problem-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 80px;
  gap: 64px;
  background-color: var(--background);
}

.problem-header {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  width: 100%;
}

.problem-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: var(--foreground);
  width: 514px;
  flex-shrink: 0;
}

.problem-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
  width: 484px;
}

.problem-cards {
  display: flex;
  gap: 32px;
  max-width: 1280px;
  width: 100%;
}

.problem-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f5f6fa;
  border-radius: 16px;
  overflow: hidden;
  /* Default: visible (progressive enhancement) */
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply animation start state when JS adds this class */
.problem-card.will-animate {
  opacity: 0;
  transform: translateX(100px);
}

.problem-card.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay for each card */
.problem-card:nth-child(1) {
  transition-delay: 0s;
}

.problem-card:nth-child(2) {
  transition-delay: 0.15s;
}

.problem-card:nth-child(3) {
  transition-delay: 0.3s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .problem-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (--dark-mode-disabled) {
  .problem-card {
    background-color: #212325;
  }
}

.problem-card-image {
  height: 378px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.problem-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.problem-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.72px;
  color: var(--foreground);
}

.problem-card-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
}

/* Middle card - Context scattered illustration */
.problem-card-image--scattered img {
  max-width: none;
  max-height: none;
  object-fit: unset;
}

.problem-card-image--scattered .scattered-bg {
  position: absolute;
  top: calc(50% + 20px);
  left: calc(50% + 17px);
  transform: translate(-50%, -50%);
  width: 494px;
  height: 487px;
}

.problem-card-image--scattered .scattered-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  z-index: 1;
}

.scattered-badge {
  position: absolute;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scattered-badge img {
  width: 48px;
  height: 48px;
}

.scattered-icon--chatgpt {
  left: 42%;
  top: 26%;
}

.scattered-icon--grok {
  left: 15%;
  top: 53%;
  transform: rotate(6.66deg);
  filter: invert(1);
}

@media (--dark-mode-disabled) {
  .scattered-icon--grok {
    filter: invert(1);
  }
}

.scattered-icon--claude {
  left: 71%;
  top: 53%;
}

/* Legacy badge styles (unused) */
.context-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  width: 100%;
  height: 100%;
}

.badge-row {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: var(--background);
  padding: 16px;
  border-radius: 12px;
  flex: 1;
}

.badge-row-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.badge-row-icon img {
  width: 100%;
  height: 100%;
}

.badge-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.badge-tag {
  display: flex;
  align-items: center;
  gap: 4.8px;
  padding: 2.4px 9.6px;
  background-color: var(--sidebar-accent);
  border-radius: 9.6px;
  height: 24px;
}

.badge-tag-icon {
  width: 14.4px;
  height: 14.4px;
}

.badge-tag-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.26px;
  color: var(--foreground);
  white-space: nowrap;
}

/* Light mode: invert Grok icon (white SVG) */
.badge-row-icon img[src*="grok"] {
  filter: invert(1);
}

/* Dark mode: invert ChatGPT icon, keep Grok as-is */
@media (--dark-mode-disabled) {
  .badge-row-icon img[src*="chatgpt"] {
    filter: invert(1);
  }

  .badge-row-icon img[src*="grok"] {
    filter: none;
  }
}

/* Problem section responsive */
@media (max-width: 1024px) {
  .problem-section {
    padding: 64px 24px;
    gap: 48px;
  }

  .problem-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .problem-title {
    width: 100%;
    font-size: 36px;
  }

  .problem-description {
    width: 100%;
  }

  .problem-cards {
    flex-direction: column;
  }

  .problem-card-image--scattered .scattered-bg {
    width: 110%;
    height: auto;
    top: 55%;
    left: 52%;
  }

  .problem-card-image--scattered .scattered-icon {
    width: 32px;
    height: 32px;
  }

  .problem-card-image--scattered .scattered-badge {
    width: 38px;
    height: 38px;
  }

  .problem-card-image--scattered .scattered-badge img {
    width: 34px;
    height: 34px;
  }

  .scattered-icon--chatgpt {
    left: 41%;
    top: 28%;
  }

  .scattered-icon--grok {
    left: 14%;
    top: 52%;
  }

  .scattered-icon--claude {
    left: 72%;
    top: 50%;
  }
}

/* ========================================
   Features Section (Why supermem?)
   ======================================== */

.features-section {
  position: relative;
  z-index: 5;
  padding: 96px 80px;
  background-color: var(--background);
  /* Note: overflow: hidden breaks position: sticky, use clip instead */
  overflow: clip;
}

/* Background layers for features section */
.features-bg {
  position: absolute;
  top: 85vh; /* Start slightly above the cards area for gradient fade */
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: url('assets/features-bg-shapes.svg');
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
}

/* Dark mode background */
@media (--dark-mode-disabled) {
  .features-bg {
    background-image: url('assets/features-bg-shapes-dark.svg');
  }
}

/* Features content wrapper */
.features-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

/* Header wrapper provides scroll runway */
.features-header-wrapper {
  position: relative;
  height: 100vh;
}

.features-header {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Cards container */
.features-cards {
  position: relative;
  padding-bottom: 64px;
}

/* Spacer provides scroll runway between cards */
.feature-card-spacer {
  height: 60vh; /* Scroll distance before next card appears */
  pointer-events: none;
}

.features-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.16px;
  color: var(--foreground);
}

.features-subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: var(--secondary-foreground);
}

/* Feature card - sticky stacking */
.feature-card {
  position: sticky;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px 0 32px 64px;
  background-color: var(--background);
  border-radius: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (--dark-mode-disabled) {
  .feature-card {
    background-color: #28292a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .feature-icon {
    background-color: #26295e;
  }
}

/* Staggered sticky positions for stacking effect */
/* Cards are at positions 1, 3, 5, 7 (spacers at 2, 4, 6) */
.features-cards > .feature-card:nth-child(1) {
  top: 140px;
  z-index: 1;
}

.features-cards > .feature-card:nth-child(3) {
  top: 160px;
  z-index: 2;
}

.features-cards > .feature-card:nth-child(5) {
  top: 180px;
  z-index: 3;
}

.features-cards > .feature-card:nth-child(7) {
  top: 200px;
  z-index: 4;
}

/* Reverse layout for middle card */
.feature-card--reversed {
  flex-direction: row-reverse;
  padding: 32px 64px 32px 0;
}

.feature-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-card-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-background);
  border-radius: 9999px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.feature-card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.9px;
  color: var(--foreground);
}

.feature-card-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
}

/* Check items list */
.feature-check-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.feature-check-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--brand-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-check-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--secondary-foreground);
}

/* Feature card illustration */
.feature-card-illustration {
  width: 686px;
  height: 462px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Feature card images — composites already include framing/shadow */
.feature-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card-img--right {
  object-position: left center;
}

.feature-card-img--left {
  object-position: right center;
}

/* Dark mode feature card overrides */
@media (--dark-mode-disabled) {
  /* Adjust feature card shadow for dark mode */
  .feature-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

/* Features section responsive */
@media (max-width: 1024px) {
  .features-section {
    padding: 64px 24px;
  }

  .features-header-wrapper {
    height: auto;
    margin-top: 0;
    margin-bottom: 48px;
  }

  .features-header {
    position: relative;
    top: auto;
    transform: none;
  }

  .features-title {
    font-size: 48px;
  }

  .features-subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  /* Hide spacers on mobile - no sticky stacking */
  .feature-card-spacer {
    display: none;
  }

  /* Remove sticky, use slide-in animation on mobile */
  .feature-card {
    position: relative;
    flex-direction: column;
    padding: 32px 24px;
    /* Animation defaults - visible by default (progressive enhancement) */
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  /* Override sticky top positions on mobile */
  .features-cards > .feature-card:nth-child(1),
  .features-cards > .feature-card:nth-child(3),
  .features-cards > .feature-card:nth-child(5),
  .features-cards > .feature-card:nth-child(7) {
    top: auto;
  }

  /* Animation start state - only when JS adds this class */
  .feature-card.will-animate {
    opacity: 0;
    transform: translateX(100px);
  }

  .feature-card.animate-in {
    opacity: 1;
    transform: translateX(0);
  }

  .feature-card--reversed {
    flex-direction: column;
    padding: 32px 24px;
  }

  /* Add gap between cards since spacers are hidden */
  .features-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .feature-card-illustration {
    width: 100%;
    height: auto;
    aspect-ratio: 686 / 462;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .features-header-wrapper {
    height: auto;
  }

  .features-header {
    position: relative;
    top: auto;
    transform: none;
    transition: none;
  }

  .feature-card-spacer {
    display: none;
  }

  .feature-card {
    position: relative;
    top: auto !important;
  }
}

/* ========================================
   Stats Section
   ======================================== */

.stats-section {
  position: relative;
  z-index: 10;
  background-color: var(--background);
  padding: 128px 80px 48px;
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Stats row */
.stats-row {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-number {
  font-size: 48px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: var(--foreground);
}

.stat-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
}

.stat-separator {
  width: 1px;
  align-self: stretch;
  background-color: var(--connector-line);
}

/* Stats headline */
.stats-headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: var(--foreground);
}

.stats-highlight {
  color: var(--brand-primary);
}

/* Benefits row */
.stats-benefits {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.benefit-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
}

.benefit-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.6px;
  color: var(--foreground);
}

.benefit-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
}

/* Stats section responsive */
@media (max-width: 1024px) {
  .stats-section {
    padding: 64px 24px 32px;
  }

  .stats-row {
    flex-direction: column;
    gap: 32px;
  }

  .stat-separator {
    width: 100%;
    height: 1px;
  }

  .stats-headline {
    font-size: 32px;
    line-height: 40px;
  }

  .stats-benefits {
    flex-direction: column;
    gap: 40px;
  }
}

/* ========================================
   Security Section
   ======================================== */

.security-section {
  position: relative;
  z-index: 10;
  background-color: var(--background);
  padding: 96px 80px;
}

.security-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Dark security card */
.security-card {
  background-color: #030712;
  border-radius: 24px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  transform-origin: center top;
  will-change: transform;
}

.security-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.security-badge svg {
  width: 20px;
  height: 20px;
  color: #8aa4ff;
}

.security-badge span {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: #8aa4ff;
}

.security-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: #fafafa;
}

.security-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: #fafafa;
  max-width: 672px;
}

/* Security features row */
.security-features {
  display: flex;
  gap: 48px;
}

.security-feature {
  flex: 1;
  display: flex;
  gap: 24px;
}

.security-feature-separator {
  width: 2px;
  background: linear-gradient(180deg, #8aa4ff 0%, rgba(138, 164, 255, 0.2) 100%);
  border-radius: 1px;
  flex-shrink: 0;
}

.security-feature-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-feature-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.54px;
  color: #fafafa;
}

.security-feature-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: #fafafa;
  opacity: 0.8;
}

/* Compliance badges */
.security-compliance {
  display: flex;
  align-items: center;
  gap: 48px;
}

.compliance-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compliance-badge-circle {
  width: 54px;
  height: 54px;
  border: 1px solid #fafafa;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.compliance-badge-stars {
  font-size: 6px;
  color: #fafafa;
  letter-spacing: 2px;
}

.compliance-badge-text {
  font-size: 12px;
  font-weight: 600;
  color: #fafafa;
  text-align: center;
  letter-spacing: -0.36px;
}

.compliance-badge-label {
  font-size: 12px;
  font-weight: 600;
  color: #fafafa;
  text-align: center;
  letter-spacing: -0.36px;
  line-height: 1;
}

.compliance-badge-sublabel {
  font-size: 7px;
  font-weight: 700;
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: -0.28px;
}

.compliance-badge--iso img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.compliance-badge--hipaa .compliance-badge-circle {
  position: relative;
}

.compliance-hipaa-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: absolute;
  top: 2px;
}

.compliance-badge--hipaa .compliance-badge-label,
.compliance-badge--hipaa .compliance-badge-sublabel {
  position: relative;
  top: 10px;
}

.compliance-separator {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Security controls (light section) */
.security-controls {
  display: flex;
  gap: 80px;
  padding: 56px 64px 0;
}

.security-control {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-control-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-control-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--brand-primary);
}

.security-control-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-control-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.6px;
  color: var(--foreground);
}

.security-control-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
}

/* Security section responsive */
@media (max-width: 1024px) {
  .security-section {
    padding: 64px 24px;
  }

  .security-card {
    padding: 32px 24px;
    gap: 48px;
  }

  .security-title {
    font-size: 32px;
    line-height: 40px;
  }

  .security-features {
    flex-direction: column;
    gap: 32px;
  }

  .security-compliance {
    display: flex;
    justify-content: flex-start;
  }

  .compliance-separator {
    display: none;
  }

  .security-controls {
    flex-direction: column;
    gap: 40px;
    padding: 40px 0 0;
  }
}

/* Security section dark mode */
@media (--dark-mode-disabled) {
  .security-card {
    background-color: #212325;
  }
}

/* ========================================
   Integrations Section
   ======================================== */

.integrations-section {
  position: relative;
  z-index: 10;
  background-color: #f5f6fa;
  padding: 96px 80px;
}

.integrations-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.integrations-content {
  flex: 1;
  max-width: 768px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.integrations-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integrations-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.integrations-badge svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
}

.integrations-badge span {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--brand-primary);
}

.integrations-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: var(--foreground);
  max-width: 443px;
}

.integrations-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
  max-width: 612px;
}

/* Integration icons grid */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 331px;
}

.integration-icon-wrap {
  width: 88px;
  height: 88px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.integration-icon-wrap img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Slack icon is smaller per Figma (9.38% inset = ~65px) */
.integration-icon-wrap--slack img {
  width: 65px;
  height: 65px;
}

.integration-icon-wrap--more {
  background-color: white;
}

.integration-icon-wrap--more span {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.72px;
  color: #000;
  opacity: 0.8;
}

/* Integrations dark mode */
@media (--dark-mode-disabled) {
  .integrations-section {
    background-color: #212325;
  }

  .integrations-title {
    color: var(--foreground);
  }

  .integrations-description {
    color: var(--secondary-foreground);
  }

  /* Keep icon wraps white in dark mode */
  .integration-icon-wrap {
    background-color: white;
  }

  .integration-icon-wrap--more span {
    color: #000;
  }
}

/* Integrations responsive */
@media (max-width: 1024px) {
  .integrations-section {
    padding: 64px 24px;
  }

  .integrations-container {
    flex-direction: column;
    gap: 48px;
  }

  .integrations-content {
    text-align: left;
    align-items: flex-start;
  }

  .integrations-title {
    font-size: 32px;
    line-height: 40px;
    max-width: 100%;
  }

  .integrations-grid {
    max-width: 100%;
    grid-template-columns: repeat(3, 88px);
    justify-content: flex-start;
    gap: 16px;
  }

  .integrations-description br {
    display: none;
  }
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
  background-color: var(--background);
  padding: 96px 80px 56px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-title {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: var(--foreground);
  margin: 0;
  text-align: left;
}

.faq-columns {
  display: flex;
  gap: 64px;
  width: 100%;
}

.faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 104px;
}

.faq-question {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.6px;
  color: var(--foreground);
  transition: color 0.2s ease;
  min-height: 48px;
  flex: 1;
}

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

/* Plus/minus icon */
.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-icon-horizontal,
.faq-icon-vertical {
  position: absolute;
  background-color: #1d252e;
  transition: transform 0.3s ease;
}

.faq-icon-horizontal {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon-vertical {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Rotate vertical bar to create minus when open */
.faq-item.is-open .faq-icon-vertical {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* FAQ content */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-content {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-content p {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
  margin: 0;
  max-width: 576px;
}

/* FAQ dark mode */
@media (--dark-mode-disabled) {
  .faq-section {
    background-color: var(--background);
  }

  .faq-icon-horizontal,
  .faq-icon-vertical {
    background-color: white;
  }
}

/* FAQ show all button - hidden by default */
.faq-show-all {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: var(--sidebar-accent);
  color: var(--foreground);
  border: none;
  border-radius: 12px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.faq-show-all:hover {
  opacity: 0.8;
}

/* FAQ responsive */
@media (max-width: 1024px) {
  .faq-section {
    padding: 64px 24px 40px;
  }

  .faq-container {
    gap: 48px;
  }

  .faq-title {
    font-size: 32px;
    line-height: 40px;
  }

  .faq-columns {
    flex-direction: column;
    gap: 0;
  }

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

  .faq-trigger {
    min-height: 80px;
  }

  .faq-question {
    font-size: 18px;
    line-height: 26px;
  }

  /* Hide FAQ items after the 5th on mobile */
  .faq-column:first-child .faq-item:nth-child(n+6),
  .faq-column:last-child .faq-item {
    display: none;
  }

  /* Show all items when expanded */
  .faq-columns.is-expanded .faq-column:first-child .faq-item:nth-child(n+6),
  .faq-columns.is-expanded .faq-column:last-child .faq-item {
    display: block;
  }

  /* Show all questions button */
  .faq-show-all {
    display: flex !important;
    margin-top: 24px;
  }

  /* Hide button when expanded */
  .faq-columns.is-expanded + .faq-show-all {
    display: none !important;
  }
}

/* ========================================
   Newsletter Section
   ======================================== */

.newsletter-section {
  background-color: var(--background);
  padding: 96px 80px;
  width: 100%;
}

.newsletter-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.newsletter-title {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: var(--foreground);
  margin: 0;
}

.newsletter-description {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--secondary-foreground);
  margin: 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter-input {
  box-sizing: border-box;
  width: 354px;
  height: 64px;
  padding: 4px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background-color: var(--background);
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: var(--foreground);
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.newsletter-button {
  height: 64px;
  padding: 8px 32px;
  background-color: var(--brand-primary);
  border: none;
  border-radius: 16px;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.newsletter-button:hover {
  background-color: var(--brand-hover);
}

/* Newsletter dark mode */
@media (--dark-mode-disabled) {
  .newsletter-section {
    background-color: var(--background);
  }

  .newsletter-input {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--foreground);
  }
}

/* Newsletter responsive */
@media (max-width: 1024px) {
  .newsletter-section {
    padding: 64px 24px;
  }

  .newsletter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .newsletter-content {
    gap: 16px;
  }

  .newsletter-title {
    font-size: 32px;
    line-height: 40px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-input {
    width: 100%;
  }

  .newsletter-button {
    width: 100%;
  }
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--brand-primary);
  position: relative;
  overflow: hidden;
}

.footer-bg-pattern {
  position: absolute;
  top: -82px;
  left: 0;
  width: 100%;
  height: 1029px;
  pointer-events: none;
}

.footer-bg-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer CTA */
.footer-cta {
  position: relative;
  padding: 224px 120px 64px;
  display: flex;
  justify-content: center;
}

.footer-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 812px;
  text-align: center;
}

.footer-cta-title {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.44px;
  color: white;
  margin: 0 0 16px 0;
}

.footer-cta-description {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: white;
  margin: 0 0 32px 0;
  max-width: 600px;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 8px 20px 8px 16px;
  white-space: nowrap;
  background-color: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.17),
              0px 14px 14px rgba(0, 0, 0, 0.15),
              0px 32px 19px rgba(0, 0, 0, 0.09),
              0px 57px 23px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2),
              0px 18px 18px rgba(0, 0, 0, 0.18),
              0px 36px 22px rgba(0, 0, 0, 0.12),
              0px 60px 26px rgba(0, 0, 0, 0.05);
}

.footer-cta-button span:last-child {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--brand-primary);
}

/* Footer Links */
.footer-links {
  position: relative;
  padding: 32px 120px 96px;
}

.footer-links-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  width: 164.8px;
  height: 64px;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: white;
}

.footer-right {
  display: flex;
  gap: 120px;
}

.footer-spacer {
  display: none;
}

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

.footer-column-title {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: white;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: white;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.8;
}

.social-link svg {
  width: 100%;
  height: 100%;
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-cta {
    padding: 120px 24px 48px;
  }

  .footer-cta-title {
    font-size: 32px;
    line-height: 40px;
  }

  .footer-cta-description {
    font-size: 16px;
    line-height: 24px;
  }

  .footer-cta-description br {
    display: none;
  }

  .footer-cta-button {
    flex-shrink: 0;
  }

  .footer-cta-button span:last-child {
    flex: none;
  }

  .footer-links {
    padding: 24px 24px 64px;
  }

  .footer-links-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-right {
    flex-direction: column;
    gap: 40px;
    order: -1;
  }

  /* Reorder footer columns: Communities first, Other second */
  .footer-right .footer-column:last-child {
    order: -1;
  }

  .footer-brand {
    order: 1;
  }
}

/* ========================================
   Floating CTA Button
   ======================================== */

.floating-cta {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
}

.floating-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.floating-cta.is-docked {
  position: absolute;
  bottom: auto;
}

.floating-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 28px;
  background-color: var(--brand-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.17),
              0px 14px 14px rgba(0, 0, 0, 0.15),
              0px 32px 19px rgba(0, 0, 0, 0.09),
              0px 57px 23px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.floating-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2),
              0px 18px 18px rgba(0, 0, 0, 0.18),
              0px 36px 22px rgba(0, 0, 0, 0.12),
              0px 60px 26px rgba(0, 0, 0, 0.05);
}

/* Inverted state for footer */
.floating-cta.is-inverted .floating-cta-button {
  background-color: white;
  color: var(--brand-primary);
}

/* ========================================
   Focus States
   ======================================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ========================================
   Selection
   ======================================== */

::selection {
  background-color: rgba(26, 71, 232, 0.2);
  color: var(--foreground);
}
