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

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  /* Dark palette (default) */
  --bg:          #0c0c12;
  --bg-surface:  #13131a;
  --bg-card:     #18181f;
  --bg-card-hover: #1e1e28;

  --border:      rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text-primary:   #f0f0f5;
  --text-secondary:  #a0a0b2;
  --text-muted:      #6b6b80;

  --accent:      #00d4aa;
  --accent-dim:  rgba(0, 212, 170, 0.12);
  --accent-glow: rgba(0, 212, 170, 0.08);

  --navbar-bg:   rgba(12, 12, 18, 0.75);
  --mobile-bg:   rgba(12, 12, 18, 0.88);
  --shadow-card: rgba(0, 0, 0, 0.3);
}

/* Light theme */
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-surface:  #f8f9fa;
  --bg-card:     #f1f3f5;
  --bg-card-hover: #e9ecef;

  --border:      rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --text-primary:   #111827;
  --text-secondary:  #4b5563;
  --text-muted:      #6b7280;

  --accent:      #00b894;
  --accent-dim:  rgba(0, 184, 148, 0.1);
  --accent-glow: rgba(0, 184, 148, 0.06);

  --navbar-bg:   rgba(255, 255, 255, 0.7);
  --mobile-bg:   rgba(255, 255, 255, 0.85);
  --shadow-card: rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ===== Layout ===== */
.px-main {
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .px-main { padding-left: 64px; padding-right: 64px; }
}
@media (min-width: 1024px) {
  .px-main { padding-left: 96px; padding-right: 96px; }
}
@media (min-width: 1280px) {
  .px-main { padding-left: 128px; padding-right: 128px; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s ease;
}

.navbar.hidden-nav {
  transform: translateY(-100%);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo svg { width: 38px; height: 38px; }

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

.nav-right {
  display: flex;
  align-items: center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
}

.nav-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.25);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger svg { width: 26px; height: 26px; color: var(--text-primary); }

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: fixed;
  inset: 0;
  background: var(--mobile-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  font-size: 1.1rem;
  font-weight: 500;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { color: var(--text-primary); }

.mobile-close {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 8px;
  margin-top: 12px;
}

.mobile-close svg { width: 24px; height: 24px; }

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

.nav-spacer { height: 72px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: heroOrb 12s ease-in-out infinite alternate;
}

.hero::before {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.07) 0%, transparent 70%);
}

.hero::after {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(100, 100, 255, 0.05) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes heroOrb {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
  100% { transform: translate(-20px, 30px) scale(0.9); opacity: 0.7; }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.22;
  max-width: 640px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.hero-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 16px auto 0;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===== Hero Status Badge ===== */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 28px;
  border: 1px solid var(--accent-dim);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.04);
  position: relative;
  z-index: 1;
  animation: statusGlow 3s ease-in-out infinite alternate;
}

@keyframes statusGlow {
  0% { box-shadow: 0 0 15px rgba(0, 212, 170, 0.05); }
  100% { box-shadow: 0 0 30px rgba(0, 212, 170, 0.12); }
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5); }
  50% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(0, 212, 170, 0); }
}

/* Hero CTA (kept for careers page) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 0 25px rgba(0, 212, 170, 0.15);
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.25);
}

/* Incubation */
.incubation {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.incubation-label {
  font-size: 13px;
  color: var(--text-muted);
}

.incubation-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.incubation-logos span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.incubation-sep {
  width: 1px;
  height: 16px;
  background: var(--text-muted);
  opacity: 0.4;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 1080px;
  margin: 120px auto 0;
  overflow: hidden;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  padding-bottom: 48px;
  transition: background 0.4s, box-shadow 0.4s;
  border-right: 1px solid var(--border);
}

.feature-card:last-child { border-right: none; }

.feature-card:hover {
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 0 var(--border-hover);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.feature-header svg {
  width: 20px;
  height: 20px;
  transition: color 0.3s;
}

.feature-card:hover .feature-header svg {
  color: var(--accent);
}

.feature-header h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 288px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    margin-left: 24px;
    margin-right: 24px;
  }
  .feature-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .feature-card:last-child { border-bottom: none; }
}

/* ===== Process Section ===== */
.process {
  max-width: 1080px;
  margin: 120px auto 0;
  padding: 0 24px;
  text-align: center;
}

.process-label {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
}

.process-title {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  color: var(--text-muted);
  max-width: 420px;
  margin: 20px auto 0;
  font-weight: 400;
  line-height: 1.4;
}

.process-timeline {
  display: flex;
  margin-top: 80px;
}

.process-col {
  flex: 1;
}

.process-step {
  height: 240px;
  text-align: left;
  max-width: 480px;
}

.process-step-offset {
  margin-top: 240px;
}

.process-step h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  margin-bottom: 20px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
}

/* Center line */
.process-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
}

.line-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

.line-segment {
  position: relative;
  width: 2px;
  height: 240px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
  }
  .process-line { display: none; }
  .process-step {
    height: auto;
    margin-bottom: 40px;
  }
  .process-step-offset {
    margin-top: 0;
  }
}

/* ===== Contact ===== */
.contact {
  max-width: 1080px;
  margin: 120px auto 0;
  padding: 0 24px;
  text-align: center;
}

.contact-label {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
}

.contact-heading {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  background: linear-gradient(to right, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 420px;
  margin: 16px auto 0;
  font-weight: 400;
  line-height: 1.4;
}

.contact-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 16px auto 0;
  line-height: 1.7;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.contact-card:hover .contact-card-icon {
  background: var(--accent-dim);
}

.contact-card:hover .contact-card-icon svg {
  color: var(--accent);
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.contact-card h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-card a,
.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-card a:hover { color: var(--text-primary); }

/* ===== Footer ===== */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: 120px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer-top {
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
}

.footer-brand .nav-logo {
  margin-bottom: 0;
}

.footer-desc {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 320px;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-incubation {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

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

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== Selection ===== */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin-right: 12px;
}

.theme-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Dark mode: show sun, hide moon */
.icon-sun { display: block; }
.icon-moon { display: none; }

/* Light mode: show moon, hide sun */
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Light mode logo adjustments */
[data-theme="light"] .logo-svg circle {
  stroke: #ccc;
  fill: #18181b;
}

@media (max-width: 768px) {
  .theme-toggle { margin-right: 0; }
}
