/* Quantratum — company site */
:root {
  --bg: #07080f; --bg2: #0d0f1c; --ink: #f4f5fb; --soft: #a4a9c3; --dim: #6b7090;
  --line: rgba(255,255,255,.08); --card: rgba(255,255,255,.035);
  --violet: #7b5cff; --cyan: #3ee6ff; --pink: #ff4fa3; --amber: #ffb547;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 17px/1.65 "Inter", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.03em; }

/* Aurora + grain background */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .38; }
.aurora span:nth-child(1) { background: var(--violet); top: -25vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { background: var(--cyan); top: 10vmax; right: -30vmax; opacity: .22; animation: drift2 32s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { background: var(--pink); bottom: -35vmax; left: 15vmax; opacity: .25; animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-16vmax, 18vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(12vmax, -14vmax) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.gridlines { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7,8,15,.55); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px "Space Grotesk", sans-serif; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.orbit { transform-origin: 50% 50%; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--soft); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(72px, 14vh, 150px) 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(62,230,255,.3); padding: 6px 14px; border-radius: 99px; background: rgba(62,230,255,.06); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(46px, 9vw, 104px); line-height: .98; margin: 26px 0 24px; font-weight: 700; }
.shine { background: linear-gradient(100deg, #fff 0%, #cfc6ff 25%, var(--cyan) 45%, var(--pink) 65%, var(--amber) 85%, #fff 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite; }
@keyframes shine { to { background-position: -250% center; } }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--soft); max-width: 640px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 14px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 40px -10px rgba(123,92,255,.8); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(123,92,255,1); }
.btn.ghost { border: 1px solid var(--line); background: var(--card); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

/* Sections */
section { padding: 70px 0; }
.kicker { color: var(--dim); font: 600 13px "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 10px 0 18px; }
.muted { color: var(--soft); }

/* Product showcase */
.showcase { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px;
  border-radius: 34px; padding: clamp(28px, 5vw, 60px); overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, #7b2ff7 0%, #f72585 55%, #ff9e00 110%); box-shadow: 0 40px 120px -40px rgba(247,37,133,.7); }
.showcase::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.28), transparent 45%); pointer-events: none; }
.showcase .app { display: flex; align-items: center; gap: 18px; }
.showcase .app img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.showcase h3 { font-size: clamp(30px, 4.4vw, 46px); margin: 0; line-height: 1.02; }
.showcase p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 480px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tags span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.showcase .go { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; background: #fff; color: #7b2ff7; padding: 12px 20px; border-radius: 14px; }
.phones { position: relative; height: 470px; }
.phone { position: absolute; width: 215px; aspect-ratio: 1125/2436; border-radius: 36px; padding: 9px; background: #0b0b12;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.12); }
.phone img { width: 100%; height: 100%; border-radius: 28px; display: block; object-fit: cover; }
.phone.a { left: 8%; top: 10px; transform: rotate(-7deg); }
.phone.b { right: 4%; top: 40px; transform: rotate(6deg); }
.showcase:hover .phone.a { transform: rotate(-9deg) translateY(-6px); }
.showcase:hover .phone.b { transform: rotate(8deg) translateY(-6px); }
.phone { transition: transform .5s cubic-bezier(.2,.8,.2,1); }

/* Principles with cursor glow */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glow { position: relative; border-radius: 24px; padding: 28px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(123,92,255,.22), transparent 45%); }
.glow:hover::before { opacity: 1; }
.glow .num { font: 700 14px "Space Grotesk", sans-serif; color: var(--cyan); }
.glow h3 { font-size: 24px; margin: 14px 0 8px; }
.glow p { color: var(--soft); margin: 0; }

/* Contact band */
.contact { text-align: center; border-radius: 34px; padding: clamp(40px, 7vw, 80px) 24px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, rgba(62,230,255,.18), transparent 60%), var(--card); }
.contact h2 { margin-top: 0; }
.mail { display: inline-block; margin-top: 12px; font: 600 clamp(20px, 3.4vw, 32px) "Space Grotesk", sans-serif; text-decoration: none;
  border-bottom: 2px solid var(--violet); padding-bottom: 4px; transition: border-color .2s; }
.mail:hover { border-color: var(--cyan); }

footer.site { padding: 40px 0 60px; color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site a { color: var(--dim); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Legal / prose pages */
.prose { max-width: 760px; padding: 60px 0; }
.prose h1 { font-size: clamp(38px, 6vw, 60px); margin: 0 0 8px; }
.prose h2 { font-size: 26px; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--soft); }
.prose a { color: var(--cyan); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .phones { height: 400px; }
  .phone { width: 180px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav nav { gap: 14px; font-size: 14px; }
  .phones { height: 330px; }
  .phone { width: 145px; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .nav .wrap { gap: 12px; }
  .nav nav { gap: 12px; font-size: 13.5px; }
  .logo { font-size: 18px; }
  .logo svg { width: 28px; height: 28px; }
}
html { overflow-x: clip; }
@media (max-width: 440px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding: 12px 0; row-gap: 6px; }
  .nav nav { margin-left: 0; width: 100%; gap: 18px; font-size: 14px; }
}
