:root {
  --bg-primary: #0a0d12;
  --bg-secondary: #121824;
  --bg-surface: #182232;
  --bg-surface-hover: #1f2c40;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

button, input, textarea {
  font: inherit;
  background: none;
  border: none;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(16px);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-image {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 800;
}

.logo-type {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* Base Sections & Headers */
.section {
  padding: 100px 0;
}

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

.page-header {
  padding: 120px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12), transparent 70%);
}

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

.page-header p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 640px;
}

.section-title {
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Hero Component */
.hero {
  padding: 140px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 580px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn.primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.btn.ghost {
  border: 1px solid var(--border-color-hover);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: var(--bg-surface-hover);
}

/* Enterprise Panels & Cards */
.capability-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.capability-card {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.capability-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.capability-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.capability-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-list div {
  display: flex;
  gap: 16px;
  align-items: center;
}

.capability-list span {
  color: var(--accent-light);
  font-weight: 800;
  font-size: 0.9rem;
}

.capability-list p {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Grids */
.feature-grid,
.project-grid,
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card,
.project-card,
.terms-card,
.contact-panel,
.contact-form,
.step {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  padding: 32px;
  transition: all var(--transition-smooth);
}

.feature-card:hover,
.project-card:hover,
.terms-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card svg {
  width: 36px;
  height: 36px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature-card h3,
.project-card h3,
.terms-card h3,
.contact-panel h3,
.step h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p,
.project-card p,
.terms-card p,
.contact-panel p,
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio & Filters */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.filter {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter.active,
.filter:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-chip {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-card .btn {
  margin-top: 24px;
}

[data-category].is-hidden {
  display: none;
}

/* Founder & Workflow */
.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.founder-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  color: var(--accent-light);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Contact Module */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-panel a {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-text,
.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--text-primary);
}

.copyright {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-smooth);
    pointer-events: none;
  }

  body.nav-open .nav {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

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

  .founder-card,
  .step {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
