/* ============================================
   WEABLE.FR — Premium Agency Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --blue: #529acb;
  --blue-dark: #3a7db0;
  --orange: #ec624a;
  --orange-light: #f8bb73;
  --gradient: linear-gradient(135deg, #ec624a 0%, #f8bb73 100%);
  --gradient-blue: linear-gradient(135deg, #529acb 0%, #4d66a7 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --text: #2d2d2d;
  --text-light: #6b7280;
  --text-white: #f1f5f9;
  --bg-light: #f8f9fa;
  --bg-dark: #0f1117;
  --bg-dark-card: #1a1b23;
  --bg-white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 60px -15px rgba(0,0,0,.3);
  --shadow-glow: 0 0 40px rgba(82,154,203,.15);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --header-h: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { font-size: clamp(.95rem, 1.5vw, 1.1rem); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-label--light {
  color: var(--orange-light);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.section-subtitle--light {
  color: rgba(241,245,249,.65);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: .875rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(236,98,74,.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236,98,74,.45);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--large {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(82,154,203,.2); }
  50% { box-shadow: 0 0 40px rgba(82,154,203,.4); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(15,17,23,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: .6rem 0;
  box-shadow: 0 1px 30px rgba(0,0,0,.2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  height: 36px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .header__logo {
  height: 30px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__links {
  display: flex;
  gap: 1.75rem;
}

.header__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.header__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.header__links a:hover { color: #fff; }
.header__links a:hover::after { width: 100%; }

.header__cta {
  background: var(--gradient);
  color: #fff;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all var(--transition);
}

.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(236,98,74,.4);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,154,203,.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,98,74,.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: fadeUp .8s ease-out .4s both;
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(82,154,203,.12), rgba(236,98,74,.08));
  mix-blend-mode: multiply;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(82,154,203,.1);
  border: 1px solid rgba(82,154,203,.25);
  border-radius: 50px;
  padding: .45rem 1.25rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 2rem;
  animation: fadeUp .8s ease-out;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
  fill: var(--blue);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s ease-out .1s both;
}

.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: rgba(241,245,249,.6);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeUp .8s ease-out .2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .8s ease-out .3s both;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 1s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: float 2s ease-in-out infinite;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: block;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(82,154,203,.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: .75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(82,154,203,.08), rgba(236,98,74,.05));
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.stat__label {
  color: rgba(241,245,249,.6);
  font-size: .95rem;
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  background: rgba(255,255,255,.1);
  display: block;
}

/* ============================================
   ABOUT / TEAM
   ============================================ */
.about {
  background: var(--bg-white);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.founder-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(82,154,203,.15);
}

.founder-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.founder-card__avatar--alex {
  background: var(--gradient);
}

.founder-card__avatar--morgan {
  background: var(--gradient-blue);
}

.founder-card__name {
  font-size: 1.3rem;
  margin-bottom: .25rem;
}

.founder-card__role {
  color: var(--blue);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.founder-card__bio {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--bg-dark);
  color: #fff;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process__grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--orange), var(--orange-light), var(--blue), var(--blue-dark));
  opacity: .3;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-dark-card);
  border: 2px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.process-step:hover .process-step__number {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 30px rgba(236,98,74,.3);
}

.process-step h3 {
  margin-bottom: .75rem;
  font-size: 1.15rem;
}

.process-step p {
  color: rgba(241,245,249,.55);
  font-size: .92rem;
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--bg-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.25rem;
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
}

.testimonial-card__text {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 1.25rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__info strong {
  display: block;
  font-size: .9rem;
}

.testimonial-card__info span {
  display: block;
  color: var(--text-light);
  font-size: .8rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(236,98,74,.12), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(82,154,203,.12), transparent 60%);
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(241,245,249,.6);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-bottom: 2.5rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: all var(--transition);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h4 {
  margin-bottom: .5rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: .95rem;
}

.contact-item a:hover {
  color: var(--blue);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(241,245,249,.5);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__logo {
  height: 32px;
  opacity: .8;
}

.footer__tagline {
  font-size: .95rem;
  max-width: 400px;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__socials a:hover {
  background: var(--gradient);
  transform: translateY(-2px);
}

.footer__socials svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,.7);
}

.footer__bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  margin-top: .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

.footer__bottom a {
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .process__grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__links { display: none; }
  .header__cta { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile menu */
  .header__nav.open .header__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,17,23,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
  }

  .header__nav.open .header__links a {
    font-size: 1.2rem;
  }

  .header__nav.open .header__cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 1rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat__divider {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .process__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  .hero__split {
    grid-template-columns: 1fr;
  }

  .hero__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero__content {
    padding: 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Scroll offset for anchors --- */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* --- Selection color --- */
::selection {
  background: rgba(82,154,203,.25);
  color: inherit;
}

/* --- Focus visible for a11y --- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================
   INNER PAGES — Shared Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  padding: .75rem 0;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span { color: rgba(255,255,255,.4); margin: 0 .5rem; }

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.page-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.page-hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(82,154,203,.15), rgba(236,98,74,.1));
  mix-blend-mode: multiply;
}

.page-hero__image--glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero__bg::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,154,203,.12) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,98,74,.08) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(82,154,203,.1);
  border: 1px solid rgba(82,154,203,.25);
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.page-hero__desc {
  color: rgba(241,245,249,.6);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.page-hero .btn { margin-top: .5rem; }

/* Content Sections */
.content-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.content-section--alt {
  background: var(--bg-light);
}

.content-section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.content-section--dark .section-subtitle {
  color: rgba(241,245,249,.6);
}

.content-section--dark .section-label {
  color: var(--orange-light);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.feature-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}

.content-section--alt .feature-card {
  background: var(--bg-white);
}

.content-section--dark .feature-card {
  background: var(--bg-dark-card);
  border-color: rgba(255,255,255,.06);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card__icon--blue {
  background: var(--gradient-blue);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
}

.feature-card h3 {
  margin-bottom: .75rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.65;
}

.content-section--dark .feature-card h3 { color: #fff; }
.content-section--dark .feature-card p { color: rgba(241,245,249,.6); }

/* Intro Block (icon left + text right) */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-block--reverse {
  direction: rtl;
}

.intro-block--reverse > * {
  direction: ltr;
}

.intro-block__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gradient-dark);
}

.intro-block__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.intro-block__visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Decorative browser mockup */
.browser-mockup {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.browser-mockup__bar {
  background: #1e1e2e;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.browser-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-mockup__dot:nth-child(1) { background: #ff5f57; }
.browser-mockup__dot:nth-child(2) { background: #ffbd2e; }
.browser-mockup__dot:nth-child(3) { background: #28c840; }

.browser-mockup__url {
  flex: 1;
  margin-left: .5rem;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: .25rem .6rem;
  font-size: .65rem;
  color: rgba(255,255,255,.5);
  font-family: 'Inter', monospace;
}

.browser-mockup__body {
  background: #fff;
  padding: 1.5rem;
  min-height: 200px;
}

.browser-mockup__skeleton {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.browser-mockup__skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: #e5e7eb;
}

.browser-mockup__skeleton-line:nth-child(1) { width: 60%; height: 14px; background: var(--gradient); opacity: .6; }
.browser-mockup__skeleton-line:nth-child(2) { width: 100%; }
.browser-mockup__skeleton-line:nth-child(3) { width: 90%; }
.browser-mockup__skeleton-line:nth-child(4) { width: 75%; }
.browser-mockup__skeleton-line:nth-child(5) { width: 40%; height: 24px; border-radius: 12px; background: var(--gradient); opacity: .5; margin-top: .5rem; }

.intro-block__text h2 {
  margin-bottom: 1.25rem;
}

.intro-block__text p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.intro-block__text .btn {
  margin-top: 1rem;
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem 0;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.content-section--dark .check-list li {
  color: rgba(241,245,249,.8);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.content-section--dark .faq-item {
  border-bottom-color: rgba(255,255,255,.08);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

.content-section--dark .faq-item__question {
  color: #fff;
}

.faq-item__question:hover { color: var(--blue); }

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.faq-item.open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .4s;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: .95rem;
}

.content-section--dark .faq-item__answer p {
  color: rgba(241,245,249,.6);
}

/* Local area highlight */
.local-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.local-area__map {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--gradient-dark);
  overflow: hidden;
}

.local-area__map-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.local-area__pin {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.local-area__pin::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transform: rotate(45deg);
}

.local-area__map-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.local-area__map-rings::before,
.local-area__map-rings::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(82,154,203,.15);
}

.local-area__map-rings::before {
  width: 60%;
  height: 60%;
}

.local-area__map-rings::after {
  width: 85%;
  height: 85%;
}

.local-cities {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.local-cities a {
  display: inline-block;
  padding: .4rem 1rem;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.local-cities a:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-2px);
}

/* Page nav links in footer area */
.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.page-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.page-link-card:hover {
  background: var(--bg-white);
  border-color: rgba(82,154,203,.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.page-link-card svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.page-link-card strong {
  font-size: .9rem;
}

/* Inner page nav in header */
.header__dropdown {
  position: relative;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15,17,23,.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-sm);
  padding: .75rem 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.08);
  z-index: 100;
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.header__dropdown-menu a {
  display: block;
  padding: .6rem 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}

.header__dropdown-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

/* Comparison / before-after */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
}

.comparison-card--before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.comparison-card--after {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.comparison-card__label {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}

.comparison-card--before .comparison-card__label {
  background: #fee2e2;
  color: #dc2626;
}

.comparison-card--after .comparison-card__label {
  background: #dcfce7;
  color: #16a34a;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
}

.comparison-card li {
  padding: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text);
}

.comparison-card--before li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

.comparison-card--after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* Tech stack tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.tech-tag {
  padding: .45rem 1rem;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
}

.tech-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Decorative SVG illustrations */
.deco-code {
  font-family: 'Courier New', monospace;
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  line-height: 1.8;
  text-align: left;
  position: relative;
  z-index: 2;
}

.deco-code .tag { color: var(--blue); opacity: .6; }
.deco-code .attr { color: var(--orange-light); opacity: .5; }
.deco-code .val { color: #a78bfa; opacity: .5; }

/* Responsive for inner pages */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .intro-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-block--reverse { direction: ltr; }
  .local-area { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid--4 { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + 2rem) 0 3rem; }
  .page-hero__split { grid-template-columns: 1fr; }
  .page-hero__image { max-width: 400px; margin: 0 auto; }
  .local-area__map { max-width: 300px; margin: 0 auto; }
}

/* --- Reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
