/* GridiIO pre-launch site */
:root {
  --blue: #135cee;
  --blue-600: #0f4cc7;
  --blue-50: #eef3fe;
  --charcoal: #0b0b0b;
  --charcoal-2: #151617;
  --ink: #0b0b0b;
  --ink-2: #3b3f45;
  --ink-3: #6b7078;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --error: #c62828;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 8px 24px rgba(11, 11, 11, 0.06);
  --container: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 123px; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 68px;
  background: #fff; border-bottom: 1px solid var(--line);
  display: none;
}
.site-nav.open { display: block; }
.site-nav ul { display: flex; flex-direction: column; padding: 8px 20px 20px; }
.site-nav a {
  display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 1px solid var(--line-2);
}
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 8px; padding: 0; }
  .site-nav a { padding: 8px 14px; border: 0; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
  .site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
  .site-nav .nav-cta { margin-left: 8px; background: var(--charcoal); color: #fff; padding: 9px 16px; }
  .site-nav .nav-cta:hover { background: #222; color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #d4d7dc; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Grid background ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 11, 11, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 11, 11, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%);
}
.grid-bg-dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 60%, #000 25%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 60%, #000 25%, transparent 90%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-inner { position: relative; display: grid; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(19, 92, 238, 0.15); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
}
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 36em; line-height: 1.6; }
.hero-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.hero-promise { margin-top: 32px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.bar { display: inline-block; width: 36px; height: 4px; border-radius: 4px; background: var(--blue); }

.hero-mark { margin: 0; }
.mark-panel {
  position: relative;
  background: var(--charcoal);
  border-radius: 20px;
  padding: 28px 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11, 11, 11, 0.45);
}
.mark-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 48%, #000 80%);
          mask-image: radial-gradient(ellipse at center, transparent 48%, #000 80%);
}
.mark-nodes { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(19, 92, 238, 0.55); }
.mark-img { position: relative; margin: 0 auto; width: 100%; max-width: 460px; }

@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 980px) {
  .hero { padding: 96px 0 104px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .mark-panel { padding: 48px 32px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 72px 0; }
@media (min-width: 980px) { .section { padding: 112px 0; } }
.section-head { max-width: 780px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker-light { color: #7fa6ff; }
.section h2 { margin-top: 14px; font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.section-lead { margin-top: 18px; font-size: 1.075rem; color: var(--ink-2); max-width: 44em; }

/* Vision */
.vision { border-top: 1px solid var(--line-2); }
.pillars { margin-top: 48px; display: grid; gap: 16px; counter-reset: p; }
.pillar {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.pillar-visual { height: 72px; margin-bottom: 22px; }
.pillar-visual svg { height: 100%; width: auto; overflow: visible; }
.pillar-visual .ln { stroke: #b9bec6; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pillar-visual .accent-ln { stroke: var(--blue); stroke-width: 2; }
.pillar-visual .nd { fill: var(--charcoal); }
.pillar-visual .nd.muted { fill: #fff; stroke: #9aa0a8; stroke-width: 1.5; }
.pillar-visual .nd.accent { fill: var(--blue); }
.pillar-visual .bx { fill: var(--bg-soft); stroke: #c9cdd3; stroke-width: 1.5; }
.pillar-num { position: absolute; top: 24px; right: 26px; font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pillar h3 { font-size: 1.2rem; font-weight: 600; }
.pillar p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Who it serves */
.serves { background: var(--bg-soft); }
.audience { margin-top: 44px; display: grid; gap: 12px; }
.audience li {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em;
}
.aud-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue);
}
.aud-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .audience { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .audience li { grid-column: span 2; flex-direction: column; align-items: flex-start; padding: 26px; min-height: 156px; }
  .audience li:nth-child(4) { grid-column: 2 / span 2; }
}

/* Platform (charcoal) */
.platform { background: var(--charcoal); color: #fff; overflow: hidden; }
.platform .section-lead { color: #b5bac2; }
.platform .container { position: relative; }
.flow { margin-top: 52px; display: grid; gap: 20px; align-items: center; }
.flow-col {
  background: var(--charcoal-2); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius); padding: 24px;
}
.flow-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa0a8; margin-bottom: 14px; }
.flow-col li {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); font-weight: 500; font-size: 15.5px;
}
.flow-col li:first-child { border-top: 0; }
.flow-col li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid #7d838c;
}
.flow-out li::before { background: var(--blue); border-color: var(--blue); }

.flow-core { position: relative; display: flex; justify-content: center; padding: 18px 0; }
.flow-core::before { /* vertical connector on mobile */
  content: ""; position: absolute; left: 50%; top: -20px; bottom: -20px; width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), var(--blue), rgba(255,255,255,0.15));
}
.core-node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 30px; min-width: 220px;
  background: var(--charcoal); border: 1px solid rgba(19, 92, 238, 0.6); border-radius: 18px;
  box-shadow: 0 0 0 6px rgba(19, 92, 238, 0.08), 0 0 0 14px rgba(19, 92, 238, 0.04);
}
.core-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.core-sub { font-size: 13px; color: #9aa0a8; font-weight: 500; }
.badge {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: #cfe0ff; background: rgba(19, 92, 238, 0.18); border: 1px solid rgba(19, 92, 238, 0.5);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fa6ff; }

@media (min-width: 980px) {
  .flow { grid-template-columns: 1fr auto 1fr; gap: 0; }
  .flow-core { padding: 0 56px; }
  .flow-core::before {
    left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.18), var(--blue) 35%, var(--blue) 65%, rgba(255,255,255,0.18));
  }
  .flow-core::after { /* end nodes */
    content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 9px; margin-top: -4px;
    background:
      radial-gradient(circle, #7d838c 3.5px, transparent 4px) left center / 9px 9px no-repeat,
      radial-gradient(circle, var(--blue) 3.5px, transparent 4px) right center / 9px 9px no-repeat;
  }
  .flow-col { padding: 28px; }
}

/* Partnership */
.partner-inner { display: grid; gap: 44px; }
.interest-title { margin-top: 36px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.interests { margin-top: 14px; display: grid; gap: 10px; }
.interest {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.interest::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #b9bec6; background: #fff;
}
.interest:hover { border-color: #b9bec6; }
.interest[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); }
.interest[aria-pressed="true"]::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 4px, #fff 4.5px); }
.interest-hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
@media (min-width: 600px) { .interests { grid-template-columns: 1fr 1fr; } }

.form-card {
  position: relative; scroll-margin-top: 88px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow);
}
.form-card::before { content: ""; position: absolute; left: 24px; top: -1px; width: 56px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
@media (min-width: 600px) { .form-card { padding: 36px; } .form-card::before { left: 36px; } }
@media (min-width: 1024px) {
  .partner-inner { grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
  .form-card { position: sticky; top: 92px; }
}
.form-title { font-size: 1.3rem; font-weight: 700; }
.form-sub { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
form { margin-top: 24px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--blue); }
.optional { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: #fff; border: 1px solid #d4d7dc; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%233b3f45' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19, 92, 238, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15); }
.error { font-size: 13px; color: var(--error); margin-top: 6px; min-height: 0; }
.error:empty { display: none; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--blue); }
.field-check label { font-weight: 400; font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.field-check .error { grid-column: 2; margin-top: 0; }

.form-status { font-size: 14px; color: var(--error); margin-bottom: 12px; }
.form-status:empty { display: none; }

.form-success { text-align: left; padding: 8px 0; }
.form-success:focus { outline: none; }
.success-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.success-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin-top: 20px; font-size: 1.35rem; font-weight: 700; }
.form-success p { margin-top: 12px; color: var(--ink-2); }
.success-meta { font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: #fff; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand img { width: 112px; }
.footer-brand p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.footer-contact { display: grid; gap: 6px; font-size: 15px; }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-contact a:hover { color: var(--blue); text-decoration: underline; }
.footer-legal {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-3);
}
.footer-legal ul { display: flex; gap: 20px; }
.footer-legal a { color: var(--ink-3); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-contact { text-align: right; }
}

/* ---------- Simple pages (privacy / terms / thank-you) ---------- */
.simple-page { padding: 80px 0 96px; min-height: 60vh; }
.simple-page .container { max-width: 760px; }
.simple-page h1 { margin-top: 14px; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.simple-page p { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; }
.simple-page .btn { margin-top: 32px; }

/* Legal pages (privacy, terms) */
.simple-page .legal-meta { margin-top: 10px; font-size: 0.95rem; color: var(--ink-3, var(--ink-2)); }
.legal-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(11, 11, 11, 0.08); }
.legal-section h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.legal-section p { margin-top: 12px; }
.legal-section ul { margin: 14px 0 0; padding-left: 1.25rem; color: var(--ink-2); font-size: 1.05rem; }
.legal-section li { margin-top: 6px; list-style: disc; }
.legal-section a { color: var(--blue, #135CEE); text-decoration: underline; text-underline-offset: 2px; }
.simple-page .legal .btn { margin-top: 48px; }
