/* ===================================================================
   LGC Horizon — Premium agency landing
   ================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #0A0A0A;
  --bg-soft:       #111111;
  --text:          #F2EEE8;
  --text-muted:    #A8A8A8;
  --accent:        #C7B299;
  --accent-soft:   #d8c7b0;
  --border:        rgba(199, 178, 153, 0.15);
  --border-strong: rgba(199, 178, 153, 0.30);

  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Sora', 'Inter', system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

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

::selection { background: var(--accent); color: #0A0A0A; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(80px, 12vw, 160px) 0; }

.section__head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px;
  --pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .4s var(--ease),
              color .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
  will-change: transform;
}

.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(199,178,153,0.4);
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(199,178,153,0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm { --pad-y: 10px; --pad-x: 22px; font-size: 0.85rem; }
.btn--lg { --pad-y: 18px; --pad-x: 40px; font-size: 1.02rem; }

/* ===================================================================
   NAVBAR
   ================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo { height: 50px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: var(--text); }
.nav__links .btn:hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: max-height .45s var(--ease), padding .45s var(--ease);
}
.nav__mobile.is-open {
  max-height: 380px;
  padding: 16px 24px 28px;
  border-bottom-color: var(--border);
}
.nav__mobile a {
  padding: 14px 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child {
  border: 0;
  margin-top: 14px;
  justify-content: center;
}

/* ===================================================================
   HERO
   ================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__horizon {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* the glowing sun/horizon */
.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
              rgba(199,178,153,0.28) 0%,
              rgba(199,178,153,0.10) 28%,
              rgba(199,178,153,0.02) 50%,
              transparent 68%);
  filter: blur(8px);
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}
/* perspective grid fading into horizon */
.hero__grid {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 240%;
  height: 46%;
  transform: translateX(-50%) perspective(420px) rotateX(68deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
          mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: gridMove 14s linear infinite;
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 80px; }
}
/* the horizon line */
.hero__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46%;
  height: 1px;
  background: linear-gradient(to right,
              transparent, rgba(199,178,153,0.5) 50%, transparent);
}

.hero__inner { position: relative; z-index: 2; max-width: 920px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--text) 55%, #b9b2a6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ===================================================================
   TRUST / CLIENT LOGOS
   ================================================================== */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.trust__title {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.trust__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.trust__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.trust__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.trust__logo:hover { opacity: 1; color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================================
   STATS
   ================================================================== */
.stats { padding: clamp(72px, 10vw, 130px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  padding: 24px;
  border-left: 1px solid var(--border);
}
.stats__grid .stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 16px;
}
.stat__label {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===================================================================
   SERVICES
   ================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: clamp(32px, 4vw, 52px);
  transition: background .4s var(--ease);
}
.service:hover { background: var(--bg-soft); }
.service__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 28px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.service:hover .service__icon { border-color: var(--accent); transform: translateY(-3px); }
.service__icon svg { width: 24px; height: 24px; }
.service__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service__text { color: var(--text-muted); font-size: 0.98rem; }

/* ===================================================================
   CASES
   ================================================================== */
.cases { background: var(--bg-soft); }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: transform .5s var(--ease), border-color .5s var(--ease),
              box-shadow .5s var(--ease);
}
.case:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.case__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
  transition: transform .7s var(--ease);
}
.case__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 13px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.case:hover .case__media { transform: scale(1.05); }
.case__body { padding: 28px; }
.case__index {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.case__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 10px 0 16px;
}
.case__metric { color: var(--text-muted); font-size: 0.95rem; }
.case__metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ===================================================================
   ABOUT
   ================================================================== */
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about__text { color: var(--text-muted); margin-top: 22px; font-size: 1.02rem; }

.about__panel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about__highlight {
  background: var(--bg-soft);
  padding: 28px 32px;
  transition: background .4s var(--ease);
}
.about__highlight:hover { background: #161616; }
.about__highlight-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.about__highlight-text { font-size: 0.95rem; color: var(--text-muted); }

/* ===================================================================
   PROCESS
   ================================================================== */
.process { background: var(--bg-soft); }
.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process__line {
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.step { position: relative; padding-top: 8px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
  transition: border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.step:hover .step__num { border-color: var(--accent); background: var(--accent); color: #0A0A0A; }
.step__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.step__text { color: var(--text-muted); font-size: 0.96rem; }

/* ===================================================================
   TESTIMONIALS
   ================================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.testimonial:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.testimonial__stars { color: var(--accent); letter-spacing: 0.18em; font-size: 0.95rem; }
.testimonial blockquote {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 300;
}
.testimonial figcaption { margin-top: auto; }
.testimonial__name { display: block; font-family: var(--font-display); font-weight: 600; }
.testimonial__role { font-size: 0.85rem; color: var(--text-muted); }

/* ===================================================================
   CTA
   ================================================================== */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(96px, 14vw, 180px) 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta__horizon {
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1100px, 140vw);
  height: min(1100px, 140vw);
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
              rgba(199,178,153,0.20) 0%,
              rgba(199,178,153,0.06) 32%,
              transparent 62%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; max-width: 760px; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.cta__text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
}
.cta__mail {
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.cta__mail:hover { color: var(--accent-soft); border-color: var(--accent); }

/* ===================================================================
   FOOTER
   ================================================================== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 72px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand img { height: 88px; width: auto; margin-bottom: 12px; margin-left: -8px; }
.footer__tagline { color: var(--text-muted); font-size: 0.95rem; max-width: 280px; }
.footer__heading {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-muted); font-size: 0.95rem; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__legal a:hover { color: var(--text); }

/* ===================================================================
   REVEAL ANIMATION
   ================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children inside a grid */
.services__grid .reveal:nth-child(2) { transition-delay: .08s; }
.services__grid .reveal:nth-child(3) { transition-delay: .16s; }
.services__grid .reveal:nth-child(4) { transition-delay: .24s; }
.cases__grid .reveal:nth-child(2),
.testimonials__grid .reveal:nth-child(2) { transition-delay: .1s; }
.cases__grid .reveal:nth-child(3),
.testimonials__grid .reveal:nth-child(3) { transition-delay: .2s; }
.process__grid .step:nth-child(3) { transition-delay: .1s; }
.process__grid .step:nth-child(4) { transition-delay: .2s; }
.process__grid .step:nth-child(5) { transition-delay: .3s; }

/* ===================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }

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

  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .process__line { display: none; }

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

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .stats__grid { grid-template-columns: 1fr; gap: 8px; }
  .stat { border-left: 0; border-top: 1px solid var(--border); padding: 28px 0; }
  .stats__grid .stat:first-child { border-top: 0; }
  .process__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
