/* ===== SHARED STYLES — The Magic Advertising ===== */

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

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

:root {
  --black: #050505;
  --white: rgba(255,255,255,0.95);
  --white-dim: rgba(255,255,255,0.55);
  --white-faint: rgba(255,255,255,0.12);
  --accent: oklch(72% 0.18 45);
  --accent2: oklch(72% 0.18 200);
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: auto;
}

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

/* ===== LIQUID GLASS ===== */
.liquid-glass {
  background: rgba(255,255,255,0.035);
  background-blend-mode: luminosity;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), inset 0 -1px 1px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 24px;
  transition: padding 0.4s ease;
}
.nav-bar.scrolled { padding: 12px 24px; }

.nav-inner {
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  transition: background 0.4s ease;
}

.nav-left { display: flex; align-items: center; gap: 36px; }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: white;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(255,255,255,0.08); }

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}
.custom-cursor.hovering { width: 60px; height: 60px; border-color: rgba(255,255,255,0.9); }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }
[data-reveal][data-delay="6"] { transition-delay: 0.6s; }
[data-reveal][data-delay="7"] { transition-delay: 0.7s; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  padding: 80px 40px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p { font-size: 0.82rem; color: var(--white-dim); line-height: 1.8; margin-top: 16px; max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, background 0.2s;
}
.footer-socials a:hover { color: white; background: rgba(255,255,255,0.08); }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.serif-heading {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.serif-heading em { font-style: italic; color: rgba(255,255,255,0.55); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: black;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.15); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* ===== PAGE HERO (non-home) ===== */
.page-hero {
  padding: 180px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== TICKER ===== */
.ticker-wrap {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.35);
  padding: 0 32px;
}
.ticker-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.6rem;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Horizontal scroll line */
.h-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 140px 24px 80px; }

  /* Nav */
  .nav-bar { padding: 12px 16px; }
  .nav-inner { padding: 8px 16px; }
  .nav-cta { padding: 7px 16px; font-size: 0.75rem; }

  /* Footer */
  .site-footer { padding: 60px 24px 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { font-size: 0.7rem; text-align: center; }

  /* Ticker */
  .ticker-item { font-size: 0.85rem; padding: 0 20px; }

  /* Hero home */
  .hero-heading { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-input-row { max-width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .scroll-hint { bottom: 160px; }

  /* Section shared */
  .serif-heading { font-size: clamp(1.9rem, 7vw, 3rem); }
  .section-label { font-size: 0.65rem; }

  /* Services grid home */
  .services-overview { padding: 80px 20px; }
  .services-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }

  /* Stats */
  .stats-band { padding: 80px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 40px 28px; }
  .stat-number { font-size: 3.5rem; }

  /* Testimonials */
  .testimonials { padding: 80px 20px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  /* FAQ */
  .faq-section { padding: 80px 20px; }
  .faq-q { font-size: 0.88rem; }

  /* CTA band */
  .cta-band { padding: 80px 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-heading { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-sub { font-size: 0.78rem; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
  .service-card h3 { font-size: 1.1rem; }
  .testimonial-card { padding: 28px 20px; }
}
