/* QuantumEdge - company website. Plain CSS, no external fonts or scripts. */
:root {
  --bg: #070b18;
  --bg-2: #0b1124;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --fg: #eef1fb;
  --fg-2: #c3c9dc;
  --muted: #8f97b2;
  --accent: #7c8cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 140, 255, .14);
  --ok: #34d399;
  --bad: #f87171;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -24px rgba(0, 0, 0, .7);
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  /* soft glow + faint grid behind the top of every page */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 18% 0%, rgba(124, 140, 255, .22), transparent 70%),
    radial-gradient(520px 300px at 85% 10%, rgba(34, 211, 238, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
::selection { background: rgba(124, 140, 255, .35); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 24, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand span b { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--fg-2); text-decoration: none; transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav a.nav-cta { margin-left: 6px; color: #0a0f22; background: linear-gradient(90deg, #a5b0ff, #67e8f9); font-weight: 600; }
.nav a.nav-cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); cursor: pointer; }
.menu-btn svg { margin: auto; }
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: rgba(7, 11, 24, .97); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s, filter .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #0a0f22; background: linear-gradient(90deg, #a5b0ff, #67e8f9); box-shadow: 0 10px 30px -12px rgba(103, 232, 249, .55); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--fg); background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(10, 15, 34, .35); border-top-color: #0a0f22; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero { padding-top: 88px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; margin-bottom: 22px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--fg-2); font-size: 13px; font-weight: 500;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.hero h1 { max-width: 880px; font-size: clamp(36px, 4.9vw, 60px); font-weight: 750; letter-spacing: -.035em; }
.grad { background: linear-gradient(92deg, #b4bcff 0%, #7c8cff 35%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 680px; margin: 22px 0 34px; font-size: clamp(17px, 2vw, 19.5px); color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--accent-2); }

.page-hero { padding-top: 72px; padding-bottom: 36px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); }
.page-hero .lead { max-width: 720px; margin: 16px 0 0; font-size: 18px; color: var(--fg-2); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker { display: block; margin-bottom: 10px; color: var(--accent-2); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { margin: 14px 0 0; color: var(--fg-2); font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); box-shadow: var(--shadow);
}
.card h3 { margin: 18px 0 8px; font-size: 18.5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: #c7ceff; background: var(--accent-soft); border: 1px solid rgba(124, 140, 255, .25);
}
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.card li { position: relative; padding-left: 20px; color: var(--fg-2); font-size: 14.5px; }
.card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 30px;
  border: 1px solid rgba(124, 140, 255, .3); border-radius: var(--radius);
  background: radial-gradient(500px 200px at 0% 0%, rgba(124, 140, 255, .16), transparent 70%), var(--bg-2);
}
.notice h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.notice p { color: var(--fg-2); }
.notice p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .notice { grid-template-columns: 1fr; padding: 22px; } }

.steps { counter-reset: s; }
.steps .card { padding-top: 22px; }
.steps .card::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 700; font-size: 15px; color: #0a0f22; background: linear-gradient(135deg, #a5b0ff, #67e8f9);
}

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 34px;
  border: 1px solid var(--border-strong); border-radius: 20px;
  background: radial-gradient(420px 180px at 100% 0%, rgba(34, 211, 238, .16), transparent 70%), radial-gradient(420px 180px at 0% 100%, rgba(124, 140, 255, .18), transparent 70%), var(--bg-2);
}
.cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); }
.cta-band p { margin: 8px 0 0; color: var(--fg-2); }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 920px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { padding: 30px; }
@media (max-width: 560px) { .form-card { padding: 20px; } }
.form-card h2 { font-size: 22px; margin-bottom: 4px; }
.form-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--fg); }
.field label .opt { margin-left: 6px; font-weight: 400; color: var(--muted); }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; color: var(--fg); background: rgba(3, 6, 16, .55); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.textarea.mono { font-family: var(--mono); font-size: 13.5px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238f97b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select option { color: #0a0f22; }
.input::placeholder, .textarea::placeholder { color: #626a86; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .24); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 140, 255, .2); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; color: var(--fg-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 420px; }
.form-foot small a { color: var(--fg-2); }
.alert { display: none; margin-top: 18px; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 14.5px; }
.alert.show { display: block; }
.alert.bad { color: #fecaca; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); }
.success { text-align: center; padding: 26px 8px 10px; }
.success .ok-badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; color: var(--ok); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); }
.success h2 { font-size: 24px; margin-bottom: 10px; }
.success p { color: var(--fg-2); max-width: 460px; margin-left: auto; margin-right: auto; }
.ref { display: inline-block; margin: 6px 0 18px; padding: 6px 14px; border-radius: 8px; font-family: var(--mono); font-size: 15px; background: var(--surface-2); border: 1px solid var(--border-strong); }

.side { display: grid; gap: 18px; }
.side .card { padding: 22px; }
.side h3 { margin: 0 0 10px; font-size: 16.5px; display: flex; align-items: center; gap: 10px; }
.side h3 svg { color: var(--accent-2); flex: none; }
.side p, .side li { font-size: 14.5px; }
.side .card ul { margin-top: 8px; }
.side a.link { color: #b4bcff; font-weight: 600; text-decoration: none; }
.side a.link:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags span { padding: 5px 11px; border-radius: 999px; font-size: 13px; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: #b4bcff; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; padding: 44px 0 36px; border-top: 1px solid var(--border); background: rgba(3, 6, 16, .5); }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot p { margin: 12px 0 0; max-width: 420px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--fg-2); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--fg); }
.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 0; }
.nf .code { font-size: clamp(72px, 14vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.nf p { color: var(--fg-2); margin: 16px 0 28px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.tight-top { padding-top: 24px; }
.noscript-note { margin-top: 14px; }
.field label.check { display: flex; margin-bottom: 0; font-size: 14px; font-weight: 400; color: var(--fg-2); }

/* home hero: text + illustration */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-art { max-width: 520px; } }

/* "Why QuantumEdge" pillars */
.pillar { padding-left: 30px; }
.pillar::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.pillar h3 { margin-top: 0; }
