:root {
  --bg: #0b0d18;
  --bg-2: #11142400;
  --panel: #141829;
  --panel-2: #1a1f36;
  --ink: #eef0fb;
  --ink-soft: #b8bdd6;
  --ink-dim: #888fb0;
  --line: #262c47;
  --green: #8fd79a;
  --purple: #b5a8f0;
  --blue: #9db4f7;
  --pink: #f2bcd4;
  --accent: #b5a8f0;
  --radius: 18px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Sora', system-ui, sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,13,24,.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; font-family: 'Sora'; font-weight: 700; font-size: 1.05rem; }
.nav__logo { width: 38px; height: auto; filter: drop-shadow(0 2px 8px rgba(181,168,240,.4)); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--accent); color: #14152b !important; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  text-align: left; padding: 140px clamp(20px, 7vw, 90px) 110px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('assets/landscape-hero.webp') center/cover no-repeat;
  transform: scale(1.06); filter: saturate(1.05);
  animation: drift 32s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-2.5%, -2%, 0); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,18,.92) 0%, rgba(8,9,18,.72) 42%, rgba(8,9,18,.30) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(11,13,24,0) 40%, rgba(11,13,24,.45) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__kicker {
  font-family: 'Sora'; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.3rem, 6vw, 4.3rem); font-weight: 800; margin-bottom: 24px; text-shadow: 0 2px 40px rgba(0,0,0,.4); }
.hero__title br { display: block; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 620px; margin: 0 0 38px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--ink-soft); font-size: 1.3rem; animation: bounce 2.4s ease-in-out infinite; opacity: .7;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: .98rem; transition: transform .2s var(--ease), box-shadow .25s, background .25s; cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #14152b;
  box-shadow: 0 10px 30px -10px rgba(157,180,247,.7);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(157,180,247,.85); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-3px); }
.btn--lg { padding: 17px 38px; font-size: 1.12rem; }

/* ===== SECTIONS ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 130px) clamp(20px, 5vw, 40px); }
.section__head { max-width: 720px; margin-bottom: 54px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 700; }

/* ===== ABOUT ===== */
.about__layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; }
.about__body { display: flex; flex-direction: column; gap: 22px; }
.about__body p { color: var(--ink-soft); font-size: 1.08rem; }
.about__body strong { color: var(--ink); font-weight: 600; }
.about__card {
  position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.about__card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: 62% center; filter: grayscale(.06); }
.about__card h3 { font-size: 1.2rem; margin: 20px 22px 2px; }
.about__role { margin: 0 22px 22px; color: var(--accent); font-size: .9rem; font-weight: 500; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px;
  border-top: 1px solid var(--line); padding-top: 44px;
}
.stat { text-align: center; }
.stat__num { display: block; font-family: 'Sora'; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__num--text { font-size: clamp(1.3rem, 3.2vw, 2rem); }
.stat__label { color: var(--ink-dim); font-size: .9rem; }

/* ===== OFFER ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(181,168,240,.14), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(181,168,240,.5); background: var(--panel-2); }
.card:hover::after { opacity: 1; }
.card__no {
  display: block; font-family: 'Sora'; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 16px; opacity: .85;
}
.card h3 { font-size: 1.08rem; margin-bottom: 9px; font-weight: 600; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card--accent { background: linear-gradient(150deg, rgba(181,168,240,.16), rgba(143,215,154,.08)); border-color: rgba(181,168,240,.4); }

/* ===== TECH ===== */
.tech__group { margin-bottom: 34px; }
.tech__group h4 { color: var(--ink-dim); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: 'Sora'; font-size: .92rem; font-weight: 500; padding: 9px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft);
  transition: transform .2s var(--ease), color .2s, border-color .2s;
}
.chips li:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--accent); }

/* ===== CLIENTS ===== */
.clients__list {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.client {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; min-height: 116px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.client img {
  max-height: 48px; width: auto; object-fit: contain;
  opacity: .72; transition: opacity .3s;
}
.client:hover { transform: translateY(-4px); border-color: rgba(181,168,240,.4); background: var(--panel-2); }
.client:hover img { opacity: 1; }

/* ===== TESTIMONIALS ===== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: border-color .3s, transform .3s var(--ease);
}
.quote:hover { border-color: rgba(181,168,240,.45); transform: translateY(-4px); }
.quote blockquote { font-size: 1.06rem; color: var(--ink); line-height: 1.6; position: relative; }
.quote blockquote::before { content: "\201C"; font-family: 'Sora'; font-size: 3rem; color: var(--accent); opacity: .4; position: absolute; top: -28px; left: -8px; }
.quote figcaption { margin-top: 22px; display: flex; flex-direction: column; }
.quote figcaption strong { font-family: 'Sora'; font-weight: 600; }
.quote figcaption span { color: var(--ink-dim); font-size: .9rem; }

/* ===== CONTACT ===== */
.contact { max-width: 940px; }
.contact__card {
  position: relative; overflow: hidden; text-align: center; padding: clamp(54px, 9vw, 96px) 32px;
  border: 1px solid rgba(181,168,240,.28); border-radius: 28px;
  background: #0e1020;
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('assets/landscape-accent.webp') center/cover no-repeat;
  opacity: .5;
}
.contact__card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,14,28,.55), rgba(12,14,28,.82));
}
.contact__card > * { position: relative; z-index: 2; }
.contact__card h2 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 14px 0 30px; }
.contact__loc { color: var(--ink-dim); margin-top: 22px; }

/* ===== FOOTER ===== */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 40px 24px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: .9rem;
}
.footer__logo { width: 30px; opacity: .8; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .about__layout { grid-template-columns: 1fr; gap: 32px; }
  .about__card { position: static; max-width: 320px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .clients__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: rgba(13,15,28,.97); backdrop-filter: blur(18px); padding: 40px;
    transform: translateX(100%); transition: transform .4s var(--ease); border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 60; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
