/* ============================================================
   C7 Qube Pest Control — stylesheet
   Lightweight: no frameworks. GPU-friendly transforms only.
   ============================================================ */

:root {
  --bg:        #0e131a;
  --bg-2:      #10161d;
  --surface:   #1a232e;
  --surface-2: #1c2632;
  --line:      rgba(150, 200, 230, 0.14);
  --text:      #eaf2f8;
  --muted:     #94a6b5;
  --accent:    #2fa8e0;   /* brand blue */
  --accent-2:  #6fd0ff;   /* light steel-blue */
  --silver:    #cdd8e1;   /* brushed silver */
  --danger:    #ff5e7e;
  --radius:    18px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: #0e131a; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4, .brand { font-family: "Sora", system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 36px; height: 36px; border: 1.5px solid var(--accent);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor.grow { width: 64px; height: 64px; background: rgba(47,168,224,.12); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } body { cursor: auto; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 10000; box-shadow: 0 0 14px var(--accent);
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled {
  padding: 12px clamp(20px, 5vw, 56px);
  background: rgba(14, 19, 26, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand-mark { display: grid; place-items: center;
  filter: drop-shadow(0 3px 8px rgba(26,106,166,.45)); }
.cube { display: block; transition: transform .5s var(--ease); animation: cubeFloat 5s ease-in-out infinite; }
.brand:hover .cube { transform: rotate(-8deg) scale(1.08); }
@keyframes cubeFloat { 50% { transform: translateY(-3px); } }
@keyframes pulse { 50% { transform: scale(1.12) rotate(-4deg); } }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small {
  font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: .58rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-top: 4px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: none; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: none; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #03150d; box-shadow: 0 8px 30px rgba(47,168,224,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(47,168,224,.5); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-pill { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100vh;
  display: grid; place-items: center;
  padding: 120px clamp(20px, 5vw, 56px) 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(58,166,224,.10), transparent),
    radial-gradient(800px 600px at 15% 110%, rgba(47,168,224,.12), transparent),
    var(--bg);
}
.hero-layer { position: absolute; inset: -10%; will-change: transform; }
.layer-glow {
  background: radial-gradient(500px 500px at 50% 40%, rgba(47,168,224,.18), transparent 70%);
  animation: floaty 12s ease-in-out infinite;
}
.layer-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black, transparent 75%);
}
@keyframes floaty { 50% { transform: translate(20px, -20px) scale(1.05); } }

.bug {
  position: absolute; font-size: clamp(1.6rem, 3vw, 2.6rem);
  will-change: transform; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
  animation: drift 9s ease-in-out infinite;
}
.bug-1 { top: 22%; left: 12%; animation-delay: 0s; }
.bug-2 { top: 30%; right: 14%; animation-delay: -2s; }
.bug-3 { bottom: 26%; left: 18%; animation-delay: -4s; }
.bug-4 { bottom: 30%; right: 20%; animation-delay: -6s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(14px,-18px) rotate(8deg); }
  50% { transform: translate(-10px,12px) rotate(-6deg); }
  75% { transform: translate(8px,16px) rotate(5deg); }
}

.hero-inner { position: relative; z-index: 5; text-align: center; max-width: 880px; }

/* split hero: copy + animated scene */
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  text-align: left; max-width: var(--maxw); width: 100%;
}
.hero-split .hero-actions, .hero-split .hero-badges { justify-content: flex-start; }
.hero-split .hero-sub { margin-left: 0; }

/* ---- animated protective-dome scene ---- */
.hero-visual { position: relative; }
.scene { position: relative; width: min(440px, 92%); margin-inline: auto; aspect-ratio: 1; }
.scene-svg { position: relative; z-index: 3; width: 100%; height: 100%; overflow: visible; }

.dome-glow {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%);
  width: 78%; height: 78%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,224,.28), transparent 68%);
  filter: blur(6px); animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 50% { transform: translate(-50%,-50%) scale(1.08); opacity: .8; } }

/* ---- house: gentle settle ---- */
.house { animation: floaty 7s ease-in-out infinite; transform-box: view-box; transform-origin: 175px 240px; }

/* ---- the hero: confident idle bob ---- */
.hero-fig { transform-box: view-box; transform-origin: 267px 345px; animation: heroBob 4.5s ease-in-out infinite; }
@keyframes heroBob { 50% { transform: translateY(-7px); } }

/* cape sway */
.cape { transform-box: view-box; transform-origin: 260px 188px; animation: capeSway 3.6s ease-in-out infinite; }
@keyframes capeSway {
  0%,100% { transform: rotate(0deg) skewY(0deg); }
  50%     { transform: rotate(-4deg) skewY(3deg); }
}

/* glowing visor */
.visor { filter: drop-shadow(0 0 6px #6fd0ff); animation: visorGlow 2.4s ease-in-out infinite; }
@keyframes visorGlow { 50% { opacity: .55; } }

/* chest emblem pulse */
.emblem { transform-box: view-box; transform-origin: 267px 215px; animation: pulse 3s var(--ease) infinite; }

/* spray cone flicker */
.spray-cone { transform-box: view-box; transform-origin: 382px 200px; animation: sprayFlicker 1.4s ease-in-out infinite; }
@keyframes sprayFlicker { 0%,100% { opacity: .9; transform: scaleX(1); } 50% { opacity: .55; transform: scaleX(1.06); } }

/* spray particles streaming right */
.sp { animation: spStream 1.1s linear infinite; }
.sp1 { animation-delay: 0s; }
.sp2 { animation-delay: .22s; }
.sp3 { animation-delay: .44s; }
.sp4 { animation-delay: .66s; }
.sp5 { animation-delay: .88s; }
@keyframes spStream {
  0%   { transform: translateX(0) scale(1); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(42px) scale(.3); opacity: 0; }
}

/* bugs getting blasted away (fleeing up-right) */
.repel { position: absolute; font-size: 1.6rem; z-index: 4; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.bug-a { top: 24%; right: 4%;  animation: flee 3.2s ease-in infinite; }
.bug-b { top: 38%; right: 1%;  animation: flee 3.8s ease-in infinite .6s; }
.bug-c { top: 14%; right: 12%; animation: flee 4.4s ease-in infinite 1.2s; }
@keyframes flee {
  0%   { transform: translate(-40px, 10px) rotate(0); opacity: 0; }
  25%  { transform: translate(-20px, 4px) rotate(20deg); opacity: 1; }
  100% { transform: translate(70px, -60px) rotate(220deg); opacity: 0; }
}

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(47,168,224,.06); margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: .98; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; transform: translateY(110%); }
.hero-title .word.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 620px; margin: 0 auto 34px; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }

.hero-badges { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.badge { font-size: .92rem; color: var(--muted); }
.badge strong { color: var(--text); font-family: "Sora"; font-size: 1.05rem; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.mouse { width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 7px; background: var(--accent); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(12px)} }

/* ============================ ABOUT ============================ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.05; margin: 6px 0 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 28px; }
.about-feats span { color: var(--text); font-weight: 500; font-size: .96rem; }

.about-panel {
  padding: 34px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--surface), var(--bg-2)); position: relative; overflow: hidden;
}
.about-panel::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(47,168,224,.16), transparent 65%);
}
.panel-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); position: relative;
}
.panel-num {
  font-family: "Sora"; font-weight: 800; font-size: 2.8rem; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.panel-label { color: var(--muted); font-size: .95rem; }
.panel-list { list-style: none; display: grid; gap: 16px; position: relative; }
.panel-list li { display: flex; flex-direction: column; }
.panel-list strong { font-family: "Sora"; font-size: 1.02rem; }
.panel-list span { color: var(--muted); font-size: .9rem; }

/* ============================ MARQUEE ============================ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 30px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: "Sora"; font-weight: 700; font-size: 1.6rem; color: var(--surface-2); -webkit-text-stroke: 1px var(--accent); }
.marquee-track span:nth-child(even) { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ SECTIONS ============================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 56px); position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.05; }

/* ---------- Active nav link ---------- */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

/* ---------- Page header (sub-pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(150px, 20vh, 220px) clamp(20px, 5vw, 56px) clamp(60px, 9vw, 100px);
  background:
    radial-gradient(700px 420px at 50% -15%, rgba(47,168,224,.16), transparent),
    radial-gradient(500px 400px at 85% 120%, rgba(58,166,224,.10), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .crumb {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.page-hero .crumb a { color: var(--muted); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.2rem, 6.5vw, 4.2rem); letter-spacing: -.03em; line-height: 1.02; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 16px auto 0; font-size: 1.05rem; }

/* ---------- Reusable CTA band ---------- */
.cta-band {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  padding: clamp(40px, 6vw, 70px); border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 50% -30%, rgba(47,168,224,.18), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin: 12px auto 26px; max-width: 520px; }

.section-foot { text-align: center; margin-top: 44px; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden;
  transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s;
}
.card:hover { border-color: rgba(47,168,224,.4); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,224,.22), transparent 65%);
  top: var(--my, 30%); left: var(--mx, 50%); transform: translate(-50%,-50%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }
.card-emoji { font-size: 2.6rem; display: block; margin-bottom: 18px; transition: transform .4s var(--ease); }
.card:hover .card-emoji { transform: translateZ(40px) scale(1.15) rotate(-8deg); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.card-link { color: var(--accent); font-weight: 600; font-size: .92rem; }

/* ---------- Process (parallax) ---------- */
.process { overflow: hidden; }
.parallax-bg {
  position: absolute; inset: -20% 0; z-index: -1; will-change: transform;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(58,166,224,.08), transparent),
    radial-gradient(500px 500px at 10% 90%, rgba(47,168,224,.10), transparent);
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step {
  padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(28,40,52,.5); backdrop-filter: blur(6px); position: relative;
  transition: transform .4s var(--ease), border-color .4s;
}
.step:hover { transform: translateY(-8px); border-color: rgba(47,168,224,.4); }
.step-num {
  font-family: "Sora"; font-size: 2.6rem; font-weight: 800; line-height: 1;
  -webkit-text-stroke: 1.5px var(--accent); color: transparent; display: block; margin-bottom: 16px;
}
.step-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Reviews ---------- */
.review {
  padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .4s var(--ease), border-color .4s;
}
.review:hover { transform: translateY(-6px); border-color: rgba(47,168,224,.4); }
.review .stars { color: var(--accent); letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote { font-size: 1.02rem; line-height: 1.6; }
.review figcaption { display: flex; flex-direction: column; margin-top: auto; }
.review figcaption strong { font-family: "Sora"; }
.review figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- Service areas ---------- */
.area-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.area-list li {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-weight: 500; font-size: .95rem;
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.area-list li:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }

/* ---------- Direct contact links ---------- */
.contact-direct { display: grid; gap: 8px; margin-top: 22px; }
.contact-line { color: var(--text); font-weight: 500; transition: color .3s; width: max-content; }
.contact-line:hover { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-num {
  display: block; font-family: "Sora"; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  padding: clamp(34px, 5vw, 64px); border-radius: 28px;
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58,166,224,.12), transparent 65%);
}
.contact-copy h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 8px 0 12px; }
.contact-sub { color: var(--muted); margin-bottom: 22px; }
.contact-points { list-style: none; display: grid; gap: 10px; }
.contact-points li { color: var(--text); font-size: .96rem; }

.contact-form { display: grid; gap: 16px; position: relative; z-index: 2; }
.field { position: relative; }
.field input, .field select {
  width: 100%; padding: 18px 16px 8px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 1rem; cursor: none; transition: border-color .3s;
}
.field select { padding: 16px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 16px; top: 15px; color: var(--muted); font-size: 1rem;
  pointer-events: none; transition: .25s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label {
  top: 6px; font-size: .72rem; color: var(--accent);
}
.form-note { color: var(--accent); text-align: center; font-weight: 600; }
.form-hint { color: var(--muted); text-align: center; font-size: .82rem; margin-top: -4px; }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding: 64px clamp(20px, 5vw, 56px) 30px; background: var(--bg-2); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.brand-footer { margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-size: .9rem; max-width: 260px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 16px; }
.footer a { display: block; color: var(--muted); margin-bottom: 10px; transition: color .3s; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .86rem;
}

/* ============================ REVEAL ANIMATIONS ============================ */
.reveal {
  opacity: 0; transform: translateY(46px); filter: blur(6px);
  transition: opacity .85s var(--ease), transform .9s var(--ease), filter .85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-dir="left"]  { transform: translateX(-52px); }
.reveal[data-dir="right"] { transform: translateX(52px); }
.reveal[data-dir="scale"] { transform: scale(.9); }

/* hero word entrance handled by JS adding .loaded */
.loaded .hero-title .word { transition: transform 1s var(--ease); transform: translateY(0); }
.hero-title .word { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px; position: absolute; top: 100%; right: 16px;
    background: var(--surface); padding: 24px 30px; border-radius: var(--radius); border: 1px solid var(--line);
  }
  .contact-card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-split .hero-actions, .hero-split .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .scene { width: min(340px, 78%); }
}
@media (max-width: 520px) {
  .hero-badges { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .word { transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SPECIAL EFFECTS
   ============================================================ */

/* ---------- Loader (cube + progress) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 11000;
  display: grid; place-items: center; align-content: center; gap: 20px;
  background: radial-gradient(620px 440px at 50% 42%, rgba(47,168,224,.10), transparent), #0e131a;
  transition: opacity .55s var(--ease), visibility .55s;
  /* FAILSAFE: auto-dismiss after 6s even if JS never runs, so the page can never get stuck. */
  animation: c7PreFailsafe .6s ease 6s forwards;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
html.no-intro .preloader { display: none; }
@keyframes c7PreFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.pre-cube svg { width: 92px; height: 100px; overflow: visible;
  filter: drop-shadow(0 12px 28px rgba(26,106,166,.5)); }
.pf { opacity: 0; transform: translateY(10px) scale(.7);
  transform-box: fill-box; transform-origin: center;
  animation: faceIn .38s var(--ease) forwards; }
.pf-top { animation-delay: .02s; } .pf-left { animation-delay: .09s; } .pf-right { animation-delay: .16s; }
@keyframes faceIn { to { opacity: 1; transform: none; } }

.pre-word { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; text-align: center; }
.pre-word small { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }

.pre-bar { width: 184px; height: 4px; border-radius: 4px; background: rgba(150,200,230,.16); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.pre-pct { font-family: "Sora", sans-serif; font-weight: 600; font-size: .76rem; letter-spacing: .12em; color: var(--muted); }

/* ---------- Page transition wipe ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 10500; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), #1a6aa6);
  transform: scaleY(0); transform-origin: bottom;
}
.page-wipe.cover  { transform: scaleY(1); transform-origin: bottom; transition: transform .48s var(--ease); }
.page-wipe.reveal { transform: scaleY(0); transform-origin: top;    transition: transform .55s var(--ease); }
html.wipe-in .page-wipe { transform: scaleY(1); transform-origin: top; }

/* ---------- Spray-trail particle ---------- */
.spray-particle {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  pointer-events: none; z-index: 9997; transform: translate(-50%,-50%); will-change: transform, opacity;
}

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  font-size: 1rem; cursor: none; transition: border-color .3s, transform .3s; flex: none;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Sticky scroll story ---------- */
.story { max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.story-aside { position: sticky; top: 120px; }
.story-aside h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); letter-spacing: -.02em; margin: 6px 0 16px; line-height: 1.05; }
.story-lead { color: var(--muted); margin-bottom: 22px; max-width: 38ch; }
.story-progress { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; max-width: 240px; }
.story-progress span { display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s var(--ease); }
.story-steps { display: grid; gap: clamp(36px, 7vh, 72px); }
.story-step {
  min-height: 44vh; display: flex; flex-direction: column; justify-content: center;
  padding: 34px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  opacity: .35; transform: scale(.97);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.story-step.active { opacity: 1; transform: scale(1); border-color: rgba(47,168,224,.4); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.story-step .num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1;
  -webkit-text-stroke: 1.5px var(--accent); color: transparent; transition: color .4s; }
.story-step.active .num { color: var(--accent); -webkit-text-stroke: 0; }
.story-step h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.story-step p { color: var(--muted); max-width: 48ch; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 24px; }
  .story-aside { position: static; }
  .story-step { min-height: auto; }
}

/* ---------- LIGHT / STEEL THEME ---------- */
:root[data-theme="light"] {
  --bg:        #eef2f6;
  --bg-2:      #e4eaf0;
  --surface:   #ffffff;
  --surface-2: #eef3f8;
  --line:      rgba(20, 55, 90, 0.14);
  --text:      #16232f;
  --muted:     #566676;
  --accent:    #1f8fcf;
  --accent-2:  #37b4e6;
}
[data-theme="light"] .nav.scrolled { background: rgba(255,255,255,.82); }
[data-theme="light"] .step { background: var(--surface); }
[data-theme="light"] .marquee-track span { color: #dfe7ee; }
[data-theme="light"] .marquee-track span:nth-child(even) { color: var(--accent); }
[data-theme="light"] .btn-primary { color: #042b3d; }
[data-theme="light"] .grain { opacity: .02; }

/* ---------- Reduced-motion: disable the heavy effects ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader, .page-wipe, .spray-particle { display: none !important; }
  .pf { opacity: 1; transform: none; }
  .story-step { opacity: 1; transform: none; }
}

/* ============================================================
   SCROLL JOURNEY — pinned cinematic film (home page)
   ============================================================ */
.film { position: relative; height: 600vh; background: var(--bg); }
.film-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background:
    radial-gradient(900px 520px at 72% -10%, rgba(58,166,224,.10), transparent),
    radial-gradient(820px 620px at 12% 112%, rgba(47,168,224,.12), transparent),
    var(--bg);
}
.film-glow {
  position: absolute; left: 50%; top: 52%; width: 62vmax; height: 62vmax;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(47,168,224,.18), transparent 62%);
}
.film-grid {
  position: absolute; inset: -10%; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
}
.film-scene {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%);
  width: min(600px, 88vw); max-height: 72vh; z-index: 2; overflow: visible;
}
.film-bugs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.film-bugs span {
  position: absolute; font-size: clamp(1rem, 2.2vw, 1.7rem); opacity: 0;
  will-change: transform, opacity; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.film-bugs span:nth-child(1){ top:24%; left:30%; }
.film-bugs span:nth-child(2){ top:30%; right:28%; }
.film-bugs span:nth-child(3){ top:46%; left:24%; }
.film-bugs span:nth-child(4){ top:20%; right:34%; }
.film-bugs span:nth-child(5){ bottom:30%; left:32%; }
.film-bugs span:nth-child(6){ bottom:26%; right:30%; }
.film-bugs span:nth-child(7){ top:38%; left:44%; }
.film-bugs span:nth-child(8){ top:52%; right:38%; }
.film-bugs span:nth-child(9){ bottom:34%; left:48%; }

.film-caps { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.film-cap {
  position: absolute; top: 14vh; left: 50%; width: min(780px, 92vw);
  transform: translateX(-50%); text-align: center; opacity: 0; will-change: opacity, transform;
}
.film-cap .eyebrow { margin-bottom: 18px; }
.film-cap h1 { font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1.0; letter-spacing: -.03em; font-weight: 800; }
.cap-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 560px; margin: 20px auto 0; }
.cap-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; pointer-events: none; }
.film-cap.is-on .cap-actions { pointer-events: auto; }

.film-dots { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 6; }
.film-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); transition: .4s var(--ease); }
.film-dots i.on { background: var(--accent); transform: scale(1.3); box-shadow: 0 0 10px var(--accent); }
.film .scroll-hint { z-index: 6; transition: opacity .4s var(--ease); }

/* static fallback (reduced motion) */
.film-static { height: auto; }
.film-static .film-stage { position: relative; height: auto; min-height: 92vh; }
.film-static .film-cap { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; }

/* ============================================================
   LOWER SECTIONS — premium upgrades
   ============================================================ */

/* ---------- Pinned horizontal services gallery ---------- */
.gallery { position: relative; height: 320vh; }
.gallery-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  padding: 96px 0 56px;
}
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px);
}
.gallery-head h2 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); letter-spacing: -.02em; line-height: 1.05; margin-top: 6px; }
.gallery-cta { flex: none; }
.gallery-viewport { width: 100%; overflow: hidden; }
.gallery-track {
  display: flex; gap: 24px; width: max-content; will-change: transform;
  padding-inline: max((100vw - var(--maxw)) / 2, clamp(20px, 5vw, 56px));
}
.gcard { flex: none; width: min(360px, 78vw); }
.gallery-progress {
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px);
  height: 4px; box-sizing: content-box;
}
.gallery-progress span {
  display: block; height: 4px; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
/* flat fallback (mobile / reduced motion): normal swipe row */
.gallery-flat { height: auto; }
.gallery-flat .gallery-pin { position: static; height: auto; }
.gallery-flat .gallery-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery-flat .gallery-track { transform: none !important; }
.gallery-flat .gcard { scroll-snap-align: center; }
.gallery-flat .gallery-progress { display: none; }

/* ---------- Reviews auto-scroll carousel ---------- */
.reviews-section { padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; }
.reviews-section .section-head { padding-inline: clamp(20px, 5vw, 56px); }
.review-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.review-track {
  display: flex; gap: 22px; width: max-content; padding-inline: 11px;
  animation: reviewScroll 44s linear infinite;
}
.review-marquee:hover .review-track { animation-play-state: paused; }
.review-track .review { width: min(380px, 82vw); flex: none; }
@keyframes reviewScroll { to { transform: translateX(-50%); } }

/* ---------- Bold footer brand watermark ---------- */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: "C7 QUBE"; position: absolute; left: 50%; bottom: -.22em; transform: translateX(-50%);
  font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: -.02em; white-space: nowrap;
  font-size: clamp(4rem, 19vw, 17rem); line-height: .8; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  opacity: .5; z-index: 0;
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .gallery-flat .review-track, .review-track { } /* no-op guard */
}
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .gallery { height: auto; }
  .gallery-pin { position: static; height: auto; }
  .gallery-track { flex-wrap: wrap; justify-content: center; transform: none !important; }
  .gallery-progress { display: none; }
}

/* ---------- Journey: full-bleed photo layers ---------- */
.film-layers { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.film-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; will-change: opacity, transform;
}
.film-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,18,.72), rgba(8,12,18,.38) 36%, rgba(8,12,18,.46) 62%, rgba(8,12,18,.88));
}
.film-cap h1, .film-cap .cap-sub { text-shadow: 0 2px 26px rgba(0,0,0,.55); }

/* ---------- About page: real photo in the panel ---------- */
.panel-img {
  width: 100%; height: 210px; object-fit: cover; border-radius: 14px;
  margin-bottom: 22px; border: 1px solid var(--line);
}

/* ---------- Page-header photo banners (sub-pages) ---------- */
.page-hero.has-bg::before { opacity: .12; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,21,.66), rgba(14,19,26,.93));
}
.page-hero.has-bg h1, .page-hero.has-bg p { text-shadow: 0 2px 22px rgba(0,0,0,.5); }

/* ============================================================
   FAQ · WhatsApp FAB · Accessibility
   ============================================================ */

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(47,168,224,.4); }
.faq-item summary {
  list-style: none; cursor: none; padding: 20px 0; gap: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 20px; max-width: 64ch; }

/* ---------- Floating WhatsApp button ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; cursor: none;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 40px rgba(37,211,102,.55); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 520px) { .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 11001;
  background: var(--accent); color: #04293a; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }

/* ---------- Branded icon badges (replace emoji) ---------- */
.card-ic, .step-ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 18px; color: var(--accent);
  background: linear-gradient(150deg, rgba(47,168,224,.18), rgba(47,168,224,.04));
  border: 1px solid rgba(47,168,224,.28);
  transition: transform .4s var(--ease), background .4s;
}
.card-ic svg, .step-ic svg { width: 32px; height: 32px; display: block; }
.card:hover .card-ic { transform: translateZ(40px) scale(1.08); background: linear-gradient(150deg, rgba(47,168,224,.3), rgba(47,168,224,.08)); }
.step:hover .step-ic { transform: scale(1.08); }

/* ---------- Inline icons for contact lines ---------- */
.line-ic { width: 18px; height: 18px; color: var(--accent); vertical-align: -3px; margin-right: 9px; }
.contact-line { display: flex; align-items: center; }

/* ============================ WP content (pages / blog) ============================ */
.entry-content { max-width: 760px; margin: 0 auto; color: var(--text); }
.entry-content h1, .entry-content h2, .entry-content h3 { margin: 1.4em 0 .5em; letter-spacing: -.01em; }
.entry-content p, .entry-content li { color: var(--muted); margin-bottom: 1em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 1.2em 0; color: var(--text); }
.post-list { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 20px; }
.pagination, .nav-links.pagination { display: flex; gap: 10px; justify-content: center; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.page-numbers.current { background: var(--accent); color: #03150d; border-color: transparent; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
