:root {
  --shadow-elevated: 0 18px 44px -28px rgba(0, 0, 0, 0.35);
}

/* Default to dark values for safety */
:root,
.theme-dark {
  --background: radial-gradient(circle at 20% 20%, rgba(83, 214, 197, 0.06), transparent 25%), radial-gradient(circle at 80% 10%, rgba(138, 184, 255, 0.08), transparent 25%), #0b0f16;
  --surface-primary: rgba(16, 21, 32, 0.96);
  --surface-secondary: rgba(12, 16, 24, 0.9);
  --surface-soft: #111827;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-main: #e8ecf3;
  --text-muted: #9aa3b7;
  --accent: #53d6c5;
  --accent-soft: #8ab8ff;
  --accent-on: #0a111b;
}

.theme-light {
  --background: #f7f9fc;
  --surface-primary: #ffffff;
  --surface-secondary: #f2f5fb;
  --surface-soft: #eef2f8;
  --border-subtle: rgba(12, 24, 40, 0.08);
  --text-main: #0f1a2d;
  --text-muted: #4b5565;
  --accent: #2baea0;
  --accent-soft: #4f8fe1;
  --accent-on: #0a111b;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.62;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

p {
  margin: 0 0 1em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding-top: 72px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section,
.page-section {
  padding: 120px 0 132px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 10, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.theme-light .navbar {
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.theme-toggle {
  border: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
  color: var(--text-main);
  border-radius: 999px;
  width: 48px;
  height: 26px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle .toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-light .theme-toggle {
  background: var(--surface-secondary);
  border-color: var(--border-subtle);
}

.theme-light .theme-toggle .toggle-knob {
  transform: translateX(20px);
}

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

.page-section {
  position: relative;
}

.primary-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(83, 214, 197, 0.06), transparent 45%);
  pointer-events: none;
}

.values-section::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  pointer-events: none;
}

.secondary-section {
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.secondary-section .section-header {
  background: linear-gradient(90deg, rgba(83, 214, 197, 0.05), transparent);
  padding: 6px 0 12px;
}

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

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

.card-grid,
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

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

.card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card-primary {
  background: linear-gradient(145deg, rgba(83, 214, 197, 0.06), var(--surface-primary));
}

.card-secondary {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), var(--surface-secondary));
}

.card:hover {
  border-color: rgba(83, 214, 197, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -30px rgba(0, 0, 0, 0.38);
}

.hero-card {
  background: radial-gradient(circle at 20% 20%, rgba(83, 214, 197, 0.1), transparent 45%), linear-gradient(140deg, rgba(83, 214, 197, 0.08), var(--surface-primary));
  padding: 48px 40px;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.floating-blob {
  display: none;
}

.hero-title {
  font-size: clamp(2.45rem, 4.2vw, 3.2rem);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.06rem;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.hero-copy .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-visual {
  min-height: 260px;
  min-width: 100%;
  background: var(--surface-soft);
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

@media (min-width: 768px) {
  .hero-visual {
    min-width: 340px;
    min-height: 320px;
  }
}

.continuum-panel {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
}

.continuum-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--text-muted);
  align-self: flex-start;
}

.continuum-figure {
  width: 100%;
  padding: 10px 0 4px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.continuum-line {
  width: 100%;
  max-width: 320px;
  height: auto;
  color: var(--accent);
}

.continuum-point {
  fill: currentColor;
  opacity: 0.9;
}

.continuum-point-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 320px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.continuum-point-labels span {
  display: block;
}

.continuum-caption {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.theme-light .continuum-line {
  color: #2d8c82;
}

.theme-light .continuum-point {
  opacity: 1;
}

.continuum-panel.hoverSubtle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.continuum-panel.hoverSubtle .continuum-point {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.continuum-panel.hoverSubtle:hover .continuum-point {
  transform: scale(1.05);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.45);
}

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

.text-strong {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.small {
  font-size: 0.9rem;
}

.italic {
  font-style: italic;
}

.max-w {
  max-width: 780px;
}

.section-header {
  display: grid;
  gap: 6px;
  margin-bottom: 32px;
}

.eyebrow-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.14rem);
}

.section-subtitle {
  color: rgba(154, 163, 183, 0.9);
  margin: 0;
}

.center-text {
  text-align: center;
  margin-top: 20px;
}

.manifesto-card ul {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.manifesto-card li {
  margin: 0;
  list-style: disc;
  color: var(--text-muted);
}

.manifesto-card h3 {
  font-size: 1.08em;
}

.manifesto-quote {
  font-weight: 600;
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  text-transform: none;
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.theme-light .badge {
  border-color: rgba(12, 24, 40, 0.1);
  background: rgba(12, 24, 40, 0.04);
}

.badge[data-status="In active development"],
.badge[data-status="teal"],
.badge[data-status="general"],
.badge[data-status="founder"] {
  color: var(--accent);
  border-color: rgba(83, 214, 197, 0.5);
}

.badge[data-status="Designing spec"],
.badge[data-status="blue"],
.badge[data-status="tech"] {
  color: var(--accent-soft);
  border-color: rgba(138, 184, 255, 0.5);
}

.badge[data-status="Prototype"],
.badge[data-status="orange"] {
  color: #f5b54c;
  border-color: rgba(245, 181, 76, 0.5);
}

.badge[data-status="Coming Soon"],
.badge[data-status="Reserved"],
.badge[data-status="Future Offering"],
.badge[data-status="gray"] {
  color: #7c8496;
  border-color: rgba(124, 132, 150, 0.4);
}

.badge[data-status="In Planning"],
.badge[data-status="purple"] {
  color: #8f7ee8;
  border-color: rgba(143, 126, 232, 0.5);
}

.badge[data-status="To Be Announced"],
.badge[data-status="yellow"] {
  color: #d8a420;
  border-color: rgba(216, 164, 32, 0.5);
}

.badge[data-status="Design"],
.badge[data-status="cyan"] {
  color: #4f8fe1;
  border-color: rgba(79, 143, 225, 0.5);
}

.service-card.placeholder,
.project-card.placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
}

.theme-light .service-card.placeholder,
.theme-light .project-card.placeholder {
  border-color: rgba(12, 24, 40, 0.18);
}

.system-card:hover,
.service-card:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.about-grid {
  align-items: stretch;
}

.profile-card {
  cursor: pointer;
}

.profile-head {
  display: flex;
  gap: 16px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.35);
}

.avatar.large {
  width: 64px;
  height: 64px;
}

.profile-summary {
  margin-top: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.theme-light .profile-summary {
  background: rgba(12, 24, 40, 0.04);
  border: 1px solid rgba(12, 24, 40, 0.08);
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 28, 0.94);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.theme-light .profile-overlay {
  background: rgba(247, 249, 252, 0.96);
}

.profile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.profile-overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-list {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--text-muted);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.theme-light .btn {
  border-color: rgba(12, 24, 40, 0.14);
  background: rgba(12, 24, 40, 0.04);
  color: var(--text-main);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #48c7b7);
  color: var(--accent-on);
  box-shadow: 0 12px 32px -20px rgba(72, 199, 179, 0.6);
  border-color: rgba(72, 199, 179, 0.5);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -24px rgba(72, 199, 179, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(83, 214, 197, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.14);
}

.theme-light .btn-ghost {
  border-color: rgba(12, 24, 40, 0.14);
}

.btn.sm {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.link-button {
  border: none;
  background: transparent;
  color: var(--accent-soft);
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-main);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-light .form-field input,
.theme-light .form-field select,
.theme-light .form-field textarea {
  background: #fff;
  border: 1px solid rgba(12, 24, 40, 0.12);
  color: var(--text-main);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(83, 214, 197, 0.4);
}

.form-field.full {
  grid-column: 1 / -1;
}

.contact-card {
  margin-top: 16px;
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-wrap: wrap;
}

.theme-light .email-chip {
  background: rgba(12, 24, 40, 0.04);
  border: 1px solid rgba(12, 24, 40, 0.1);
}

.email-chip.placeholder {
  border-color: #fbbf24;
}

.placeholder-note {
  font-size: 0.85rem;
  color: #fbbf24;
}

.email-text {
  font-weight: 600;
}

.footer {
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.theme-light .footer-form input {
  background: #fff;
  border: 1px solid rgba(12, 24, 40, 0.12);
}

.footer-form input:focus {
  border-color: var(--accent);
  outline: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.theme-light .modal-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-body {
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.toast {
  background: #0b111c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 4px;
  min-width: 240px;
}

.theme-light .toast {
  background: #ffffff;
  border: 1px solid rgba(12, 24, 40, 0.12);
}

.toast.success {
  border-color: rgba(83, 214, 197, 0.5);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.toast.warning {
  border-color: rgba(251, 191, 36, 0.6);
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  z-index: 1500;
}

[data-animate] {
  opacity: 1;
  transform: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.services-underline,
.values-pulse,
.pulse-grid,
.pulse-lines,
.pulse-bar {
  display: none;
}

.button-row.wrap {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .section,
  .page-section {
    padding: 80px 0 96px;
  }
  .hero-card {
    padding: 36px 24px;
  }
  .card {
    padding: 24px;
  }
  main {
    padding-top: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
