/* ==========================================================================
   AGENT COFOUNDER — Stockholm AI (Spacious, Pristine Layout)
   ========================================================================== */

:root {
  /* Default Light Mode */
  --bg-canvas: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);

  /* Stockholm AI Swedish Gold Accent System */
  --brand-gold: #f59e0b;
  --brand-gold-bright: #ffb800;
  --brand-gold-hover: #d97706;
  --brand-gold-bg: rgba(245, 158, 11, 0.08);

  /* High-Contrast Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 32px rgba(245, 158, 11, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Ultra-Sleek Dark Mode */
  --bg-canvas: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-header: rgba(11, 15, 25, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --brand-gold: #f59e0b;
  --brand-gold-bright: #ffc107;
  --brand-gold-hover: #fbbf24;
  --brand-gold-bg: rgba(245, 158, 11, 0.14);

  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 32px rgba(245, 158, 11, 0.22), 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-canvas);
}

/* Dynamic Techy Canvas & Mesh System */
.mesh-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  transition: opacity var(--transition);
}

.blob-gold {
  width: 650px;
  height: 650px;
  top: -100px;
  right: 10%;
  background: radial-gradient(circle, var(--brand-gold), transparent 70%);
  animation: floatBlob1 18s ease-in-out infinite alternate;
}

.blob-cyan {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -5%;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  opacity: 0.16;
  animation: floatBlob2 22s ease-in-out infinite alternate;
}

[data-theme="dark"] .blob-gold {
  opacity: 0.35;
  filter: blur(120px);
}

[data-theme="dark"] .blob-cyan {
  opacity: 0.25;
  filter: blur(120px);
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.1); }
  100% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.92); }
}

/* Techy Grid Lines & Major Grid Matrix */
.mesh-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.mesh-grid-major {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.09) 1px, transparent 1px);
  background-size: 160px 160px;
}

[data-theme="dark"] .mesh-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .mesh-grid-major {
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.14) 1px, transparent 1px);
}

/* Tech Floating Circuit Node Dots */
.tech-nodes {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 10px var(--brand-gold);
  opacity: 0.6;
}

.node-1 { top: 20%; left: 15%; animation: nodePulse 3s infinite alternate; }
.node-2 { top: 35%; right: 22%; animation: nodePulse 4s 1s infinite alternate; }
.node-3 { top: 70%; left: 30%; animation: nodePulse 3.5s 0.5s infinite alternate; }
.node-4 { top: 85%; right: 18%; animation: nodePulse 5s 1.5s infinite alternate; }

@keyframes nodePulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0.9; box-shadow: 0 0 16px var(--brand-gold); }
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Ultra-Clean Glass Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition), border-color var(--transition);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 28px;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
  transition: transform var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.06);
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap;
}

.logo-text .accent-text {
  color: var(--brand-gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 1;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brand-gold-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: 20px;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-gold);
  background: var(--brand-gold-bg);
  color: var(--brand-gold-hover);
  transform: translateY(-1px);
}

/* Toggle Sun / Moon visibility based on active theme */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-cta {
  flex-shrink: 0;
}

/* Button Architecture */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-bright));
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-gold-bright), var(--brand-gold-hover));
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.42);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.25);
  background: var(--bg-surface);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-hero {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Centered Hero Section with Mascot Layout */
.hero {
  min-height: calc(100vh - 72px);
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 580px;
}

.title-highlight {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-hook {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 16px;
  border-left: 3px solid var(--brand-gold);
  padding-left: 16px;
}

/* Mascot Showcase Card */
.mascot-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  max-width: 400px;
  width: 100%;
  justify-self: center;
  align-self: center;
}

.mascot-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 158, 11, 0.4);
}

.mascot-container {
  width: 100%;
  max-width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
}

.mascot-svg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.mascot-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 100px;
  text-align: center;
  max-width: 100%;
}

.mascot-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* CLI Benchmark Terminal Card */
.terminal-card {
  width: 100%;
  max-width: 760px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.15);
}

.term-header {
  background: #1e293b;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots { display: flex; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94a3b8;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
}

.term-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.85;
}

.cmd-line { color: #ffffff; font-weight: 600; margin-bottom: 6px; }
.prompt { color: var(--brand-gold); font-weight: bold; }
.log-line { color: #94a3b8; margin-bottom: 6px; }
.log-success { color: #10b981; font-weight: 600; }

/* Section Base */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-subtle);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-gold-hover);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Why Callout Card */
.why-callout-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--brand-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.why-callout-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.why-callout-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Cards Grid Component */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-hover);
}

.card-highlight {
  border-color: var(--brand-gold);
  border-top: 4px solid var(--brand-gold);
  background: var(--bg-card);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--brand-gold-bg);
  color: var(--brand-gold-hover);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 750;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

.code {
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

.track-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 10px;
}

.badge-gold {
  color: var(--brand-gold-hover);
}

/* Sandbox & Multi-Tab Switcher */
.sandbox-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.sandbox-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.sandbox-input-group input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.sandbox-input-group input:focus {
  border-color: var(--brand-gold);
  background: var(--bg-card);
}

.output-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.out-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.out-tab.active, .out-tab:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--brand-gold);
  color: var(--brand-gold-hover);
}

.out-panel {
  display: none;
}

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

.code-block {
  display: block;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
}

/* Build Path Estimator */
.estimator-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.estimator-controls {
  margin-bottom: 24px;
}

.est-label {
  display: block;
  font-weight: 750;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.est-buttons {
  display: flex;
  gap: 12px;
}

.est-btn {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.est-btn.active, .est-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--brand-gold);
  color: var(--brand-gold-hover);
}

.estimator-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

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

.est-track-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.est-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold-hover);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
}

.est-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* FAQ Accordion Component */
.faq-box {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold-hover);
  transition: transform var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), margin-top var(--transition);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 12px;
}

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

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

/* Leadership Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.card-admin {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.02);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.avatar-admin {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-bright));
  color: #0f172a;
  border: none;
}

.team-info h4 {
  font-size: 1.02rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.team-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Hero Elements */
.countdown-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
  max-width: 100%;
}

.live-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-gold-hover);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.countdown-timer {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.c-unit strong {
  color: var(--brand-gold-hover);
}

.badge-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.title {
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

/* What's At Stake Section */
.card-stake {
  border-top: 4px solid var(--border-subtle);
}

.stake-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-gold-hover);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stake-icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-gold-hover);
}

/* Key Dates Timeline Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-hover);
}

.timeline-card-gold {
  border-color: var(--brand-gold);
  border-top: 4px solid var(--brand-gold);
  background: linear-gradient(180deg, var(--brand-gold-bg), var(--bg-card));
}

.timeline-step {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 12px;
}

.step-gold {
  color: var(--brand-gold-hover);
  opacity: 1;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-gold-hover);
  display: block;
  margin-bottom: 6px;
}

.date-gold {
  color: var(--brand-gold-hover);
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Partners & Sponsors Grid */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.partner-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.partner-badge:hover {
  border-color: var(--brand-gold);
  transform: translateY(-2px);
}

.partner-badge-full {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

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

/* CTA & Footer */
.cta-section {
  padding: 90px 0 100px;
}

.cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 60px 32px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.cta-card h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  background: var(--bg-canvas);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ==========================================================================
   DYNAMIC SCROLL ANIMATIONS & INTERACTIVE STATES
   ========================================================================== */

/* Scroll Reveal Fade & Slide */
.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active, .reveal-stagger > *.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay for Grid Elements */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.44s; }

/* Dynamic Header Scrolled Elevation */
.header.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Active Nav Indicator Underline */
.nav a.nav-active {
  color: var(--brand-gold-hover);
  position: relative;
}

.nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
  animation: fadeInWidth 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInWidth {
  from { width: 0%; }
  to { width: 100%; }
}

@media (max-width: 1100px) {
  .nav { gap: 12px; }
  .nav a { font-size: 0.82rem; }
}

@media (max-width: 980px) {
  .hero { margin-top: 72px; padding: 40px 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-text-side { align-items: center; text-align: center; max-width: 100%; }
  .mascot-hero-card { justify-self: center; }
  .cards-grid, .team-grid, .timeline-grid, .resources-grid, .spec-steps-grid, .prompts-grid { grid-template-columns: 1fr; }
  .title { font-size: 2.4rem; }
  .subtitle { text-align: center; }
  .hero-actions, .est-buttons { flex-direction: column; width: 100%; align-items: center; }
  .countdown-badge-wrapper { flex-direction: column; gap: 8px; padding: 10px 16px; border-radius: 20px; }
  .nav { display: none; }
}

/* ==========================================================================
   Key Resources & Infrastructure Grid
   ========================================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-hover);
}

.card-pi {
  border-left: 4px solid var(--brand-gold);
  background: linear-gradient(180deg, var(--brand-gold-bg), var(--bg-card));
}

.card-full-width {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card), var(--brand-gold-bg));
}

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

.res-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.res-tag.badge-gold {
  color: var(--brand-gold-hover);
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--brand-gold-bg);
}

.resource-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.resource-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.res-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

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

.res-link-arrow {
  color: var(--brand-gold-hover);
  font-weight: 700;
}

/* ==========================================================================
   Technical Specification Tabs & Interactive Viewer
   ========================================================================== */
.spec-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.spec-tabs {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.spec-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.spec-tab:hover {
  color: var(--text-primary);
  background: rgba(245, 158, 11, 0.05);
}

.spec-tab.active {
  color: var(--brand-gold-hover);
  border-bottom-color: var(--brand-gold);
  background: var(--bg-card);
}

.spec-content {
  padding: 36px;
}

.spec-panel {
  display: none;
}

.spec-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.spec-panel h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.spec-panel p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Spec Steps Grid */
.spec-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brand-gold-hover);
  display: block;
  margin-bottom: 8px;
}

.spec-step-card h4 {
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.spec-step-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Formula Box */
.formula-box {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.formula-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-gold-hover);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.formula-math {
  background: #0f172a;
  color: var(--brand-gold);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.formula-notes {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.fn-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-gold-hover);
  background: var(--brand-gold-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 100-Point Score Grid */
.score-breakdown-grid {
  display: grid;
  gap: 16px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 24px;
}

.score-points {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-gold-hover);
  background: var(--brand-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
}

.score-desc h4 {
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.score-desc p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Prompts Grid */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.prompt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
}

.prompt-card-judging {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, var(--brand-gold-bg), var(--bg-surface));
}

.prompt-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: inline-block;
}

.prompt-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.prompt-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.prompt-ambiguity {
  font-size: 0.84rem;
  color: var(--brand-gold-hover);
  background: rgba(245, 158, 11, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--brand-gold);
}

/* Team Grid Enhancements & LinkedIn Button */
.team-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.team-contact-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--brand-gold-hover);
  background: var(--brand-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.team-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
  border: 1px solid rgba(10, 102, 194, 0.2);
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 4px;
}

.team-linkedin-btn:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: translateY(-1px);
}

/* ==========================================================================
   Sponsor & Partner Logo Cards
   ========================================================================== */
/* Borderless Modern Partner Logo Strip (No Duplicate Text) */
.sponsor-logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 64px;
  margin-top: 44px;
}

.partner-logo-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 12px;
  transition: transform var(--transition);
}

.partner-logo-img {
  height: 68px;
  max-width: 240px;
  object-fit: contain;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

/* Individual Scale & Height Balancing */
.logo-stockholm-ai { height: 80px !important; max-width: 240px !important; }
.logo-nordic-tech { height: 72px !important; max-width: 250px !important; }
.logo-berget { height: 74px !important; max-width: 250px !important; }
.logo-danads { height: 62px !important; max-width: 220px !important; }
.logo-wellstreet { height: 64px !important; max-width: 240px !important; }
.logo-mimer { height: 70px !important; max-width: 230px !important; }
.logo-accurate { height: 70px !important; max-width: 230px !important; }
.logo-epicenter { height: 68px !important; max-width: 250px !important; }
.logo-rise { height: 74px !important; max-width: 210px !important; }
.logo-naiss { height: 64px !important; max-width: 240px !important; }

/* Light Theme: Turn white logos into solid crisp black */
[data-theme="light"] .partner-logo-img {
  filter: brightness(0) opacity(0.85) !important;
}

[data-theme="light"] .partner-logo-item:hover .partner-logo-img {
  filter: brightness(0) opacity(1) !important;
  transform: translateY(-3px) scale(1.08);
}

/* Dark Theme: Native white vector graphics float crisp on dark canvas */
[data-theme="dark"] .partner-logo-img {
  filter: none !important;
  opacity: 0.95 !important;
}

[data-theme="dark"] .partner-logo-item:hover .partner-logo-img {
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.6)) opacity(1) !important;
  transform: translateY(-3px) scale(1.08);
}

.partner-tag {
  position: absolute;
  bottom: -6px;
  background: var(--brand-gold-bg);
  color: var(--brand-gold-hover);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ==========================================================================
   Project Submission Form & Modal Styles
   ========================================================================== */
.section-submit {
  background: var(--bg-card);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.submission-card-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.submission-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--brand-gold-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.submission-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.15);
}

.submission-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.submission-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gold-bg);
  border: 1px solid var(--brand-gold-border);
  color: var(--brand-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.submission-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.submission-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.submission-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group label .req {
  color: var(--brand-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: var(--brand-gold);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-submit-glow {
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--brand-gold-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--brand-gold);
}

.modal-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid #10B981;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.submission-summary-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 600;
}

.summary-value {
  color: var(--text-primary);
  font-weight: 700;
  word-break: break-all;
}

.summary-link {
  color: var(--brand-gold);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

.modal-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Submission CTA Banner Card on Homepage */
.section-submit-banner {
  background: var(--bg-primary);
  padding: 60px 0;
}

.submission-cta-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--brand-gold-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 860px) {
  .submission-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

.submission-cta-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 12px 0 8px;
  color: var(--text-primary);
}

.submission-cta-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 600px;
}

/* Standalone Submit Page Styling */
.submit-page-main {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 85vh;
}

.submit-page-header {
  max-width: 720px;
  margin: 0 auto 40px;
}

.submit-page-header .page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 14px 0;
  color: var(--text-primary);
}

.submit-page-header .page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-submit-standalone {
  padding: 0;
}
