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

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-panel: #151515;
  --bg-elevated: #1B1B1B;
  --border-color: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #A7ADB7;
  --text-muted: #6F7682;
  --kernel-yellow: #F5D300;
  --kernel-yellow-dark: #C4A800;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

#matrix-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled,
.subpage .navbar {
  background-color: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
}

.nav-logo {
  height: 28px;
  width: auto;
  display: block;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--kernel-yellow);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-primary);
  background-color: var(--kernel-yellow);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--kernel-yellow-dark);
  transform: translateY(-2px);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile .nav-link,
.nav-mobile .nav-cta {
  font-size: 16px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 120px 24px 80px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(245, 211, 0, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.05), rgba(10, 10, 10, 0.82));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.highlight {
  color: var(--kernel-yellow);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--kernel-yellow);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--kernel-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 211, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  animation: float 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.section {
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 112px 0;
}

.section-dark {
  background: linear-gradient(180deg, #0A0A0A 0%, #111111 100%);
}

.section-panel {
  background: var(--bg-secondary);
}

.section-apply {
  background: var(--bg-primary);
}

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.section-kicker {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--kernel-yellow);
  text-transform: uppercase;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.section-title {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.section-copy,
.page-copy,
.large-copy {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--kernel-yellow);
}

.feature-card h3 {
  margin-top: 44px;
  font-size: 28px;
  line-height: 1.2;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.split-section,
.apply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.apply-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-main {
  min-height: calc(100vh - 250px);
  background: var(--bg-primary);
}

.page-hero {
  padding: 168px 0 112px;
  background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
  border-bottom: 1px solid var(--border-color);
}

.thinking-hero,
.careers-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.page-title {
  max-width: 920px;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.page-statement {
  margin-top: 28px;
  font-size: clamp(22px, 4vw, 38px);
  color: var(--kernel-yellow);
  line-height: 1.25;
}

.product-list {
  margin-top: 64px;
  border-top: 1px solid var(--border-color);
}

.product-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--border-color);
}

.product-row span {
  color: var(--kernel-yellow);
  font-weight: 700;
}

.product-row h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.product-row p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: center;
}

.about-grid .page-copy {
  margin-top: 30px;
  max-width: 600px;
}

.founder-card {
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.founder-info {
  padding: 24px;
}

.founder-info h2 {
  font-size: 28px;
  line-height: 1.2;
}

.founder-info p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.footer {
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer-company {
  font-size: 16px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--kernel-yellow);
}

.footer-links .dot {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 32px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info p,
.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-info a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-info a:hover {
  color: var(--kernel-yellow);
}

@media (max-width: 900px) {
  .nav-container,
  .section-container,
  .footer-container {
    padding: 0 24px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-center {
    position: static;
    transform: none;
  }

  .nav-container {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading-row,
  .split-section,
  .apply-row,
  .about-grid,
  .product-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .feature-card {
    min-height: 220px;
  }

  .page-hero {
    padding: 136px 0 80px;
  }

  .product-list {
    margin-top: 44px;
  }

  .product-row {
    padding: 28px 0;
  }

  .apply-row .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 110px 20px 76px;
  }

  .hero-cta-group {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .footer-top,
  .footer-bottom,
  .footer-brand,
  .footer-links {
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
