:root {
  color-scheme: dark;
  --bg: #071013;
  --panel: #0d171b;
  --panel-2: #101f24;
  --text: #e8f2f1;
  --muted: #9fb2b0;
  --line: rgba(159, 178, 176, 0.2);
  --accent: #3dd6a3;
  --accent-2: #78a6ff;
  --warning: #ffd166;
  --planned: #a7b2c0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(61, 214, 163, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 214, 163, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(120, 166, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(61, 214, 163, 0.12), transparent 28rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

[x-cloak] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-150%);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(61, 214, 163, 0.75);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 19, 0.86);
  backdrop-filter: blur(14px);
}

.nav-shell,
.footer-grid,
.hero-section,
.page-hero,
.content-section,
.cta-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.45rem;
}

.brand-logo-footer {
  height: 3rem;
}

.brand-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(61, 214, 163, 0.45);
  border-radius: 0.5rem;
  background: rgba(61, 214, 163, 0.12);
  color: var(--accent);
}

.desktop-nav,
.nav-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link,
.nav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
}

.nav-link:hover,
.nav-button:hover {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.nav-dropdown::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: max(100%, 16rem);
  height: 0.85rem;
  content: "";
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  display: none;
  min-width: 16rem;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  padding: 0.55rem;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: grid;
}

.dropdown-panel a,
.mobile-menu a {
  border-radius: 0.4rem;
  color: var(--muted);
  padding: 0.65rem 0.75rem;
  text-decoration: none;
}

.dropdown-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem 0.25rem;
  text-transform: uppercase;
}

.dropdown-product-link {
  position: relative;
  padding-left: 1.35rem !important;
}

.dropdown-product-link::before {
  position: absolute;
  left: 0.65rem;
  color: var(--accent);
  content: "›";
}

.dropdown-panel a:hover,
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  padding: 0.5rem;
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-sub-link {
  position: relative;
  padding-left: 1.5rem !important;
}

.mobile-product-group {
  display: grid;
  margin: -0.15rem 0 0.25rem 0.75rem;
  border-left: 1px solid rgba(61, 214, 163, 0.35);
  padding-left: 0.45rem;
}

.mobile-sub-link::before {
  position: absolute;
  left: 0.45rem;
  color: var(--accent);
  content: "›";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  color: #06201a;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-disabled {
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

.page-hero {
  padding: 4.5rem 0 2.25rem;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.hero-lede,
.page-hero p,
.section-header p,
.product-card p,
.resource-card p,
.site-footer p,
.cta-section p,
.content-section p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 42rem;
  margin: 1.35rem 0 1.75rem;
  font-size: 1.15rem;
}

.ecosystem-visual,
.product-card,
.resource-card,
.status-panel,
.terminal-box,
.value-grid article,
.roadmap-grid article,
.profile-hero-card,
.profile-summary-panel,
.profile-snapshot article,
.timeline-card,
.cta-section {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.ecosystem-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1.1rem;
}

.ecosystem-core,
.ecosystem-node {
  display: grid;
  min-height: 6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  text-align: center;
  text-decoration: none;
}

.ecosystem-core {
  grid-column: 1 / -1;
  background: rgba(61, 214, 163, 0.12);
  color: var(--accent);
  font-weight: 850;
}

.ecosystem-node {
  color: var(--text);
}

.content-section,
.cta-section {
  padding: 3rem 0;
}

.section-header {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.section-header h2,
.content-section h2,
.cta-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.value-grid,
.product-grid,
.resource-grid,
.roadmap-grid,
.two-column,
.product-detail-layout {
  display: grid;
  gap: 1rem;
}

.value-grid,
.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column,
.product-detail-layout,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.product-card,
.resource-card,
.value-grid article,
.roadmap-grid article,
.status-panel,
.profile-hero-card,
.profile-summary-panel,
.profile-snapshot article,
.timeline-card,
.cta-section {
  padding: 1.25rem;
}

.product-card h3,
.resource-card h2,
.value-grid h3,
.roadmap-grid h3 {
  margin: 0.8rem 0 0.5rem;
}

.card-topline {
  min-height: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-available,
.badge-preparing {
  border-color: rgba(61, 214, 163, 0.42);
  color: var(--accent);
}

.badge-development {
  border-color: rgba(120, 166, 255, 0.48);
  color: var(--accent-2);
}

.badge-planned,
.badge-soon {
  border-color: rgba(255, 209, 102, 0.42);
  color: var(--warning);
}

.feature-list,
.control-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.compact-list {
  margin: 1rem 0;
}

.large-list {
  font-size: 1.1rem;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.terminal-box {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.flow-strip,
.status-list {
  display: grid;
  gap: 0.75rem;
}

.flow-strip {
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: start;
  overflow-x: auto;
  color: var(--text);
}

.flow-strip span,
.status-list div {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.status-panel {
  position: sticky;
  top: 6rem;
}

.status-panel dl {
  display: grid;
  gap: 0.55rem;
}

.status-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.status-panel dd {
  margin: 0 0 0.85rem;
}

.notice {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.cta-section {
  margin-bottom: 3rem;
  text-align: center;
}

.cta-section .button-row {
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(8rem, 1fr));
  gap: 0.5rem 1.25rem;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  text-decoration: none;
}

.profile-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 1.5rem;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.profile-identity h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.profile-headline {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-avatar,
.profile-photo {
  display: grid;
  flex: 0 0 auto;
  width: clamp(8rem, 14vw, 10.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(61, 214, 163, 0.42);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(61, 214, 163, 0.18), rgba(120, 166, 255, 0.11)),
    var(--panel);
  color: var(--accent);
  font-weight: 900;
}

.profile-photo {
  display: block;
  border: 1px solid rgba(232, 242, 241, 0.24);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.profile-summary-panel {
  display: grid;
  align-content: center;
  gap: 1.2rem;
  border: 0;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.profile-summary-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.profile-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-focus-list span {
  border: 1px solid rgba(61, 214, 163, 0.28);
  border-radius: 999px;
  background: rgba(61, 214, 163, 0.08);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.profile-snapshot article {
  display: grid;
  gap: 0.2rem;
}

.snapshot-value {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 850;
}

.snapshot-label {
  color: var(--muted);
}

.profile-section-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.36fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.timeline-list,
.education-list {
  display: grid;
  gap: 1rem;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.profile-card-logo {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(232, 242, 241, 0.22);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  object-fit: contain;
  padding: 0.12rem;
}

.profile-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
}

.timeline-marker {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.5rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(61, 214, 163, 0.08);
}

.timeline-meta {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.timeline-card h3 {
  margin: 0.2rem 0 0.75rem;
}

.project-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-weight: 750;
}

.skill-cloud img {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-section,
  .profile-hero,
  .profile-hero-card,
  .profile-section-layout,
  .two-column,
  .product-detail-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .resource-grid,
  .value-grid,
  .profile-snapshot,
  .project-profile-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .status-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions .button {
    display: none;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .status-list div {
    align-items: flex-start;
    flex-direction: column;
  }
}

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