/* ═══════════════════════════════════════════════════════
   ECLIPSE — CSS DESIGN SYSTEM
   Template by 10x Hoster — 10xHoster.com
   Aesthetic: Dark space, neon blue, Impact headlines,
              custom cursor, S-curve glow, star depth
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --blue:       #1768FF;
  --blue-b:     #4D8EFF;
  --blue-dim:   rgba(23,104,255,0.1);
  --blue-line:  rgba(23,104,255,0.18);
  --glow:       rgba(23,104,255,0.5);
  --glow-soft:  rgba(23,104,255,0.2);
  --bg:         #07080E;
  --bg2:        #0B0D18;
  --surface:    #0E1020;
  --surface2:   #131628;

  /* ── 3-TIER TEXT SYSTEM ──
     Tier 1 Display:  Hero headlines only — Impact, slightly off-white
     Tier 2 Heading:  Section & card titles — Barlow 600, softer white
     Tier 3 Body:     Paragraphs & descriptions — Barlow 300, comfortable gray
  ── */
  --text-display:  #EDF0F5;   /* T1 — off-white, no eye strain on dark bg */
  --text-heading:  #B8C4D4;   /* T2 — blue-tinted silver, readable subheads */
  --text-body:     rgba(255,255,255,0.62); /* T3 — up from 0.42, much easier to read */
  --text-dim:      rgba(255,255,255,0.32); /* metadata, dates, tiny labels */

  /* Legacy aliases — keep so nothing breaks */
  --white:      #EDF0F5;
  --silver:     #9BA8BF;
  --muted:      rgba(255,255,255,0.62);
  --dim:        rgba(255,255,255,0.32);

  --border:     rgba(255,255,255,0.07);
  --border-b:   rgba(23,104,255,0.2);
  --success:    #22C55E;
  --font-head:  Impact, 'Arial Narrow', sans-serif;
  --font-sub:   'Barlow', sans-serif;   /* T2 headings */
  --font-body:  'Barlow', sans-serif;
  --radius:     2px;
  --transition: all 0.25s ease;
  --section:    100px 0;
  --max-w:      1180px;
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
button { cursor: none; }

/* ── CUSTOM CURSOR ─────────────────────────────────── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 12px var(--glow), 0 0 4px var(--blue);
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(23,104,255,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
}
.cursor-grow { transform: translate(-50%,-50%) scale(2.5) !important; }

/* ── BACKGROUND CANVASES ───────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
#fx-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
}

/* ── GRID TEXTURE ──────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(23,104,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,104,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none; z-index: 0;
}

/* ── LAYOUT ────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  position: relative; z-index: 2;
}

section { position: relative; z-index: 2; }

/* ── TYPOGRAPHY ────────────────────────────────────── */

/* T1 DISPLAY — Impact, hero headlines only */
h1 {
  font-family: var(--font-head);
  font-size: clamp(64px, 10vw, 148px);
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text-display);
}


/* Inner page hero headlines — Barlow Bold, not Impact */
.page-hero h1 {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  color: var(--text-display);
}
/* T2 HEADING — Barlow Bold, all section and card headings */
h2 {
  font-family: var(--font-sub);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-display);
}

h3 {
  font-family: var(--font-sub);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-heading);
}

h4 {
  font-family: var(--font-sub);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0em;
  line-height: 1.4;
  color: var(--text-heading);
}

/* h5 used in footer columns */
h5 {
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1;
}

/* T3 BODY */
p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-body);
}

.eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--blue-b);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--glow);
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 18px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.btn-primary {
  background: transparent;
  color: var(--blue-b);
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 18px var(--glow-soft), inset 0 0 20px rgba(23,104,255,0.04);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(23,104,255,0.08), transparent);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn-primary:hover {
  color: var(--white);
  border-color: var(--blue-b);
  box-shadow: 0 0 36px var(--glow), inset 0 0 24px rgba(23,104,255,0.08);
  transform: translateY(-2px);
}
.btn-primary:hover::before { transform: translateX(0); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-lg { padding: 20px 56px; font-size: 22px; }
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(7,8,14,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s;
}
.site-header.scrolled {
  background: rgba(7,8,14,0.96);
  border-bottom-color: var(--border-b);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-img {
  height: 44px; width: auto;
  filter: drop-shadow(0 0 10px rgba(23,104,255,0.35));
}

.main-nav {
  display: flex; align-items: center; gap: 0;
}
.nav-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  padding: 0 20px;
  line-height: 72px;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 1px; background: var(--blue);
  box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--text-display); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
  cursor: pointer; touch-action: manipulation;
}
.hamburger span {
  width: 22px; height: 1.5px;
  background: var(--silver); display: block;
  transition: var(--transition);
}

/* ── MOBILE NAV ────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(7,8,14,0.98);
  z-index: 200;
  overscroll-behavior: contain;
  flex-direction: column;
  padding: 100px 48px 48px;
  backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.mobile-nav.open { transform: none; }
.mob-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  color: var(--muted); font-size: 28px;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav a {
  font-family: var(--font-sub);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover { color: var(--blue-b); padding-left: 8px; }
.mob-cta { margin-top: 32px; }

/* ── PAGE HERO ─────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 12px var(--glow);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 28px;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue-b); }
.breadcrumb span { color: var(--text-dim); }
.breadcrumb .current { color: var(--blue-b); }

/* ── SECTION DIVIDER ───────────────────────────────── */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-b), transparent);
}

/* ── SERVICE STRIP ─────────────────────────────────── */
.svc-strip {
  border-top: 1px solid var(--border-b);
  border-bottom: 1px solid var(--border-b);
  overflow: hidden;
  position: relative;
}
.svc-strip::before, .svc-strip::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 80px; z-index: 2;
}
.svc-strip::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.svc-strip::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.svc-track {
  display: flex; width: max-content;
  animation: strip-scroll 28s linear infinite;
}
.svc-track:hover { animation-play-state: paused; }

.svc-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 40px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--silver); transition: color 0.2s;
}
.svc-item:hover { color: var(--white); }
.svc-dot {
  width: 5px; height: 5px;
  background: var(--blue); border-radius: 50%;
  box-shadow: 0 0 8px var(--glow); flex-shrink: 0;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── STAT BLOCK ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-b);
}
.stat-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--blue-dim); }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--blue-b);
  text-shadow: 0 0 16px rgba(23,104,255,0.4);
  display: block; line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── SERVICE CARDS ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.svc-card {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.svc-card:nth-child(3n) { border-right: none; }
.svc-card:nth-last-child(-n+3) { border-bottom: none; }
.svc-card:hover { background: rgba(23,104,255,0.04); }
.svc-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card-num {
  font-family: var(--font-sub);
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  color: var(--blue); display: block; margin-bottom: 16px;
}
.svc-card-title {
  font-family: var(--font-sub);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--text-display);
  display: block; margin-bottom: 12px; line-height: 1.3;
}
.svc-card-desc {
  font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text-body);
}

/* ── WORK / PORTFOLIO GRID ─────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--border);
}
.work-item {
  background: var(--bg2);
  aspect-ratio: 16/10;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.work-item-img {
  position: absolute; inset: 0;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 80px; letter-spacing: -0.03em;
  color: rgba(23,104,255,0.06);
  transition: transform 0.5s ease;
}
.work-item:hover .work-item-img { transform: scale(1.04); }
.work-item-info {
  position: relative; z-index: 1;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(7,8,14,0.95), transparent);
  width: 100%;
  transform: translateY(8px);
  transition: transform 0.3s;
}
.work-item:hover .work-item-info { transform: none; }
.work-item-cat {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-b); display: block; margin-bottom: 6px;
}
.work-item-name {
  font-family: var(--font-sub);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: var(--text-display); display: block;
}

/* ── TESTIMONIALS ──────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
}
.testi-card {
  background: var(--bg2); padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.testi-card:hover { background: var(--surface); }
.testi-mark {
  font-family: var(--font-head);
  font-size: 72px; color: var(--blue);
  opacity: 0.12; position: absolute;
  top: 8px; right: 20px; line-height: 1;
}
.testi-stars { color: var(--blue-b); font-size: 14px; letter-spacing: 3px; margin-bottom: 16px; }
.testi-text {
  font-size: 15px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av {
  width: 40px; height: 40px;
  background: var(--blue-dim); border: 1px solid var(--border-b);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px; color: var(--blue-b);
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 500; color: var(--text-display); }
.testi-role { font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }

/* ── PROCESS STEPS ─────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.proc-step {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.proc-step:last-child { border-right: none; }
.proc-step:hover { background: var(--blue-dim); }
.proc-bg-n {
  position: absolute; top: -8px; right: -8px;
  font-family: var(--font-head);
  font-size: 110px; color: rgba(23,104,255,0.04);
  line-height: 1; pointer-events: none;
}
.proc-num {
  font-family: var(--font-head);
  font-size: 40px; color: var(--blue-b);
  text-shadow: 0 0 16px var(--glow);
  display: block; margin-bottom: 12px; line-height: 1;
}
.proc-title {
  font-family: var(--font-sub);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-display); display: block; margin-bottom: 10px;
}
.proc-desc {
  font-size: 13px; font-weight: 300;
  color: var(--text-body); line-height: 1.75;
}

/* ── FORM SYSTEM ───────────────────────────────────── */
.form-field {
  padding: 24px 0;
  border-bottom: 1px solid rgba(23,104,255,0.1);
  position: relative;
}
.form-field:last-of-type { border-bottom: none; }
.form-field::after {
  content: ''; position: absolute;
  left: 0; bottom: -1px; width: 0; height: 1px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--glow);
  transition: width 0.4s ease;
}
.form-field:focus-within::after { width: 100%; }
.form-field label {
  display: block;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(23,104,255,0.5); margin-bottom: 10px;
  transition: color 0.2s;
}
.form-field:focus-within label { color: var(--blue-b); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; background: transparent;
  border: none; outline: none;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300; color: var(--white);
  padding: 4px 0; -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.1); }
.form-field select option { background: var(--surface); color: var(--white); font-size: 15px; }
.form-field textarea { resize: none; min-height: 80px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.form-row .form-field:nth-child(odd)  { padding-right: 20px; border-right: 1px solid rgba(23,104,255,0.06); }
.form-row .form-field:nth-child(even) { padding-left: 20px; }
.form-row .form-field:nth-child(even)::after { left: 20px; }
.form-row .form-field:nth-child(even):focus-within::after { width: calc(100% - 20px); }
.form-note { font-size: 11px; color: var(--dim); text-align: center; margin-top: 14px; letter-spacing: 0.05em; }

/* ── FAQ ───────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 24px 0; cursor: pointer; gap: 20px;
  transition: var(--transition);
}
.faq-q:hover { padding-left: 4px; }
.faq-q-text {
  font-family: var(--font-sub);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: -0.01em; font-weight: 700; color: var(--white);
}
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--border-b);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-b);
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue); border-color: var(--blue);
  color: white;
}
.faq-a {
  display: none; padding: 0 0 24px;
  font-size: 15px; font-weight: 300;
  line-height: 1.8; color: var(--muted);
}
.faq-item.open .faq-a { display: block; }

/* ── PRICING CARDS ─────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
}
.price-card {
  background: var(--bg2); padding: 48px 36px;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.price-card.featured {
  background: var(--surface);
  border-top: 2px solid var(--blue);
  box-shadow: 0 0 40px rgba(23,104,255,0.08);
}
.price-card:hover { background: var(--surface); }
.price-badge {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-b);
  border: 1px solid var(--border-b);
  padding: 5px 14px; display: inline-block; margin-bottom: 20px;
  background: var(--blue-dim);
}
.price-name {
  font-family: var(--font-sub);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--white); display: block; margin-bottom: 10px;
}
.price-amount {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--blue-b);
  text-shadow: 0 0 14px rgba(23,104,255,0.35);
  display: block; line-height: 1; margin-bottom: 6px;
}
.price-period { font-size: 12px; color: var(--muted); margin-bottom: 28px; display: block; }
.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px;
}
.price-features li {
  font-size: 14px; font-weight: 300; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before {
  content: ''; width: 16px; height: 1px;
  background: var(--blue); flex-shrink: 0;
  box-shadow: 0 0 6px var(--glow);
}
.price-features li.na { opacity: 0.4; }
.price-features li.na::before { background: var(--border); box-shadow: none; }

/* ── BLOG CARDS ────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
}
.blog-card {
  background: var(--bg2);
  padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: background 0.2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { background: var(--surface); }
.blog-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--blue); box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.blog-card:hover::before { transform: scaleX(1); }
.blog-date {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); display: block; margin-bottom: 14px;
}
.blog-title {
  font-family: var(--font-sub);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--text-display); display: block;
  margin-bottom: 12px; line-height: 1.3;
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--blue-b); }
.blog-excerpt {
  font-size: 13px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,0.55); flex: 1;
}
.blog-read {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-b); display: flex; align-items: center;
  gap: 8px; margin-top: 20px; transition: gap 0.2s;
}
.blog-card:hover .blog-read { gap: 14px; }

/* ── CTA BAND ──────────────────────────────────────── */
.cta-band {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(23,104,255,0.06), transparent);
}
.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
  position: relative; z-index: 1;
}

/* ── FOOTER ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-logo-img {
  height: 40px; width: auto;
  filter: drop-shadow(0 0 8px rgba(23,104,255,0.3));
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 13px; font-weight: 300;
  color: var(--text-dim); line-height: 1.8; margin-bottom: 16px;
}
.footer-col h5 {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.48);
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.5;
}
.footer-links a:hover { color: var(--text-display); padding-left: 4px; }
.footer-contact-item { margin-bottom: 14px; }
.footer-contact-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); display: block; margin-bottom: 3px;
}
.footer-contact-value {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55);
}
.footer-contact-value a { transition: color 0.2s; }
.footer-contact-value a:hover { color: var(--blue-b); }
.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px; color: rgba(255,255,255,0.25); transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* Powered by 10x Hoster badge */
.powered-by {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--dim);
}
.powered-by a { color: var(--blue-b); transition: color 0.2s; }
.powered-by a:hover { color: var(--white); }

/* ── STICKY MOBILE CTA ─────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-top: 1px solid var(--border-b);
  padding: 12px 20px;
}
.sticky-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sticky-inner a {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 13px;
  font-family: var(--font-head);
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.sticky-call {
  background: transparent;
  color: var(--blue-b);
  border: 1px solid var(--blue);
  box-shadow: 0 0 16px rgba(23,104,255,0.2);
}
.sticky-book {
  background: var(--blue);
  color: var(--text-display);
}

/* ── SUCCESS STATE ─────────────────────────────────── */
.success-state { display: none; flex-direction: column; align-items: flex-start; padding: 72px 0; }
.success-state.show { display: flex; }
.success-icon {
  width: 56px; height: 56px;
  border: 1.5px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--glow-soft); margin-bottom: 22px;
  animation: pop-in 0.5s ease;
}
.success-title {
  font-family: var(--font-sub);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-display); margin-bottom: 12px;
}
.success-body {
  font-size: 16px; font-weight: 300;
  color: var(--muted); line-height: 1.8; max-width: 480px;
}

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes pop-in {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .svc-card:nth-child(2n) { border-right: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section: 72px 0; }
  .wrap { padding: 0 20px; }
  .main-nav, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none; }
  .work-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .proc-step { border-right: none; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .form-row .form-field:nth-child(odd) { padding-right: 0; border-right: none; }
  .form-row .form-field:nth-child(even) { padding-left: 0; }
  .form-row .form-field:nth-child(even)::after { left: 0; }
  .form-row .form-field:nth-child(even):focus-within::after { width: 100%; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  h1 { font-size: clamp(52px, 14vw, 80px); }
}

@media (hover: none) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}

/* ── RESPONSIVE LAYOUT UTILITIES ──────────────────── */
/* These replace inline grid styles for mobile safety */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.grid-2-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}

.grid-faq {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.grid-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-2-center,
  .grid-form,
  .grid-faq,
  .grid-hero-split { 
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .grid-form > *:first-child { order: 2; }
  .grid-form > *:last-child  { order: 1; }
}

/* ── MOBILE-SPECIFIC FIXES ─────────────────────────── */
@media (max-width: 768px) {
  /* Hero padding fix */
  .hero { padding-top: 110px !important; min-height: auto !important; }
  
  /* Quote page full-height grid fix */
  section[style*="min-height:100vh"] {
    display: block !important;
    min-height: auto !important;
    padding-top: 100px;
  }
  
  /* Page hero fix */
  .page-hero { padding: 120px 0 48px; }

  /* Pricing info grid */
  .pricing-info-grid { grid-template-columns: 1fr !important; }

  /* Stats grid on very small screens */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Inline grids fallback */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 520px"],
  [style*="grid-template-columns: 1fr 520px"],
  [style*="grid-template-columns:240px 1fr"],
  [style*="grid-template-columns: 240px 1fr"],
  [style*="grid-template-columns:1fr 480px"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Direction rtl reset on mobile */
  [style*="direction:rtl"] {
    direction: ltr !important;
  }

  /* CTA band flex fix */
  .cta-band-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left;
    gap: 24px !important;
  }

  /* Button rows on mobile */
  .btn-lg { padding: 16px 28px; font-size: 16px; }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Nav trust chips */
  .hero > .wrap > div[style*="flex-wrap:wrap"]:last-child {
    gap: 8px;
  }

  /* Work item height */
  .work-item { aspect-ratio: 4/3; }

  /* Quote page layout */
  .quote-layout {
    display: block !important;
  }
  .quote-layout > * {
    width: 100% !important;
    min-height: auto !important;
  }

  /* FAQ sidebar hide on mobile */
  .faq-sidebar { display: none; }

  /* Sticky CTA improvement */
  .sticky-inner a {
    padding: 14px 10px;
    font-size: 13px;
  }

  /* Prevent horizontal overflow everywhere */
  section, .wrap, header, footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: clamp(44px, 13vw, 72px) !important; }
  .page-hero h1 { font-size: clamp(32px, 10vw, 52px) !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-num { font-size: 28px !important; }
  .btn-lg { width: 100%; justify-content: center; }

  /* Trust chips wrap tighter */
  .hero [style*="display:inline-flex"] {
    font-size: 11px !important;
    padding: 7px 12px !important;
  }
}
