/* ============ Visual AI Infinity — Site Styles ============ */
:root {
  --bg: #060a14;
  --bg-2: #0a1120;
  --panel: #0d1526;
  --panel-2: #111b30;
  --line: rgba(120, 150, 210, 0.14);
  --text: #e8edf7;
  --muted: #9aa7bf;
  --blue: #2f7df6;
  --blue-light: #6ea8ff;
  --cyan: #38bdf8;
  --red: #e0344a;
  --red-light: #ff5f72;
  --radius: 16px;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif; line-height: 1.15; letter-spacing: -0.01em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Backdrop grid ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(60, 110, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 110, 220, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 78% -8%, rgba(47, 125, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 38% at 12% -6%, rgba(224, 52, 74, 0.10), transparent 60%),
    var(--bg);
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .top { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--text); letter-spacing: 0.02em; }
.brand-name .top em { font-style: normal; color: var(--red-light); }
.brand-name .sub { font-size: 0.62rem; letter-spacing: 0.42em; color: var(--muted); text-transform: uppercase; }
nav.menu { display: flex; gap: 6px; align-items: center; }
nav.menu a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
nav.menu a:hover { color: var(--text); background: rgba(110, 168, 255, 0.08); }
nav.menu a.active { color: var(--text); background: rgba(47, 125, 246, 0.16); }
nav.menu a.cta {
  color: #fff; background: linear-gradient(135deg, var(--blue), #1d5fd0);
  box-shadow: 0 4px 18px rgba(47, 125, 246, 0.35);
  margin-left: 8px;
}
nav.menu a.cta:hover { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; text-align: center; position: relative; }
.hero .logo-hero { width: min(430px, 78vw); margin: 0 auto 8px; display: block; }

/* ---------- Split hero (reference style) ---------- */
.hero-split { padding: 60px 0 70px; position: relative; overflow: hidden; }
.hero-split .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; }
.hero-copy { text-align: left; position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.display-xl {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.display-xl .solid { display: block; color: var(--text); }
.display-xl .outline {
  display: block; color: transparent;
  -webkit-text-stroke: 2px rgba(110, 168, 255, 0.85);
  text-stroke: 2px rgba(110, 168, 255, 0.85);
}
.display-xl .accent-solid {
  background: linear-gradient(100deg, var(--blue-light) 15%, var(--cyan) 55%, var(--red-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p.lead { text-align: left; margin: 0 0 34px; max-width: 560px; }
.hero-copy .btn-row { justify-content: flex-start; }
.btn-pill {
  border-radius: 999px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem;
  background: linear-gradient(90deg, #37d3c0, var(--blue), #1d4fd0);
  color: #fff; box-shadow: 0 8px 28px rgba(47, 125, 246, 0.45);
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(56, 189, 248, 0.55); }
.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.orb {
  position: absolute; width: min(560px, 46vw); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(103, 232, 249, 0.55), transparent 55%),
    radial-gradient(circle at 72% 75%, rgba(139, 92, 246, 0.5), transparent 60%),
    linear-gradient(135deg, #14608f 0%, #1c3fae 55%, #3b1d8f 100%);
  box-shadow: 0 0 120px rgba(47, 125, 246, 0.35), inset 0 0 90px rgba(2, 8, 20, 0.45);
  animation: orbFloat 9s ease-in-out infinite;
}
@keyframes orbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-visual img { position: relative; z-index: 2; width: min(430px, 38vw); filter: drop-shadow(0 24px 50px rgba(2, 8, 20, 0.7)); }
.watermark {
  position: absolute; right: -2%; top: 4%; z-index: 0; pointer-events: none; user-select: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; line-height: 0.9;
  font-size: clamp(4rem, 11vw, 9rem); letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(120, 150, 210, 0.13);
}
.slide-count {
  position: absolute; left: 24px; bottom: 26px; z-index: 3;
  font-family: "Space Grotesk", sans-serif; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em;
}
.slide-count b { color: var(--cyan); font-size: 1.05rem; }
.scroll-cue {
  position: absolute; right: 26px; bottom: 30px; z-index: 3;
  writing-mode: vertical-rl; letter-spacing: 0.4em; text-transform: uppercase;
  font-size: 0.68rem; color: var(--muted);
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 46px; margin-top: 12px;
  background: linear-gradient(var(--cyan), transparent); margin-left: 5px;
}

/* ---------- Side dot nav ---------- */
.side-dots {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
}
.side-dots a {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(154, 167, 191, 0.6); background: transparent;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.side-dots a.on, .side-dots a:hover { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px rgba(56, 189, 248, 0.8); }
@media (max-width: 1280px) { .side-dots { display: none; } }
@media (max-width: 960px) {
  .hero-split .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-copy p.lead { text-align: center; margin-inline: auto; }
  .hero-copy .btn-row { justify-content: center; }
  .hero-visual { min-height: 380px; order: -1; }
  .hero-visual img { width: min(340px, 62vw); }
  .orb { width: min(430px, 78vw); }
  .watermark, .slide-count, .scroll-cue { display: none; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.07);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(100deg, var(--blue-light) 10%, var(--cyan) 45%, var(--red-light) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { max-width: 720px; margin: 0 auto 34px; color: var(--muted); font-size: 1.12rem; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 14px 30px; border-radius: 12px; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--blue), #1d5fd0);
  box-shadow: 0 6px 26px rgba(47, 125, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(47, 125, 246, 0.55); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(110,168,255,0.45); background: rgba(110,168,255,0.07); transform: translateY(-2px); }
.btn-red {
  color: #fff; background: linear-gradient(135deg, var(--red), #b01f33);
  box-shadow: 0 6px 26px rgba(224, 52, 74, 0.35);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(224, 52, 74, 0.5); }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .tag {
  font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
  color: var(--blue-light); display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(110, 168, 255, 0.4); box-shadow: 0 14px 40px rgba(10, 25, 60, 0.55); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), transparent 80%);
  opacity: 0; transition: opacity .22s;
}
.card:hover::before { opacity: 1; }
.card.red-line::before { background: linear-gradient(90deg, var(--red), var(--red-light), transparent 80%); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 18px;
  background: rgba(47, 125, 246, 0.14); border: 1px solid rgba(47, 125, 246, 0.3);
}
.card.red-line .icon { background: rgba(224, 52, 74, 0.13); border-color: rgba(224, 52, 74, 0.32); }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { color: var(--muted); font-size: 0.92rem; padding: 5px 0 5px 24px; position: relative; }
.card ul li::before {
  content: "▸"; position: absolute; left: 4px; color: var(--cyan); font-size: 0.85rem;
}
.card.red-line ul li::before { color: var(--red-light); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.panel-box {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}
.panel-box h3 { font-size: 1.4rem; margin-bottom: 12px; }
.panel-box p { color: var(--muted); }
.panel-box.blue-edge { border-left: 3px solid var(--blue); }
.panel-box.red-edge { border-left: 3px solid var(--red); }

/* ---------- Stats strip ---------- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 38, 0.5); padding: 40px 0;
}
.strip .grid { text-align: center; }
.stat b { font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; display: block; color: var(--text); }
.stat b span { color: var(--cyan); }
.stat small { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 8px;
}
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 20px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 20% 0%, rgba(47, 125, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 120% at 85% 100%, rgba(224, 52, 74, 0.22), transparent 55%),
    linear-gradient(160deg, #101a30, #0b1322);
  border: 1px solid rgba(110, 168, 255, 0.25);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 640px; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(47, 125, 246, 0.14); border: 1px solid rgba(47, 125, 246, 0.3);
}
.contact-item b { display: block; font-size: 0.95rem; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.contact-item a:hover { color: var(--blue-light); }
form .field { margin-bottom: 16px; }
form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; background: rgba(6, 10, 20, 0.7); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 0.95rem;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,125,246,0.18); }
form button { width: 100%; border: none; cursor: pointer; font: inherit; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: rgba(6, 10, 20, 0.85); padding: 52px 0 30px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 36px; }
.foot-grid img { height: 60px; margin-bottom: 14px; }
.foot-grid p { color: var(--muted); font-size: 0.9rem; }
.foot-grid h4 { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 9px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.foot-grid a:hover { color: var(--blue-light); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.83rem; }
.foot-bottom .tagline { color: var(--cyan); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 700px; margin: 0 auto; font-size: 1.06rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  nav.menu {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px 18px 18px;
    background: rgba(6, 10, 20, 0.97); border-bottom: 1px solid var(--line);
  }
  nav.menu.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Original-colour logo chips ---------- */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; border-radius: 10px; padding: 4px 9px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.logo-chip img { height: 40px; width: auto; display: block; }
.logo-chip-lg { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; }
.logo-chip-lg img { height: 74px; }

/* ---------- Work gallery ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  aspect-ratio: 4 / 3; display: block;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.work-card:hover img { transform: scale(1.06); }
.work-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(4, 8, 18, 0.92));
  color: var(--text); font-size: 0.85rem; font-weight: 500;
}
.work-tag {
  position: absolute; top: 12px; left: 12px; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; color: #fff;
  background: rgba(224, 52, 74, 0.9); padding: 4px 10px; border-radius: 999px;
}
.work-tag.blue { background: rgba(47, 125, 246, 0.9); }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
