/* =========================================================
   Quantum Soq — Stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-2: #0d1220;
  --surface: #131a2c;
  --surface-2: #182037;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --text-dim: #a4adbf;
  --text-mute: #6f7a91;
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --success: #22d3a0;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 60px rgba(0, 0, 0, 0.55);
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.25s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin: 14px 0 12px;
}
.sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
}
.orb-1 { width: 480px; height: 480px; background: #00d4ff; top: -120px; left: -120px; }
.orb-2 { width: 520px; height: 520px; background: #7c3aed; top: 30%; right: -160px; }
.orb-3 { width: 380px; height: 380px; background: #22d3a0; bottom: -120px; left: 30%; opacity: 0.18; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.85);
  border-bottom-color: var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: inline-flex; }
.brand-text { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-text-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim); font-weight: 500; font-size: 0.95rem;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.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); }
.mobile-menu {
  display: none; flex-direction: column; gap: 16px; padding: 20px 24px 28px;
  border-top: 1px solid var(--border); background: var(--bg-2);
}
.mobile-menu a { color: var(--text); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 50%, var(--accent-2) 100%);
  color: #04111a;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255, 255, 255, 0.25); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px; border: 1px solid var(--accent-soft); border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.18);
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.display {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; margin: 18px 0 22px;
}
.grad-text {
  background: linear-gradient(90deg, var(--accent) 0%, #38bdf8 50%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.9rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }

/* Hero visual: floating cards */
.hero-visual { position: relative; height: 460px; }
.card-stack { position: relative; width: 100%; height: 100%; }
.float-card {
  position: absolute; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 18px;
  animation: float 8s ease-in-out infinite;
}
.card-1 {
  top: 0; left: 0; width: 78%; padding: 0; overflow: hidden;
  animation-delay: 0s;
}
.card-1 .card-row {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25); border-bottom: 1px solid var(--border);
}
.card-1 .card-title { margin-left: 8px; color: var(--text-dim); font-family: "JetBrains Mono", monospace; font-size: 0.85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.code { margin: 0; padding: 18px 18px 22px; font-family: "JetBrains Mono", monospace; font-size: 0.85rem; line-height: 1.6; color: var(--text-dim); overflow: hidden; }
.c-com { color: #6f7a91; }
.c-key { color: var(--accent); }
.c-fn { color: #fbbf24; }
.c-tag { color: #f472b6; }

.card-2 {
  bottom: 16px; right: 0; width: 64%;
  animation-delay: -2.5s;
  display: flex; flex-direction: column; gap: 14px;
}
.metric-label { color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.metric-value { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; margin: 4px 0 8px; }
.metric-unit { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

.card-3 {
  top: 38%; right: 22%; width: 38%; padding: 16px;
  animation-delay: -5s;
}
.stack-icons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.si {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border); font-weight: 700; font-size: 0.95rem;
  color: var(--text);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Logo strip ---------- */
.logo-strip { padding: 32px 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(13, 18, 32, 0.5); }
.strip-label { text-align: center; color: var(--text-mute); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.strip-track {
  display: flex; gap: 56px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip-track span {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.1rem;
  color: var(--text-mute); letter-spacing: 0.15em; flex-shrink: 0;
  animation: scroll 28s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--t), border-color var(--t), background var(--t);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 212, 255, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t); pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 12px; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; }
.service-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.9rem;
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 2px; background: var(--accent); border-radius: 2px;
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stat-num {
  font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 0.8rem; margin-top: 4px; }

.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color var(--t), background var(--t);
}
.why-list li:hover { border-color: var(--border-strong); }
.why-num {
  font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  height: 40px;
}
.why-list h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.why-list p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Process ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step;
  position: relative;
}
.process-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: relative; transition: transform var(--t), border-color var(--t);
}
.process-step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.step-num {
  font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--accent);
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 24px 0 96px; }
.cta-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.12));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(0, 212, 255, 0.15), transparent 60%);
}
.cta-card .h2 { margin: 0 0 6px; }
.cta-card .sub { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.contact-info li {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.ci-icon {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); border-radius: 10px; flex-shrink: 0;
}
.ci-label { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.ci-value { font-weight: 500; color: var(--text); }
.ci-value:hover { color: var(--accent); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); font: inherit; font-size: 0.95rem;
  transition: border-color var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form-note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--text-mute); text-align: center; margin: 0; }
.form-note.is-success { color: var(--success); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-2);
  padding: 56px 0 24px; margin-top: 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.footer-tag { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; max-width: 32ch; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.95rem; transition: color var(--t); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; color: var(--text-mute); font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 32px 0 64px; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cta-card { flex-direction: column; text-align: center; align-items: stretch; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu[data-open="true"] { display: flex; }
  .hero-trust { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .cta-card { padding: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .display { font-size: clamp(2.1rem, 8vw, 3rem); }
  .container { padding: 0 18px; }
}
@media (max-width: 420px) {
  .hero-cta .btn { flex: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
