:root {
    --bg: #0a0c10;
    --surface: #11141a;
    --border: #1e2330;
    --accent: #00e5a0;
    --accent2: #0084ff;
    --text: #e8ecf4;
    --muted: #6b7590;
    --mono: 'IBM Plex Mono', monospace;
    --display: 'Syne', sans-serif;
    --body: 'Inter', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,229,160,0.015) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,229,160,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: rgba(10,12,16,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
  }

  .logo span { color: var(--accent); }

  .nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.05em;
  }

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

  .nav-cta {
    font-family: var(--mono);
    font-size: 0.78rem;
    padding: 9px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.05em;
  }

  .nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
  }

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

  .hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,160,0.07) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
  }

  .hero-glow2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,132,255,0.06) 0%, transparent 70%);
    bottom: 0;
    left: 200px;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    border: 1px solid rgba(0,229,160,0.3);
    padding: 6px 14px;
    margin-bottom: 32px;
    letter-spacing: 0.08em;
    animation: fadeUp 0.6s ease both;
  }

  .hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  h1 em {
    font-style: normal;
    color: var(--accent);
  }

  .hero-desc {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.8;
    animation: fadeUp 0.6s 0.2s ease both;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: fadeUp 0.6s 0.3s ease both;
  }

  .btn-primary {
    font-family: var(--mono);
    font-size: 0.82rem;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.2s;
  }

  .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

  .btn-secondary {
    font-family: var(--mono);
    font-size: 0.82rem;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s;
  }

  .btn-secondary:hover { border-color: var(--muted); }

  .hero-terminal {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.78rem;
    animation: fadeUp 0.7s 0.2s ease both;
  }

  .terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
  }

  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #ff5f57; }
  .dot-y { background: #ffbd2e; }
  .dot-g { background: #28ca42; }

  .terminal-title {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.7rem;
  }

  .terminal-body {
    padding: 20px;
    line-height: 2;
  }

  .t-line { display: flex; gap: 8px; }
  .t-prompt { color: var(--accent); }
  .t-cmd { color: var(--text); }
  .t-out { color: var(--muted); padding-left: 16px; }
  .t-success { color: var(--accent); padding-left: 16px; }
  .t-info { color: var(--accent2); padding-left: 16px; }

  .cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  .stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0 0 100px;
  }

  .stat {
    flex: 1;
    padding: 40px 60px;
    border-right: 1px solid var(--border);
  }

  .stat:last-child { border-right: none; }

  .stat-num {
    font-family: var(--display);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
  }

  .stat-num span { color: var(--accent); }

  .stat-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .section {
    position: relative;
    z-index: 1;
    padding: 0 60px 100px;
  }

  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
  }

  .section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .service-card {
    background: var(--bg);
    padding: 40px;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
  }

  .service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
  }

  .service-card:hover { background: var(--surface); }
  .service-card:hover::after { transform: scaleX(1); }

  .service-icon {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    border: 1px solid rgba(0,229,160,0.3);
    display: inline-block;
    padding: 6px 10px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
  }

  .service-title {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
  }

  .service-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .stack-section {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 100px;
    overflow: hidden;
  }

  .stack-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,229,160,0.03) 0%, transparent 60%);
  }

  .stack-inner {
    position: relative;
    display: flex;
    gap: 80px;
    align-items: flex-start;
  }

  .stack-left { flex: 0 0 320px; }

  .stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    padding-top: 8px;
  }

  .tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 8px 16px;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.05em;
    transition: all 0.2s;
    cursor: default;
  }

  .tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,229,160,0.05);
  }

  .tag.hot {
    border-color: rgba(0,229,160,0.4);
    color: var(--accent);
  }

  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .process-step { position: relative; }

  .process-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
  }

  .process-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
  }

  .process-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .cta-section {
    position: relative;
    z-index: 1;
    margin: 0 60px 100px;
    padding: 80px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,160,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .cta-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    margin-bottom: 12px;
  }

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

  footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-copy {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
  }

  .footer-links {
    display: flex;
    gap: 32px;
  }

  .footer-links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
  }

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

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 1100px) {
    .hero-terminal { display: none; }
    nav { padding: 20px 30px; }
    .hero { padding: 120px 30px 80px; }
    .section { padding: 0 30px 80px; }
    .stat { padding: 30px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .cta-section { margin: 0 30px 80px; padding: 50px; flex-direction: column; gap: 32px; align-items: flex-start; }
    footer { padding: 30px; flex-direction: column; gap: 20px; }
    .stack-inner { flex-direction: column; gap: 40px; }
    .stack-section { padding: 60px 30px; }
  }

  @media (max-width: 640px) {
    nav { padding: 16px 20px; }
    .nav-links { display: none; }
    .hero { padding: 100px 20px 60px; }
    .section { padding: 0 20px 60px; }
    .stats { flex-direction: column; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .cta-section { margin: 0 20px 60px; padding: 36px; }
    footer { padding: 24px 20px; }
    .stack-section { padding: 40px 20px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  }

  .page-hero {
      padding: 160px 60px 80px;
      border-bottom: 1px solid var(--border);
    }
    .page-hero .section-label { margin-bottom: 16px; }
    .page-hero h1 {
      font-size: clamp(2rem, 4vw, 3.2rem);
      animation: none;
      margin-bottom: 16px;
    }
    .page-hero .meta {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
      letter-spacing: 0.05em;
    }
    .doc-body {
      max-width: 760px;
      margin: 0 auto;
      padding: 80px 60px 120px;
    }
    .doc-body h2 {
      font-size: 1.2rem;
      letter-spacing: -0.5px;
      margin: 48px 0 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    .doc-body h2:first-child { margin-top: 0; }
    .doc-body p {
      font-size: 0.92rem;
      color: var(--muted);
      line-height: 1.85;
      margin-bottom: 16px;
    }
    .doc-body ul {
      margin: 0 0 16px 20px;
    }
    .doc-body ul li {
      font-size: 0.92rem;
      color: var(--muted);
      line-height: 1.85;
      margin-bottom: 6px;
    }
    .doc-body a {
      color: var(--accent);
      text-decoration: none;
    }
    .doc-body a:hover { text-decoration: underline; }
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.05em;
      transition: color 0.2s;
      padding: 40px 60px 0;
      position: relative;
      z-index: 1;
    }
    .back-link:hover { color: var(--accent); }
    @media (max-width: 768px) {
      .page-hero { padding: 140px 24px 60px; }
      .doc-body { padding: 60px 24px 80px; }
      .back-link { padding: 30px 24px 0; }
    }
