/* Vortex Consultancy — site styles */

:root {
  --navy-950: #060d1c;
  --navy-900: #0b1730;
  --navy-800: #13244a;
  --navy-700: #1e3463;
  --ink: #0b1730;
  --text: #334155;
  --muted: #5b6b82;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --cyan: #22d3ee;
  --sky: #0ea5e9;
  --indigo: #6366f1;
  --link: #0369a1;
  --on-dark: #e8eef8;
  --on-dark-muted: #a9b8d0;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 10px 30px rgba(11, 23, 48, .07);
  --max: 1160px;
  --header-h: 72px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
}

.lead { font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--sky) 45%, var(--indigo));
  color: #fff; box-shadow: 0 8px 24px rgba(14, 165, 233, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(14, 165, 233, .36); text-decoration: none; }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); text-decoration: none; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 48, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .16em; }
.brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: .42em; color: var(--on-dark-muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--on-dark-muted); text-decoration: none; font-weight: 550; font-size: .97rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 8px; }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(99, 102, 241, .28), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(34, 211, 238, .16), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px);
}
.hero h1 { color: #fff; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--cyan), #7dd3fc 40%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.hero-visual .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(148, 197, 255, .16);
}
.hero-visual .ring-1 { inset: 0; }
.hero-visual .ring-2 { inset: 12%; border-color: rgba(148, 197, 255, .22); }
.hero-visual .ring-3 { inset: 24%; border-style: dashed; border-color: rgba(148, 197, 255, .28); animation: spin 60s linear infinite reverse; }
.hero-visual .glow {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .45), rgba(99, 102, 241, .15) 55%, transparent 70%);
  filter: blur(24px);
}
.hero-visual img { position: relative; width: 54%; height: auto; animation: spin 40s linear infinite; filter: drop-shadow(0 16px 40px rgba(6, 13, 28, .5)); }
.hero-visual .node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 5px rgba(34, 211, 238, .15), 0 0 18px rgba(34, 211, 238, .8);
}
.hero-visual .node-1 { top: 11%; left: 22%; }
.hero-visual .node-2 { bottom: 16%; right: 9%; background: #a5b4fc; box-shadow: 0 0 0 5px rgba(165, 180, 252, .15), 0 0 18px rgba(165, 180, 252, .8); }
.hero-visual .node-3 { top: 46%; left: -1%; width: 8px; height: 8px; background: #7dd3fc; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-visual img, .hero-visual .ring-3 { animation: none; }
}

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin: 0; padding: 0; list-style: none;
}
.facts li { padding: 22px 20px 26px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.facts strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; }
.facts span { font-size: .9rem; color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 520px) {
  .hero-visual { max-width: 220px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 28px 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #cfdcef; box-shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 18px 40px rgba(11, 23, 48, .1); }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .16));
  color: #0b74c4;
}
.icon svg { width: 24px; height: 24px; }
.card-featured { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-color: var(--navy-700); }
.card-featured h3 { color: #fff; }
.card-featured p { color: var(--on-dark-muted); }
.card-featured .icon { background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(99, 102, 241, .3)); color: var(--cyan); }
.card-featured:hover { border-color: #2c4783; }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Private cloud */
.cloud {
  background:
    radial-gradient(40rem 26rem at 100% 0%, rgba(99, 102, 241, .22), transparent 60%),
    radial-gradient(36rem 24rem at 0% 100%, rgba(34, 211, 238, .12), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
}
.cloud h2 { color: #fff; }
.cloud .lead { color: var(--on-dark-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; margin-top: 3px; color: var(--cyan); }
.checklist strong { color: #fff; font-weight: 650; }

.stack { display: grid; gap: 12px; }
.layer {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 197, 255, .16);
}
.layer:nth-child(1) { margin-inline: 0; }
.layer:nth-child(2) { margin-inline: 4%; }
.layer:nth-child(3) { margin-inline: 8%; }
.layer:nth-child(4) { margin-inline: 12%; }
.layer .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--cyan); box-shadow: 0 0 14px rgba(34, 211, 238, .7); }
.layer:nth-child(2) .dot { background: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, .7); }
.layer:nth-child(3) .dot { background: #818cf8; box-shadow: 0 0 14px rgba(129, 140, 248, .7); }
.layer:nth-child(4) .dot { background: #a5b4fc; box-shadow: 0 0 14px rgba(165, 180, 252, .7); }
.layer b { display: block; color: #fff; font-weight: 650; font-size: 1rem; line-height: 1.3; }
.layer span { display: block; color: var(--on-dark-muted); font-size: .88rem; line-height: 1.4; }
.layer-tag {
  margin-left: auto; flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, .35); padding: 4px 9px; border-radius: 999px;
}
@media (max-width: 520px) {
  .layer:nth-child(n) { margin-inline: 0; }
  .layer-tag { display: none; }
}

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.steps li::before {
  content: "";
  position: absolute; top: -2px; left: 0; width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
}
.steps .num { display: block; font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .1em; color: var(--sky); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.glance {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.glance h3 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.glance dl { margin: 0; display: grid; gap: 0; }
.glance div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.glance div:first-child { border-top: 0; padding-top: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; color: var(--ink); font-weight: 550; }
@media (max-width: 420px) { .glance div { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
@media (max-width: 1140px) { .contact-grid { grid-template-columns: 1fr 1fr; } .contact-grid .contact-main { grid-column: 1 / -1; } }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.contact-card address { font-style: normal; color: var(--ink); line-height: 1.7; }
.contact-card p { color: var(--muted); font-size: 1rem; }
.contact-main { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-color: var(--navy-700); color: var(--on-dark); }
.contact-main h3 { color: var(--on-dark-muted); }
.contact-main p { color: var(--on-dark-muted); }
.email-link {
  display: inline-block; font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.1rem, .95rem + .7vw, 1.45rem); color: #fff; text-decoration: none; margin: 4px 0 18px; overflow-wrap: anywhere;
}
.email-link:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-top p { max-width: 42ch; margin: 16px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer-nav a { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--cyan); text-decoration: underline; }
.legal { padding-top: 24px; font-size: .85rem; line-height: 1.7; }
.legal p { margin: 0 0 6px; }
.site-footer .brand-name { color: #fff; }

/* ---------- Prose pages (privacy, 404) ---------- */
.page-hero { background: var(--navy-900); color: var(--on-dark); margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 56px) 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: .3em; }
.page-hero p { color: var(--on-dark-muted); margin: 0; }
.prose { max-width: 760px; padding: 56px 0 88px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 28px; }
.notfound p { color: var(--muted); }
