:root {
    --bg: #0f1115;
    --bg-elevated: #151922;
    --bg-soft: #1b2130;

    --text: #f4f6fb;
    --text-muted: #a8b0c2;
    --text-soft: #7f899d;

    --primary: #6ea8fe;
    --primary-strong: #3d8bfd;
    --accent: #5eead4;
    --warning: #facc15;
    --danger: #fb7185;

    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);

    --container: 1120px;
    --radius: 8px;

    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    min-height: 100%;
    scroll-behavior: smooth;
  }

  body {
    min-height: 100%;
    margin: 0;
    background:
      radial-gradient(circle at top left, rgba(110, 168, 254, 0.12), transparent 32rem),
      linear-gradient(180deg, #0f1115 0%, #10141c 52%, #0f1115 100%);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
  }

  img,
  svg {
    max-width: 100%;
    display: block;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  ::selection {
    background: rgba(110, 168, 254, 0.35);
  }

  /* Layout */

  .container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
  }

  .section {
    padding: 5rem 0;
  }

  .section-sm {
    padding: 3rem 0;
  }

  .page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1;
  }

  /* Header / Nav */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 17, 21, 0.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }

  .nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--bg-soft), rgba(110, 168, 254, 0.18));
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 600;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--text);
  }

  /* Hero */

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 4rem;
    align-items: center;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(94, 234, 212, 0.55);
  }

  h1,
  h2,
  h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: 0;
  }

  h1 {
    max-width: 820px;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    font-weight: 750;
  }

  h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 720;
  }

  h3 {
    font-size: 1.35rem;
    font-weight: 700;
  }

  .lead {
    max-width: 680px;
    margin: 1.35rem 0 0;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  /* Buttons */

  .btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn-primary {
    background: var(--primary);
    color: #08111f;
  }

  .btn-primary:hover {
    background: var(--primary-strong);
  }

  .btn-secondary {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
  }

  .btn-secondary:hover {
    border-color: rgba(110, 168, 254, 0.48);
    background: rgba(110, 168, 254, 0.08);
  }

  /* Cards */

  .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    padding: 20px;
  }

  .card-body {
    padding: 1.5rem;
  }

  .grid {
    display: grid;
    gap: 1.25rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
  }

  .feature-card p {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
  }

  /* Tags */

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(110, 168, 254, 0.26);
    border-radius: 999px;
    background: rgba(110, 168, 254, 0.08);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
  }

  /* Forms */

  .form {
    display: grid;
    gap: 1rem;
  }

  .form-row {
    display: grid;
    gap: 0.4rem;
  }

  label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 650;
  }

  input,
  textarea,
  select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    padding: 0.8rem 0.9rem;
    outline: none;
  }

  textarea {
    min-height: 140px;
    resize: vertical;
  }

  input:focus,
  textarea:focus,
  select:focus {
    border-color: rgba(110, 168, 254, 0.72);
    box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.16);
  }

  /* Utilities */

  .muted {
    color: var(--text-muted);
  }

  .soft {
    color: var(--text-soft);
  }

  .mono {
    font-family: var(--font-mono);
  }

  .divider {
    height: 1px;
    margin: 2rem 0;
    background: var(--border);
  }

  .surface {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
  }

  /* Footer */

  .site-footer {
    border-top: 1px solid var(--border);
    padding: 2.25rem 0;
    background: rgba(15, 17, 21, 0.72);
    color: var(--text-soft);
    font-size: 0.92rem;
  }

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .footer-copy p {
    margin: 0.35rem 0 0;
  }

  .footer-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .footer-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(94, 234, 212, 0.5);
  }

  .footer-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .footer-nav h4 {
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .social-links a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  }

  .social-links a:hover,
  .social-links a:focus-visible {
    border-color: rgba(110, 168, 254, 0.48);
    background: rgba(110, 168, 254, 0.08);
    color: var(--text);
    transform: translateY(-1px);
  }

  .social-links a:focus-visible {
    outline: 3px solid rgba(110, 168, 254, 0.22);
    outline-offset: 2px;
  }

  /* Responsive */

  @media (max-width: 820px) {
    .nav {
      min-height: 72px;
      height: auto;
      padding: 0.85rem 0;
      align-items: center;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .nav-toggle {
      display: inline-grid;
    }

    .nav-links {
      width: 100%;
      max-height: 0;
      overflow: hidden;
      align-items: stretch;
      flex-direction: column;
      gap: 0.25rem;
      padding: 0;
      opacity: 0;
      transition: max-height 180ms ease, opacity 160ms ease, padding 160ms ease;
    }

    .nav-links.is-open {
      max-height: 320px;
      padding: 0.5rem 0 0.25rem;
      opacity: 1;
    }

    .nav-links a {
      display: block;
      padding: 0.75rem 0;
      border-top: 1px solid var(--border);
    }

    .hero {
      padding-top: 4rem;
    }

    .hero-grid,
    .grid-2,
    .grid-3 {
      grid-template-columns: 1fr;
    }

    .section {
      padding: 3.5rem 0;
    }

    .footer-inner {
      align-items: flex-start;
      flex-direction: column;
    }

    .footer-nav {
      width: 100%;
      align-items: flex-start;
      flex-direction: column;
      gap: 0.75rem;
    }

    .social-links {
      width: 100%;
      flex-wrap: wrap;
    }

    .social-links a {
      min-height: 40px;
    }
  }
