  :root {
    --ink: #0B0B0B;
    --panel: #161616;
    --paper: #F5F5F3;
    --line: #262626;
    --muted: #8A8A8A;
    --grad-a: #3B6BFF;
    --grad-b: #38D6C5;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
  }
  a { color: inherit; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-in { animation: fadeUp 0.8s cubic-bezier(.2,.7,.3,1) both; }
  .d1 { animation-delay: 0.05s; }
  .d2 { animation-delay: 0.18s; }
  .d3 { animation-delay: 0.32s; }
  .d4 { animation-delay: 0.46s; }

  @keyframes crossIn {
    0% { transform: translateX(-14px) rotate(-2deg); opacity: 0; }
    60% { transform: translateX(3px) rotate(1deg); opacity: 1; }
    100% { transform: translateX(0) rotate(0); opacity: 1; }
  }
  .mark-icon { animation: crossIn 0.9s cubic-bezier(.2,.7,.3,1) both; }

  header.top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 5vw;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand img.icon { height: 28px; width: auto; display: block; }
  .brand .word {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
  }

  .hero {
    position: relative;
    padding: 6vw 5vw 10vw;
    text-align: center;
  }
  .hero-logo {
    max-width: min(78vw, 360px);
    width: 100%;
    height: auto;
    margin: 0 auto 8px;
    display: block;
  }
  .hero-inner { max-width: 620px; margin: 0 auto; }

  .eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 26px;
  }
  .eyebrow .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    margin-right: 8px;
  }

  h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }
  .sub {
    font-size: 16.5px;
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 38px;
  }

  form.waitlist {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--paper);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease;
  }
  input[type="email"]:focus { border-color: var(--grad-b); }
  button.cta {
    padding: 14px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    color: #06110f;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  button.cta:hover { transform: translateY(-1px); opacity: 0.92; }
  .form-note { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 16px; }

  section.features {
    padding: 20px 5vw 8vw;
    border-top: 1px solid var(--line);
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
  }
  .feature {
    background: var(--panel);
    padding: 34px 26px;
    transition: background 0.2s ease;
  }
  .feature:hover { background: #1B1B1B; }
  .feature .tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 14px;
  }
  .feature h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
  }
  .feature p { color: var(--muted); font-size: 14px; }

  @media (max-width: 720px) {
    .features-grid { grid-template-columns: 1fr; }
  }

  footer {
    padding: 34px 5vw 54px;
    text-align: center;
    border-top: 1px solid var(--line);
  }
  .socials { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; }
  .socials a {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
  }
  .socials a:hover { color: var(--paper); border-color: var(--muted); }
  footer .fine { font-size: 12px; color: #4a4a4a; }

/* Nav links */
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }

/* About page */
.about-hero {
  padding: 8vw 5vw 4vw;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.about-hero h1 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 18px; }
.about-hero p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 0;
}
.about-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3vw 5vw 3vw;
}
.about-section h2 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.about-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #C7C7C7;
  margin-bottom: 14px;
}
.founder-card {
  max-width: 720px;
  margin: 2vw 5vw 6vw;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.founder-card .role {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.founder-card p { font-size: 15px; color: #C7C7C7; margin: 0; }

/* Network hero graphic */
.network-arc { display: block; margin: 20px auto 0; max-width: 720px; width: 100%; height: 200px; opacity: 0.95; }

/* Hero nav cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 2vw auto 0;
  padding: 0 5vw;
}
.hero-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 30px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-card:hover { transform: translateY(-3px); border-color: #3a3a3a; }
.hero-card .ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
}
.hero-card .ring svg { width: 28px; height: 28px; }
.hero-card h3 { font-size: 18px; font-weight: 600; margin-top: 4px; }
.hero-card .underline { width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero-card .go {
  margin-top: 6px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
}
.hero-card .go svg { width: 15px; height: 15px; }
.hero-card.labs { color: #A78BFA; }
.hero-card.community { color: #38D6C5; }
.hero-card.updates { color: #3B6BFF; }

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

/* BUILD / CONNECT / EVOLVE strip */
.value-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 34px 5vw 10px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.value-strip .value { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.value-strip .value .label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px;
}
.value-strip .value .desc { font-size: 12.5px; color: var(--muted); }

/* Tool card clickability + coming soon modal */
.tool-card { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.tool-card:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.coming-soon-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.coming-soon-overlay.open { display: flex; }
.coming-soon-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: 340px;
  text-align: center;
}
.csb-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.csb-body { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.tools-section { padding: 30px 5vw 60px; max-width: 1000px; margin: 0 auto; }
.tools-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.tools-head h2 { font-size: 20px; font-weight: 700; }
.tools-head a { font-size: 13px; color: var(--grad-a); text-decoration: none; font-family: 'Space Mono', monospace; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.tool-card .box { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.tool-card .box svg { width: 16px; height: 16px; }
.tool-card h4 { font-size: 14.5px; font-weight: 600; }
.tool-card p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.tool-card .tag {
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: auto;
}
@media (max-width: 860px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }

/* Shared nav/hamburger/CTA — moved here so every page renders consistently */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger svg { width: 22px; height: 22px; color: var(--paper); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 5vw 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

.cta-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--grad-a);
  color: var(--paper);
  background: rgba(59,107,255,0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s ease;
}
.cta-btn:hover { background: rgba(59,107,255,0.16); }
.cta-btn svg { width: 13px; height: 13px; }

/* Accessible focus states */
a:focus-visible, button:focus-visible, .tool-card:focus-visible,
.hero-card:focus-visible, .cta-btn:focus-visible, .hamburger:focus-visible,
.nav-links a:focus-visible, .mobile-menu a:focus-visible, input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--grad-b);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mark-icon { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* Tool cards as real buttons */
.tool-card {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

/* Visible form labels */
.field-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: left;
}
.field-group { text-align: left; margin-bottom: 4px; }

/* Modal dialog box gets programmatic focus target */
.coming-soon-box:focus { outline: none; }

/* PDF tool pages: shared drop zone + file list */
.pdf-tool-wrap { max-width: 560px; margin: 0 auto; padding: 2vw 5vw 60px; }
.drop-zone {
  border: 2px dashed var(--line); border-radius: 16px; padding: 40px 20px;
  text-align: center; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 20px;
}
.drop-zone.drag-over { border-color: var(--grad-b); background: rgba(56,214,197,0.06); }
.drop-zone svg { width: 32px; height: 32px; color: var(--muted); margin-bottom: 10px; }
.drop-zone p { color: var(--muted); font-size: 14px; }
.drop-zone .browse-link { color: var(--grad-b); text-decoration: underline; }
.file-list { margin-bottom: 20px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
  background: var(--panel); font-size: 13.5px;
}
.file-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item button {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
}
.pdf-big-btn {
  width: 100%; padding: 14px 30px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #06110f;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer;
}
.pdf-big-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pdf-status { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; min-height: 20px; }

/* Shared auth styles — used by the login/signup modal */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.auth-tab.active { background: rgba(59,107,255,0.14); border-color: var(--grad-a); color: var(--paper); }
.auth-tab:hover:not(.active) { border-color: var(--grad-b); color: var(--paper); }
.auth-panel { display: none; flex-direction: column; gap: 14px; }
.auth-panel.active { display: flex; }
.auth-input {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #14161A; color: var(--paper); font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; outline: none;
}
.auth-input:focus { border-color: var(--grad-b); }
.auth-msg { font-size: 13px; text-align: center; min-height: 18px; }
.auth-msg.error { color: #E0836A; }
.auth-msg.success { color: var(--grad-b); }

/* Auth modal (login/signup overlay) */
.mc-auth-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.mc-auth-overlay.open { display: flex; }
.mc-auth-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; max-width: 380px; width: 100%; position: relative;
}
.mc-auth-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.mc-auth-close:hover { color: var(--paper); }
.mc-pw-wrap { position: relative; }
.mc-pw-wrap .auth-input { padding-right: 44px; }
.mc-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px;
}
.mc-pw-toggle:hover { color: var(--paper); }
.mc-auth-row { display: flex; justify-content: flex-end; align-items: center; }
.mc-link-btn {
  background: none; border: none; padding: 0; color: var(--grad-b); font-size: 13px;
  cursor: pointer; text-decoration: underline; font-family: 'Space Grotesk', sans-serif;
}
.mc-consent-label {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 13px;
  color: var(--muted); line-height: 1.5; cursor: pointer;
}
.mc-consent-label input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--grad-b); flex-shrink: 0; }
.mc-auth-switch { font-size: 13px; text-align: center; color: var(--muted); margin: 0; }
.mc-auth-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.mc-auth-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.mc-back-row { margin-bottom: 4px; }

/* Signed-in nav user chip */
.mc-user-chip { display: flex; align-items: center; gap: 10px; position: relative; cursor: pointer; }
.mc-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--grad-b);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--grad-b);
  flex-shrink: 0;
}
.mc-user-meta { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.mc-user-name { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--paper); }
.mc-user-name svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.mc-user-chip.open .mc-user-name svg { transform: rotate(180deg); }
.mc-user-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-family: 'Space Mono', monospace; }
.mc-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.mc-user-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; min-width: 160px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  z-index: 50;
}
.mc-user-dropdown.open { display: block; }
.mc-user-dropdown button, .mc-user-dropdown a {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  background: none; border: none; color: var(--paper); font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px; cursor: pointer; text-decoration: none;
}
.mc-user-dropdown button:hover, .mc-user-dropdown a:hover { background: rgba(255,255,255,0.06); }

/* Welcome modal (shown after successful login) */
.mc-welcome-box { max-width: 460px; text-align: center; overflow: hidden; }
.mc-welcome-mascot { width: 160px; height: auto; margin: 0 auto 10px; display: block; }
.mc-welcome-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.mc-welcome-title span { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-welcome-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.mc-welcome-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.mc-welcome-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 8px; text-decoration: none; display: flex; flex-direction: column; align-items: center;
  gap: 6px; transition: border-color 0.15s ease;
}
.mc-welcome-card:hover { border-color: var(--grad-b); }
.mc-welcome-card-icon svg { width: 22px; height: 22px; }
.mc-welcome-card-title { font-size: 12.5px; font-weight: 700; }
.mc-welcome-card-desc { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.mc-deco-dot {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--grad-b), var(--grad-a));
  opacity: 0.5; filter: blur(1px); pointer-events: none;
}
.mc-deco-dot-1 { width: 14px; height: 14px; top: 18px; left: 24px; }
.mc-deco-dot-2 { width: 9px; height: 9px; top: 60px; right: 40px; opacity: 0.35; }
.mc-deco-dot-3 { width: 11px; height: 11px; bottom: 30px; left: 40px; opacity: 0.3; }

@media (max-width: 480px) {
  .mc-welcome-cards { grid-template-columns: 1fr; }
}
