/* ==========================================================================
   CestusAI — Apple Premium Design System (Light/Dark Toggle)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Default Dark Mode - Ultra High Contrast */
  --bg: #030509;
  --bg-card: rgba(18, 18, 24, 0.88);
  --bg-card-hover: rgba(28, 28, 38, 0.95);
  --text: #ffffff;
  --text-muted: #b5b5c0;
  --text-dark: #8e8e98;
  --accent-blue: #2997ff;
  --accent-green: #30d158;
  --border: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.32);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-apple: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] {
  /* Premium Light Mode - Ultra High Contrast */
  --bg: #ffffff;
  --bg-card: rgba(245, 245, 250, 0.94);
  --bg-card-hover: rgba(235, 235, 242, 0.98);
  --text: #000000;
  --text-muted: #3a3a3e;
  --text-dark: #636368;
  --accent-blue: #0071e3;
  --accent-green: #28cd41;
  --border: rgba(0, 0, 0, 0.16);
  --border-hover: rgba(0, 0, 0, 0.32);
}


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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  transition: background-color 0.5s ease, color 0.5s ease;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Animated Scenery Background Canvas */
#sceneryCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

[data-theme="light"] #sceneryCanvas {
  opacity: 0.45;
}


/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #ccc;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-apple);
}

[data-theme="light"] #navbar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 400;
}

.logo-img {
  height: 20px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav-cta {
  font-size: 11px;
  background: var(--text);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  transition: var(--transition-apple);
}

.nav-cta:hover {
  background: #ffffff;
  transform: scale(1.02);
}

[data-theme="light"] .nav-cta:hover {
  background: #000000;
  color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-apple);
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: var(--transition-apple);
}

/* Mobile Nav Drawer */
.nav-mobile {
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  max-height: 0;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  transition: var(--transition-apple);
  z-index: 99;
}

.nav-mobile.open {
  max-height: 350px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  font-size: 15px;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-mobile a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-mobile a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: var(--transition-apple);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-primary:hover {
  background: #1d1d1f;
  color: #ffffff;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-blue);
  font-size: 16px;
  font-weight: 400;
  gap: 4px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 22px;
  cursor: pointer;
  transition: var(--transition-apple);
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.95)), url('startup_backdrop.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
}

[data-theme="light"] #hero {
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.96)), url('startup_backdrop.png');
}


.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
  z-index: 10;
}

.hero-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .hero-headline,
[data-theme="light"] .hero-sub {
  text-shadow: none;
}


.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* Interactive macOS App Mockup */
.mac-mockup {
  width: 90%;
  max-width: 860px;
  background: #101010;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 10;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

[data-theme="light"] .mac-mockup {
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.mac-titlebar {
  background: #161617;
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

[data-theme="light"] .mac-titlebar {
  background: #f5f5f7;
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dot.red { background: #ff453a; }
.mac-dot.yellow { background: #ff9f0a; }
.mac-dot.green { background: #30d158; }

.mac-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 24px;
  background: #242426;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .mac-search {
  background: #e8e8ed;
}

.mac-body {
  display: flex;
  height: 380px;
}

.mac-sidebar {
  width: 180px;
  background: #121213;
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

[data-theme="light"] .mac-sidebar {
  background: #f5f5f7;
}

.mac-sidebar-label {
  font-size: 9px;
  color: var(--text-dark);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mac-sidebar-item {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-apple);
}

.mac-sidebar-item.active, .mac-sidebar-item:hover {
  background: #242426;
  color: var(--text);
}

[data-theme="light"] .mac-sidebar-item.active, 
[data-theme="light"] .mac-sidebar-item:hover {
  background: #e8e8ed;
}

.mac-content {
  flex: 1;
  padding: 24px;
  background: #181819;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .mac-content {
  background: #ffffff;
}

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

.mac-query-bubble {
  background: #222224;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text);
  align-self: flex-start;
  max-width: 80%;
  border: 1px solid rgba(255,255,255,0.03);
  transition: background-color 0.5s ease;
}

[data-theme="light"] .mac-query-bubble {
  background: #f5f5f7;
  border-color: rgba(0,0,0,0.03);
}

.mac-response-bubble {
  font-size: 13px;
  line-height: 1.6;
  color: #d2d2d7;
  padding-left: 4px;
  transition: color 0.5s ease;
}

[data-theme="light"] .mac-response-bubble {
  color: #1d1d1f;
}

.mac-sources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mac-source-tag {
  display: inline-block;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

[data-theme="light"] .mac-source-tag {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
}

.mac-content-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.5s ease;
}

.mac-status {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.mac-status-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
}

@media(max-width: 768px) {
  .mac-body {
    flex-direction: column;
    height: auto;
  }
  .mac-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 16px;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .mac-sidebar-label {
    display: none;
  }
  .mac-sidebar-item {
    padding: 4px 10px;
    white-space: nowrap;
  }
  .mac-content {
    padding: 16px;
    height: auto;
    min-height: 280px;
  }
  .mac-content-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sections Global */
section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: var(--transition-apple);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.card-wide {
  grid-column: span 8;
}

.card-narrow {
  grid-column: span 4;
}

.card-tag {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Solutions Visuals */

/* Trust Flow Graphic */
.trust-graphic {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .trust-graphic {
  background: rgba(0,0,0,0.02);
}

.flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
}

.flow-node {
  background: #242426;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  transition: background-color 0.5s ease, color 0.5s ease;
}

[data-theme="light"] .flow-node {
  background: #ffffff;
  color: var(--text);
}

.flow-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  position: relative;
  margin: 0 12px;
}

.flow-connector::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: moveDot 3s linear infinite;
}

@keyframes moveDot {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes moveDotVertical {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.sources-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-item-mini {
  background: #1c1c1e;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .source-item-mini {
  background: #ffffff;
}

@media (max-width: 500px) {
  .flow-container {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
  }
  .flow-connector {
    height: 24px;
    width: 1px;
    margin: 8px 0;
  }
  .flow-connector::after {
    top: 0;
    left: -2px;
    width: 5px;
    height: 5px;
    animation: moveDotVertical 2.2s linear infinite;
  }
}

/* Lenses Widgets */
.lenses-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lenses-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lens-tab-btn {
  background: #242426;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-apple);
}

[data-theme="light"] .lens-tab-btn {
  background: #e8e8ed;
}

.lens-tab-btn.active, .lens-tab-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.lens-widget-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 120px;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .lens-widget-display {
  background: rgba(0, 0, 0, 0.02);
}

.lens-widget-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.lens-widget-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Journal Widget */
.journal-widget {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .journal-widget {
  background: rgba(0,0,0,0.02);
}

.journal-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.journal-score {
  font-weight: 600;
  color: var(--text);
}

.journal-canvas-container {
  height: 60px;
  position: relative;
}

#journalCanvas {
  width: 100%;
  height: 100%;
}

/* Citation Widget */
.citation-widget {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background-color 0.5s ease;
}

[data-theme="light"] .citation-widget {
  background: rgba(0,0,0,0.02);
}

.citation-preview-text {
  font-size: 13px;
  color: #d2d2d7;
  line-height: 1.6;
  transition: color 0.5s ease;
}

[data-theme="light"] .citation-preview-text {
  color: var(--text);
}

.citation-link {
  color: var(--accent-blue);
  text-decoration: underline;
  cursor: pointer;
  position: relative;
}

/* Sleek Apple-style Hover Citation Tooltip */
.citation-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 250px;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  transition: var(--transition-apple);
  pointer-events: none;
}

[data-theme="light"] .citation-popover {
  background: #ffffff;
  border-color: #d2d2d7;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.citation-link:hover .citation-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.popover-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.popover-text {
  font-size: 11px;
  color: #f5f5f7;
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 400;
  text-align: left;
}

[data-theme="light"] .popover-text {
  color: var(--text);
}

.popover-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border: none;
  font-size: 10px;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

[data-theme="light"] .popover-copy-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.popover-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .popover-copy-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.citation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.citation-tabs {
  display: flex;
  gap: 8px;
}

.citation-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.citation-tab-btn.active {
  color: var(--text);
  font-weight: 500;
}

.citation-export-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.citation-export-btn:hover {
  border-color: var(--text);
}

@media (max-width: 900px) {
  .card-wide, .card-narrow {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .citation-popover {
    width: 200px;
    left: auto;
    right: 0;
    transform: translateY(4px);
  }
  .citation-link:hover .citation-popover {
    transform: translateY(0);
  }
}

/* 5-Source Verification Table */
.spec-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-apple);
}

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

.spec-num {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-dark);
}

.spec-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.spec-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

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

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

@media(max-width: 480px) {
  .spec-list {
    grid-template-columns: 1fr;
  }
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.team-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-link {
  font-size: 12px;
  color: var(--accent-blue);
}

.team-link:hover {
  text-decoration: underline;
}

@media(max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Seed Round Banner */
.seed-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 80px;
}

.seed-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.seed-info p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
}

@media(max-width: 600px) {
  .seed-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
  }
}

/* FAQ Accordion */
.faq-container {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

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

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-toggle {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: var(--transition-apple);
}

.faq-row.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-apple);
}

.faq-row.open .faq-a {
  padding-bottom: 24px;
}

.faq-a p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
#footer {
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

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


.footer-brand h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-logo span {
  color: var(--accent-blue);
  font-weight: 600;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 450;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  transition: var(--transition-apple);
}

.footer-col a:hover {
  color: var(--accent-blue);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.5s ease;
}


@media(max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-apple);
  z-index: 1000;
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Clean Scroll Reveals */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Mobile adjustments */
@media (max-width: 480px) {
  .bento-card {
    padding: 24px;
  }
  .section-title {
    font-size: 28px;
  }
  .hero-headline {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 16px;
  }
  section {
    padding: 60px 0;
  }
  .mac-mockup {
    width: 95%;
  }
}

/* Modals styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1000;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.modal-overlay.open .modal-card {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-apple);
}
.modal-close:hover {
  color: var(--text);
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.email-display-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
}
.email-text {
  font-size: 14px;
  font-weight: 500;
  font-family: monospace;
  color: var(--text);
}
.email-copy-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-apple);
}
.email-copy-btn:hover {
  opacity: 0.9;
}
.modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-apple);
}
.modal-action-btn:hover {
  opacity: 0.9;
}

/* Security Feature Item */
.security-feature-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.security-feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.security-feature-item:first-child {
  padding-top: 0;
}
.security-feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.security-feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Light Mode Overrides for Modals */
[data-theme="light"] .modal-card {
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .email-display-box {
  background: #f5f5f7;
}
[data-theme="light"] .email-copy-btn {
  background: #1d1d1f;
  color: #ffffff;
}


