/* ==========================================================================
   Devify — Shared Stylesheet
   ========================================================================== */

:root {
  --ink: #12131a;
  --ink-soft: #4b4d5c;
  --ink-faint: #7a7c8c;
  --bg: #ffffff;
  --bg-alt: #f6f6fb;
  --bg-dark: #0d0e17;
  --bg-dark-alt: #15172a;
  --line: #e7e7f0;
  --primary: #4f46e5;
  --primary-dark: #3f37c9;
  --primary-light: #eef0ff;
  --accent: #06b6d4;
  --accent-light: #e3fbff;
  --good: #16a34a;
  --warn: #f59e0b;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18,19,26,0.06), 0 1px 1px rgba(18,19,26,0.04);
  --shadow-md: 0 8px 24px rgba(18,19,26,0.08);
  --shadow-lg: 0 20px 48px rgba(18,19,26,0.14);
  --maxw: 1180px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 19px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.55); }
  50% { box-shadow: 0 0 0 12px rgba(79,70,229,0); }
}
.btn-pulse { animation: ctaPulse 2.2s ease-in-out infinite; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 200; transition: width .1s ease-out;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,14,23,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled {
  background: rgba(0,0,0,0.96);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nav-top {
  background: #000;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.nav-top .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.nav-top a { font-weight: 700; color: #fff; }
.nav-top .nav-top-phone { display: flex; align-items: center; gap: 8px; }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 800;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .2s ease, left .2s ease;
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; left: 0; }
@media (max-width: 960px) { .nav-links > li > a::after { display: none; } }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.72); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { margin: 5px 0; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 260px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; }
.dropdown a:hover { background: var(--bg-alt); color: var(--primary); }

@media (max-width: 960px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--bg-dark);
    flex-direction: column; align-items: stretch; padding: 20px 24px; gap: 4px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: none; display: none; padding: 0 0 0 14px; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown .dropdown a { color: rgba(255,255,255,0.6); }
  .has-dropdown .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Photo sections (dark overlay + background image) ---------- */
.photo-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.photo-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.94), rgba(0,0,0,0.9));
}
.photo-section > .container { position: relative; z-index: 1; }
.photo-section h1, .photo-section h2, .photo-section h3, .photo-section h4 { color: #fff; }
.photo-section p { color: rgba(255,255,255,0.72); }
.photo-section .eyebrow { background: rgba(255,255,255,0.1); color: var(--accent); }
.photo-section .hero-badges span { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; box-shadow: none; }
.photo-section .hero-trust div { color: rgba(255,255,255,0.55); }
.photo-section .hero-trust strong { color: #fff; }
.photo-section .check-list li { color: rgba(255,255,255,0.72); }
.photo-section .section-head p { color: rgba(255,255,255,0.68); }
.photo-section .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.photo-section .card:hover { border-color: rgba(255,255,255,0.24); }
.photo-section .card p { color: rgba(255,255,255,0.62); }
.photo-section .card h3 { color: #fff; }
.photo-section .card .icon { background: rgba(255,255,255,0.1); color: var(--accent); }
.photo-section .stats-bar { background: transparent; padding: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 90px;
}
.hero:not(.photo-section) {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79,70,229,0.12), transparent),
    radial-gradient(700px 400px at 0% 10%, rgba(6,182,212,0.10), transparent);
}
.hero-inner { padding: 56px 0 64px; overflow: hidden; }
.photo-section .breadcrumb, .photo-section .breadcrumb a { color: rgba(255,255,255,0.5); }
.photo-section .breadcrumb a:hover { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(34px, 4.8vw, 56px); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 540px; }
.photo-section.hero p.lead { color: rgba(255,255,255,0.75); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { font-size: 14px; color: var(--ink-faint); }
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 26px; color: var(--ink); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-badges span { font-size: 13.5px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }

/* ---------- Hero glow orbs ---------- */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0;
  animation: orbDrift 14s ease-in-out infinite;
}
.hero-orb-1 { width: 340px; height: 340px; top: -80px; right: 6%; background: radial-gradient(circle, rgba(79,70,229,0.45), transparent 70%); }
.hero-orb-2 { width: 260px; height: 260px; bottom: -60px; left: 2%; background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 70%); animation-delay: 3s; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}
.hero.photo-section { overflow: hidden; }

/* ---------- Scroll-down indicator ---------- */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 54px; color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; width: fit-content;
}
.scroll-cue svg { animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Quote card (hero lead form) ---------- */
.quote-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 32px; position: relative; overflow: hidden;
}
.quote-card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}
.quote-card h3 { font-size: 21px; position: relative; }
.quote-card p.sub { color: var(--ink-soft); font-size: 15.5px; position: relative; margin-bottom: 22px; }
.quote-card form { position: relative; }
.quote-response { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }
.quote-response strong { color: var(--ink); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 60px 0 56px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 14px; color: var(--ink-faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--primary); }
.page-header h1 { font-size: clamp(32px, 4.2vw, 48px); max-width: 760px; }
.page-header p.lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Contact strip ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-strip .item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.contact-strip .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-strip h4 { font-size: 15.5px; margin-bottom: 3px; }
.contact-strip p { font-size: 15px; color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 900px) { .contact-strip { grid-template-columns: 1fr; } }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  transition: transform .3s ease, background .3s ease;
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); background: var(--primary); }
.card h3 { font-size: 20.5px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 0; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--primary); }
.card a.card-link span.arrow { display: inline-block; transition: transform .25s ease; }
.card:hover a.card-link span.arrow { transform: translateX(5px); }

.service-card { display: block; }
.service-card .tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ---------- Icon badges (inline svg wrapper) ---------- */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-bar strong { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.2vw, 42px); color: var(--accent); }
.stats-bar span { font-size: 15px; color: rgba(255,255,255,0.65); }
@media (max-width: 720px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--primary-light);
  -webkit-text-stroke: 1.5px var(--primary); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps.steps-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps.steps-3 { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-card {
  background: var(--bg-alt); border-radius: var(--radius-md); padding: 30px;
  border: 1px solid var(--line);
}
.testi-card .stars { color: var(--warn); letter-spacing: 2px; margin-bottom: 14px; font-size: 16px; }
.stars span { display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
.stars span:nth-child(2) { animation-delay: .15s; }
.stars span:nth-child(3) { animation-delay: .3s; }
.stars span:nth-child(4) { animation-delay: .45s; }
.stars span:nth-child(5) { animation-delay: .6s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
.testi-card p.quote { font-size: 17px; color: var(--ink); }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); flex-shrink: 0; }
.testi-person strong { display: block; font-size: 15px; }
.testi-person span { font-size: 14px; color: var(--ink-faint); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #05060a, #1a1330 45%, #04222b 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  border-radius: var(--radius-lg);
  padding: 60px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.08);
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-banner h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card .badge {
  position: absolute; top: -14px; right: 28px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.price-card .amount { font-family: var(--font-head); font-size: 42px; font-weight: 800; margin: 6px 0 4px; }
.price-card .amount span { font-size: 16px; font-weight: 600; color: var(--ink-faint); }
.price-card ul { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-soft); align-items: flex-start; }
.price-card li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--accent); stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 960px) { .price-card.featured { transform: none; } }

/* ---------- Comparison ---------- */
.compare { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: none; }
.compare-row.head { background: #000; color: #fff; font-family: var(--font-head); font-weight: 700; }
.compare-row > div { padding: 16px 20px; font-size: 15.5px; }
.compare-row .feature { color: var(--ink-soft); }
.compare-row.head .feature { color: rgba(255,255,255,0.6); font-weight: 600; }
.compare-row .yes { color: var(--good); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.compare-row .no { color: var(--ink-faint); }
.compare-col-devify { background: var(--primary-light); font-weight: 700; }
@media (max-width: 640px) { .compare-row { grid-template-columns: 1.2fr 1fr 1fr; } .compare-row > div { padding: 12px 10px; font-size: 14px; } }

/* ---------- Case study ---------- */
.case-study {
  background: var(--bg-dark); color: #fff; border-radius: var(--radius-lg);
  padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.case-study .eyebrow { background: rgba(255,255,255,0.1); color: var(--accent); }
.case-study h2, .case-study h3 { color: #fff; }
.case-study p { color: rgba(255,255,255,0.75); }
.case-study .stat-row { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.case-study .stat-row div strong { display: block; font-family: var(--font-head); font-size: 32px; color: var(--accent); }
.case-study .stat-row div span { font-size: 14px; color: rgba(255,255,255,0.6); }
.case-study .quote-block { background: rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: 26px; }
.case-study .quote-block p.quote { font-size: 17px; color: #fff; }
@media (max-width: 900px) { .case-study { grid-template-columns: 1fr; padding: 32px; } }

/* ---------- Buyer's guide ---------- */
.guide-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-item:last-child { border-bottom: none; }
.guide-num { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--primary); flex-shrink: 0; width: 44px; }
.guide-item h4 { font-size: 17px; margin-bottom: 6px; }
.guide-item p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; font-family: var(--font-head); font-size: 17.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--primary); flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--ink-soft); padding-bottom: 20px; font-size: 16px; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease .05s, transform .3s ease .05s; }
.faq-item.open .faq-a p { opacity: 1; transform: translateY(0); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; background: var(--bg-alt); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 14px; color: var(--ink-faint); margin-top: 10px; }
.form-success { background: var(--accent-light); color: var(--primary-dark); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; font-weight: 700; margin-top: 16px; }

/* ---------- Contact info blocks ---------- */
.info-card { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: none; }
.info-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card h4 { margin-bottom: 4px; font-size: 16px; }
.info-card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }

/* ---------- Blog ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { height: 170px; background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); position: relative; }
.post-thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 16px; opacity: .55; text-align: center; padding: 0 20px; }
.post-body { padding: 24px; }
.post-cat { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 8px; display: block; }
.post-body h3 { font-size: 19px; margin-bottom: 8px; }
.post-body p { color: var(--ink-soft); font-size: 15.5px; }
.post-meta { font-size: 14px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Portfolio ---------- */
.work-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.work-thumb { height: 200px; position: relative; }
.work-body { padding: 22px 24px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.work-tags span { font-size: 13px; font-weight: 700; background: var(--bg-alt); padding: 5px 11px; border-radius: 999px; color: var(--ink-soft); }

/* ---------- Logo marquee ---------- */
.marquee-wrap {
  background: #000; border-radius: var(--radius-lg); padding: 30px 0;
  overflow: hidden; position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, #000, transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(270deg, #000, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track div { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: rgba(255,255,255,0.55); white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split-visual {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark-alt));
  border-radius: var(--radius-lg); min-height: 340px; position: relative; overflow: hidden;
}
.card-float {
  position: absolute; background: #fff; border-radius: var(--radius-md); padding: 16px 18px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  animation: floatBob 4s ease-in-out infinite;
}
.card-1 { top: 40px; left: 30px; }
.card-2 { bottom: 50px; right: 30px; animation-delay: .6s; }
.card-3 { top: 50%; left: 50%; transform: translate(-50%,-50%); animation: floatBobCenter 4s ease-in-out infinite; animation-delay: 1.2s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes floatBobCenter {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 9px)); }
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink:0; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.check-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- Service area list ---------- */
.area-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.area-pill { font-size: 15px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.area-pill svg { color: var(--primary); width: 16px; height: 16px; }

.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .section-head p { color: rgba(255,255,255,0.65); }
.text-center { text-align: center; }

/* ---------- Scroll reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
footer { background: #000; color: rgba(255,255,255,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 11px; font-size: 15.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 15.5px; max-width: 300px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 14px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag-pill { font-size: 14px; font-weight: 700; background: var(--bg-alt); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card-float, .marquee-track, .btn-pulse, .cta-banner, .hero-orb, .scroll-cue svg, .stars span {
    animation: none !important;
  }
}
