:root {
  --hue: 220;
  --bg-base: oklch(0.08 0.02 var(--hue));
  --bg-surface: oklch(0.12 0.025 var(--hue));
  --bg-elevated: oklch(0.16 0.03 var(--hue));
  --bg-card: oklch(0.14 0.02 var(--hue));
  --bg-hover: oklch(0.2 0.03 var(--hue));
  --border: oklch(0.22 0.03 var(--hue));
  --border-accent: oklch(0.5 0.15 145);

  --text-primary: oklch(0.93 0.01 var(--hue));
  --text-secondary: oklch(0.65 0.02 var(--hue));
  --text-tertiary: oklch(0.45 0.02 var(--hue));

  --accent: oklch(0.62 0.18 145);
  --accent-hover: oklch(0.7 0.18 145);
  --accent-dim: oklch(0.62 0.18 145 / 0.15);
  --green: oklch(0.6 0.18 145);
  --green-dim: oklch(0.6 0.18 145 / 0.1);
  --red: oklch(0.55 0.2 25);
  --red-dim: oklch(0.55 0.2 25 / 0.1);
  --amber: oklch(0.7 0.18 85);
  --amber-dim: oklch(0.7 0.18 85 / 0.1);
  --blue: oklch(0.6 0.18 240);
  --blue-dim: oklch(0.6 0.18 240 / 0.1);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  --transition: 150ms ease;
  --transition-slow: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(0.08 0.02 var(--hue) / 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.navbar-logo:hover {
  color: var(--text-primary);
}

.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: scaleX(1);
}

.navbar-links a.active {
  color: var(--text-primary);
}

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

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.page-header {
  padding: 120px 0 var(--spacing-3xl);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-header .accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: var(--spacing-lg) auto;
  border-radius: 2px;
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 640px;
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-mono);
  font-weight: 700;
}

.card-icon.green { background: var(--green-dim); color: var(--green); }
.card-icon.amber { background: var(--amber-dim); color: var(--amber); }
.card-icon.blue { background: var(--blue-dim); color: var(--blue); }
.card-icon.red { background: var(--red-dim); color: var(--red); }

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

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

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-change {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-top: var(--spacing-xs);
}

.metric-change.up { color: var(--green); }
.metric-change.down { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: oklch(0.08 0.02 var(--hue));
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: oklch(0.08 0.02 var(--hue));
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, oklch(0.62 0.18 145 / 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--spacing-lg);
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--border);
}

.hero-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.hero-metric-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.hero-stat .stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.hero-stat .badge {
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.hero-stat .badge.up {
  background: var(--green-dim);
  color: var(--green);
}

.hero-stat .badge.down {
  background: var(--red-dim);
  color: var(--red);
}

.hero-stat .badge.neutral {
  background: var(--blue-dim);
  color: var(--blue);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.tech-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.code-block {
  background: oklch(0.06 0.015 var(--hue));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.code-block .keyword { color: var(--blue); }
.code-block .type { color: var(--amber); }
.code-block .string { color: var(--green); }
.code-block .comment { color: var(--text-tertiary); font-style: italic; }
.code-block .func { color: var(--accent); }

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.feature-list li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  transition: border-color var(--transition), transform var(--transition);
}

.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.product-card .product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.product-card .product-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.product-card .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.product-card .product-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

.equation {
  background: oklch(0.06 0.015 var(--hue));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
}

.team-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.team-card .role {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

.team-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  line-height: 1.6;
}

.timeline {
  position: relative;
  padding-left: var(--spacing-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--spacing-xl) - 4px);
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-base);
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.timeline-item .date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-xs);
}

.timeline-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--border);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--spacing-sm);
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.footer-social a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 80px var(--spacing-xl) var(--spacing-xl);
    gap: var(--spacing-md);
    transition: right var(--transition-slow);
    align-items: flex-start;
  }

  .navbar-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

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

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

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

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-metrics {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

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