:root {
    --bg: #000000;
    --panel: #0b1512;
    --panel2: #0e1b17;
    --line: #1b2c28;
    --teal: #3fb0a2;
    --teal-bright: #52c4b6;
    --teal-dim: #2b7f76;
    --text: #e9efef;
    --muted: #9db0b0;
    --faint: #6b7f7f;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

  nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(4, 12, 11, .94); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; max-width: 1240px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
  .brand img { width: 34px; height: 34px; object-fit: contain; }
  .brand span { font-size: 14px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
  .nav-actions, nav .links { display: flex; align-items: center; gap: 24px; }
  nav .links a {
    position: relative; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 14px;
    transition: color 150ms ease;
  }
  nav .links a::after {
    position: absolute; right: 0; bottom: 3px; left: 0; height: 2px;
    background: var(--teal-bright); content: ""; transform: scaleX(0); transform-origin: left;
    transition: transform 180ms ease;
  }
  nav .links a:hover, nav .links a[aria-current="location"] { color: var(--teal-bright); }
  nav .links a[aria-current="location"]::after { transform: scaleX(1); }
  nav .cta {
    padding: 9px 14px; border-radius: 8px; background: var(--teal); color: #00140f;
    text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 700; transition: background 150ms ease;
  }
  nav .cta:hover { background: var(--teal-bright); }
  .nav-cta-short, .menu-toggle { display: none; }
  :where(a, button):focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }

  header.hero {
    padding: clamp(44px, 7vw, 96px) 0;
    background:
      radial-gradient(ellipse at 79% 43%, #123f35 0%, transparent 50%),
      linear-gradient(148deg, #080f11, #070d0d 70%, #0c1916);
  }
  .hero-layout {
    display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center; gap: clamp(28px, 5vw, 76px); max-width: 1240px;
  }
  h1 {
    font-size: clamp(36px, 4.5vw, 65px); line-height: 1.04;
    font-weight: 800; letter-spacing: -.047em; margin-bottom: 20px; text-wrap: balance;
  }
  .lede { color: var(--muted); font-size: 18px; max-width: 43ch; margin-bottom: 18px; }
  .proofline { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
  .proofline strong { color: var(--text); font-weight: 650; }
  .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .hero .ctas { justify-content: flex-start; }
  .btn {
    display: inline-block; padding: 11px 18px; border-radius: 8px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn-primary { background: var(--teal); color: #00140f; }
  .btn-primary:hover { background: var(--teal-bright); }
  .btn-ghost { border: 1px solid #375651; color: var(--text); }
  .btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
  .hero-feature {
    display: block; overflow: hidden; border: 1px solid #49706a; border-radius: 16px;
    background: #0b1716; color: var(--text); text-decoration: none;
    box-shadow: 0 24px 70px #0008; transition: border-color 150ms ease, transform 150ms ease;
  }
  .hero-feature:hover { border-color: var(--teal-bright); transform: translateY(-3px); }
  .hero-feature img { display: block; width: 100%; height: auto; }
  .hero-feature-caption {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 4px 12px; padding: 12px 16px; font-size: 14px;
  }
  .hero-feature-caption > span { color: var(--teal-bright); }
  #cases { background: linear-gradient(152deg, #122622, #0b1514 72%); }
  #cases .cs { background: #0a1715; border-color: #2a4540; }
  #process { background: #080e0d; }
  .cs.is-entering { animation: case-enter 260ms ease-out both; }
  @keyframes case-enter {
    from { opacity: .7; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (max-width: 820px) {
    nav .wrap { padding-inline: 16px; flex-wrap: wrap; }
    .nav-actions { gap: 8px; }
    .brand { gap: 7px; }
    .brand img { width: 29px; height: 29px; }
    .brand span { font-size: 12px; }
    nav .cta { padding: 9px 11px; font-size: 13px; }
    .nav-cta-wide { display: none; }
    .nav-cta-short { display: inline; }
    nav .links { flex-wrap: wrap; gap: 0 14px; }
    nav[data-enhanced] .menu-toggle {
      display: inline-flex; align-items: center; min-height: 39px; padding: 0 10px;
      background: transparent; color: var(--text); border: 1px solid #375651;
      border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer;
    }
    nav[data-enhanced] .links {
      display: none; position: absolute; top: calc(100% + 8px); right: 16px; left: 16px;
      padding: 8px 16px; border: 1px solid #375651; border-radius: 12px; background: #0b1716;
      box-shadow: 0 12px 32px #0009;
    }
    nav[data-enhanced] .links.is-open { display: grid; gap: 0; }
    nav[data-enhanced] .links a { padding-block: 10px; }
    .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  }
  @media (max-width: 370px) {
    .brand span { font-size: 10px; }
    .hero-layout { padding-inline: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    nav a, nav .links a::after, .btn, .hero-feature { transition: none; }
    .btn:hover, .hero-feature:hover { transform: none; }
    .cs.is-entering { animation: none; }
  }
  /* sections */
  section { padding: 50px 0; border-top: 1px solid var(--line); }
  .sec-label {
    color: var(--teal); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    font-weight: 600; margin-bottom: 10px;
  }
  h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 16px; line-height: 1.2; }
  h2 .accent { color: var(--teal); }
  .body-copy p { color: var(--muted); font-size: 16.5px; max-width: 780px; }
  .body-copy p + p { margin-top: 12px; }
  .body-copy strong { color: var(--text); font-weight: 600; }

  /* modules grid */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
  @media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
  .mod {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
  }
  .mod h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
  .mod h3::before { content: ""; display: block; width: 22px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 10px; }
  .mod p { font-size: 14px; color: var(--muted); line-height: 1.55; }
  .grid-note { color: var(--faint); font-size: 13.5px; margin-top: 14px; font-style: italic; }

  /* demo */
  .demo-frame {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px; margin-top: 24px; overflow: hidden;
  }
  .demo-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
  .demo-caption { color: var(--faint); font-size: 13px; margin-top: 12px; font-style: italic; }


  /* case studies */
  .cs {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 20px 22px; margin-top: 16px;
  }
  .cs .tag { color: var(--teal); font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; }
  .cs h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; margin: 8px 0 13px; }
  .cs .case-result { margin-bottom: 16px; color: var(--muted); font-weight: 600; }
  .cs .bn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 720px) { .cs .bn { grid-template-columns: 1fr; } }
  .cs .label {
    color: var(--teal); font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 6px;
  }
  .cs p { font-size: 15px; color: var(--muted); }
  .cs p + p { margin-top: 12px; }

  /* process */
  .steps { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
  .step { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .step .num {
    flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--panel);
    border: 1px solid var(--line); color: var(--teal); font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
  }
  .step h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
  .step p { font-size: 15px; color: var(--muted); max-width: 720px; }
  .need-box {
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--teal);
    border-radius: 10px; padding: 17px 20px; margin-top: 24px;
  }
  .need-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  .need-box ul { list-style: none; }
  .need-box li { color: var(--muted); font-size: 15px; padding: 3px 0 3px 24px; position: relative; }
  .need-box li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

  /* bio */
  .bio-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 20px 22px; display: flex; gap: 20px; align-items: flex-start; margin-top: 20px;
  }
  .bio-card .mark {
    flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px;
    background: #000; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
  }
  .bio-card .mark img { width: 48px; height: 48px; object-fit: contain; }
  .bio-card .mark.photo { width: 96px; height: 96px; }
  .bio-card .mark.photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
  .bio-card p { color: var(--muted); font-size: 15.5px; }
  .bio-card p + p { margin-top: 14px; }
  .bio-card strong { color: var(--text); font-weight: 600; }
  @media (max-width: 560px) { .bio-card { flex-direction: column; } }

  /* contact */
  .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
  @media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .15s ease;
    display: block;
  }
  .contact-card:hover { border-color: var(--teal-dim); }
  .contact-card .c-label { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 8px; }
  .contact-card .c-value { font-size: 17px; font-weight: 700; color: var(--teal-bright); }
  .contact-card .c-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

  footer { border-top: 1px solid var(--line); padding: 30px 0 38px; text-align: center; }
  footer .name { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
  footer .contact { color: var(--muted); font-size: 14.5px; }
  footer .contact a { color: var(--teal); text-decoration: none; }
  footer .contact a:hover { text-decoration: underline; }
  footer .copyright { color: var(--faint); font-size: 12.5px; margin-top: 18px; }
.cube-demo { margin: 1.5rem 0; }
.case-video { display: block; width: 100%; border-radius: 10px; background: #000; }
.demo-frame { margin-top: 20px; }
.process-ctas { margin-top: 30px; }
.contact-note { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
