/* ===================================================================
   AGANCE — AI-first digital agency
   Premium dark theme · brand red accent · node-network motif
   =================================================================== */

:root{
  --bg:        #16181E;   /* dark charcoal, not pure black */
  --bg-2:      #1B1E25;
  --surface:   #21242C;
  --surface-2: #282C35;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.15);
  --text:      #F4F4F6;
  --muted:     #A7A8B2;
  --muted-2:   #74757F;
  --red:       #FF2020;   /* refined brand red */
  --red-2:     #FF4747;
  --red-deep:  #C81212;
  --node:      #8F8F8F;

  --maxw: 1180px;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

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

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }

h1,h2,h3,h4{ font-family:var(--font-head); font-weight:600; line-height:1.08; letter-spacing:-0.02em; }

.accent{ color:var(--red); }

/* ---------- Brand wordmark ---------- */
.nav__brand{ display:inline-flex; align-items:center; gap:11px; }
.brand-word{
  font-family:var(--font-head); font-weight:700; font-size:20px;
  letter-spacing:0.04em; color:var(--red);
}
.brand-ai{ color:var(--text); font-weight:600; }
.brand-dots{
  display:grid; grid-template-columns:repeat(3,5px); gap:3px;
}
.brand-dots span{
  width:5px; height:5px; border-radius:50%; background:var(--node);
}
.brand-dots span:nth-child(2){ background:var(--red); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:500; font-size:15px;
  padding:12px 22px; border-radius:var(--r-sm); cursor:pointer;
  border:1px solid transparent; transition:transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space:nowrap;
}
.btn--solid{
  background:var(--red); color:#fff;
  box-shadow:0 6px 24px -8px rgba(255,32,32,.55);
}
.btn--solid:hover{ background:var(--red-2); transform:translateY(-2px); box-shadow:0 10px 30px -8px rgba(255,32,32,.7); }
.btn--ghost{ background:transparent; color:var(--text); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--text); transform:translateY(-2px); }
.btn--lg{ padding:15px 28px; font-size:16px; }
.btn--block{ width:100%; }

/* ---------- NAV ---------- */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom:1px solid transparent;
}
.nav.is-stuck{
  background:rgba(22,24,30,.78);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom-color:var(--line);
}
.nav__inner{ display:flex; align-items:center; gap:32px; height:72px; }
.nav__links{ display:flex; gap:30px; margin-left:8px; }
.nav__links a{ color:var(--muted); font-size:15px; font-weight:500; transition:color .2s; }
.nav__links a:hover{ color:var(--text); }
.nav__cta{ margin-left:auto; display:flex; align-items:center; gap:20px; }
.nav__phone{ color:var(--muted); font-size:14px; font-weight:500; }
.nav__phone:hover{ color:var(--text); }

.nav__burger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; margin-left:auto; }
.nav__burger span{ width:24px; height:2px; background:var(--text); border-radius:2px; transition:.25s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2){ opacity:0; }
.nav.is-open .nav__burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav__mobile{
  display:none; flex-direction:column; gap:6px; padding:0 28px;
  max-height:0; overflow:hidden; transition:max-height .35s var(--ease), padding .35s;
  background:rgba(22,24,30,.97); backdrop-filter:blur(14px); border-bottom:1px solid var(--line);
}
.nav.is-open .nav__mobile{ max-height:340px; padding:14px 28px 24px; }
.nav__mobile a{ padding:12px 0; color:var(--muted); font-size:17px; border-bottom:1px solid var(--line); }
.nav__mobile a:last-child{ border:0; margin-top:10px; justify-content:center; color:#fff; }

/* ---------- HERO ---------- */
.hero{ position:relative; padding:160px 0 110px; overflow:hidden; }
.hero__canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; opacity:.9; }
.hero__glow{
  position:absolute; top:-10%; left:50%; transform:translateX(-50%);
  width:900px; height:560px; z-index:0; pointer-events:none;
  background:radial-gradient(closest-side, rgba(255,32,32,.16), transparent 70%);
  filter:blur(10px);
}
.hero__inner{ position:relative; z-index:2; max-width:880px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-size:13.5px; font-weight:500; color:var(--muted);
  letter-spacing:.04em; text-transform:none;
  border:1px solid var(--line); border-radius:100px; padding:7px 15px;
  background:rgba(255,255,255,.02); margin-bottom:26px;
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--red); box-shadow:0 0 10px var(--red); }

.hero__title{ font-size:clamp(2.6rem, 6vw, 4.6rem); }
.hero__lead{ font-size:clamp(1.05rem,1.6vw,1.3rem); color:var(--muted); max-width:620px; margin:26px 0 38px; }
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero__stats{ list-style:none; display:flex; gap:48px; margin-top:64px; flex-wrap:wrap; }
.hero__stats li{ display:flex; flex-direction:column; gap:3px; }
.hero__stats strong{ font-family:var(--font-head); font-size:1.05rem; }
.hero__stats span{ font-size:14px; color:var(--muted); }
.hero__stats li{ padding-left:16px; border-left:2px solid var(--red); }

/* ---------- TRUST STRIP ---------- */
.strip{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:30px 0; background:var(--bg-2); }
.strip__label{ text-align:center; font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-2); margin-bottom:18px; }
.strip__items{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px 34px; }
.strip__items span{ font-family:var(--font-head); font-weight:500; font-size:16px; color:var(--muted); transition:color .2s; }
.strip__items span:hover{ color:var(--text); }

/* ---------- SECTION SHELL ---------- */
.section{ padding:110px 0; }
.section--alt{ background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.kicker{ display:inline-flex; align-items:center; gap:9px; font-family:var(--font-head); font-size:13px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--red); margin-bottom:20px; }
.kicker span{ width:24px; height:1px; background:var(--red); display:inline-block; }

.section__head{ max-width:680px; margin-bottom:60px; }
.section__head h2{ font-size:clamp(2rem,4vw,3.1rem); }
.section__sub{ color:var(--muted); font-size:1.1rem; margin-top:20px; max-width:560px; }

/* ---------- GRID + SERVICE CARDS ---------- */
.grid{ display:grid; gap:22px; }
.grid--services{ grid-template-columns:repeat(2,1fr); }

.card{
  position:relative; padding:34px 32px 36px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  transition:transform .3s var(--ease), border-color .3s, background .3s;
  overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0 0 auto 0; height:2px;
  background:linear-gradient(90deg, var(--red), transparent);
  transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease);
}
.card:hover{ transform:translateY(-5px); border-color:var(--line-2); background:var(--surface-2); }
.card:hover::before{ transform:scaleX(1); }
.card__num{ font-family:var(--font-head); font-size:13px; color:var(--red); letter-spacing:.1em; margin-bottom:18px; }
.card h3{ font-size:1.45rem; margin-bottom:12px; }
.card p{ color:var(--muted); font-size:1rem; }
.card__list{ list-style:none; margin-top:20px; display:flex; flex-direction:column; gap:9px; }
.card__list li{ position:relative; padding-left:20px; font-size:.95rem; color:var(--muted); }
.card__list li::before{ content:""; position:absolute; left:0; top:9px; width:6px; height:6px; border-radius:50%; background:var(--red); }

/* ---------- WHY ---------- */
.why__head{ max-width:640px; margin-bottom:54px; }
.why__head h2{ font-size:clamp(2rem,4vw,3rem); }
.why__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:36px 48px; }
.why__item{ border-top:1px solid var(--line); padding-top:24px; }
.why__ico{ color:var(--red); font-size:14px; }
.why__item h4{ font-size:1.25rem; margin:10px 0 9px; }
.why__item p{ color:var(--muted); font-size:1rem; }

/* ---------- WORK: FEATURE ---------- */
.feature{
  display:grid; grid-template-columns:1.05fr .95fr; gap:50px; align-items:center;
  padding:40px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  margin-bottom:24px;
}
.feature__text h3{ font-size:2rem; }
.feature__tag{ color:var(--red); font-family:var(--font-head); font-size:.95rem; margin:6px 0 16px; }
.feature__text p{ color:var(--muted); }
.feature__pills{ list-style:none; display:flex; flex-wrap:wrap; gap:9px; margin-top:24px; }
.feature__pills li{ font-size:13px; color:var(--text); border:1px solid var(--line-2); border-radius:100px; padding:6px 14px; }

.feature__media{ position:relative; }
.feature__chip{ position:absolute; top:-12px; left:18px; z-index:3; font-size:12px; font-family:var(--font-head); background:var(--red); color:#fff; padding:5px 12px; border-radius:100px; }
.mock{ background:#0A0A0C; border:1px solid var(--line-2); border-radius:14px; overflow:hidden; box-shadow:0 30px 60px -30px rgba(0,0,0,.8); }
.mock__bar{ display:flex; gap:7px; padding:13px 15px; background:#121216; border-bottom:1px solid var(--line); }
.mock__bar i{ width:11px; height:11px; border-radius:50%; background:#2c2c33; }
.mock__bar i:first-child{ background:var(--red); opacity:.8; }
.mock__body{ padding:20px; }
.mock__row{ display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.mock__pill{ font-size:11px; color:var(--muted); border:1px solid var(--line); border-radius:6px; padding:5px 10px; }
.mock__pill.on{ color:#fff; border-color:var(--red); background:rgba(255,32,32,.14); }
.mock__cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.mock__card{ height:64px; border-radius:8px; background:#141419; border:1px solid var(--line); }
.mock__card.on{ border-color:var(--red); background:linear-gradient(180deg, rgba(255,32,32,.12), #141419); }
.mock__ai{ font-size:13px; color:var(--muted); background:#101015; border:1px solid var(--line); border-radius:8px; padding:12px 14px; }
.mock__ai span{ color:var(--red); font-weight:600; }

/* ---------- WORK: CASE CARDS ---------- */
.grid--work{ grid-template-columns:repeat(3,1fr); }
.work{ padding:30px 28px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); transition:transform .3s var(--ease), border-color .3s; }
.work:hover{ transform:translateY(-5px); border-color:var(--line-2); }
.work__cat{ font-family:var(--font-head); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--red); margin-bottom:14px; }
.work h3{ font-size:1.35rem; margin-bottom:10px; }
.work p{ color:var(--muted); font-size:.97rem; }
.work__meta{ display:block; margin-top:18px; font-size:13px; color:var(--muted-2); }

/* ---------- PROCESS ---------- */
.steps{ list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:24px; counter-reset:s; }
.step{ position:relative; padding-top:28px; border-top:2px solid var(--line); }
.step__n{ font-family:var(--font-head); font-size:2.4rem; font-weight:700; color:var(--surface-2); -webkit-text-stroke:1px var(--line-2); }
.step h4{ font-size:1.3rem; margin:12px 0 10px; }
.step p{ color:var(--muted); font-size:.97rem; }
.step:hover{ border-top-color:var(--red); }

/* ---------- ABOUT ---------- */
.about{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; }
.about__text h2{ font-size:clamp(1.9rem,3.6vw,2.7rem); margin-bottom:22px; }
.about__text p{ color:var(--muted); font-size:1.05rem; margin-bottom:18px; }
.about__text .btn{ margin-top:10px; }
.about__panel{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.about__stat{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:24px 22px; }
.about__stat strong{ display:block; font-family:var(--font-head); font-size:1.15rem; color:var(--text); }
.about__stat span{ font-size:13.5px; color:var(--muted); }

/* ---------- CONTACT ---------- */
.contact{ background:var(--bg-2); border-top:1px solid var(--line); }
.contact__inner{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.contact__pitch h2{ font-size:clamp(2rem,3.8vw,2.9rem); }
.contact__pitch > p{ color:var(--muted); font-size:1.05rem; margin-top:18px; }
.contact__direct{ list-style:none; margin-top:34px; display:flex; flex-direction:column; gap:2px; }
.contact__direct li{ display:flex; align-items:baseline; gap:18px; padding:15px 0; border-top:1px solid var(--line); }
.contact__direct li:last-child{ border-bottom:1px solid var(--line); }
.contact__direct span:first-child{ width:90px; flex:none; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2); }
.contact__direct a{ font-family:var(--font-head); font-size:1.15rem; color:var(--text); transition:color .2s; }
.contact__direct a:hover{ color:var(--red); }
.contact__area{ color:var(--muted); }

.form{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:32px; }
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form label{ display:flex; flex-direction:column; gap:8px; font-size:13.5px; color:var(--muted); margin-bottom:18px; font-weight:500; }
.form input, .form select, .form textarea{
  font-family:var(--font-body); font-size:15px; color:var(--text);
  background:var(--bg); border:1px solid var(--line-2); border-radius:var(--r-sm);
  padding:13px 14px; transition:border-color .2s, box-shadow .2s; width:100%;
}
.form input:focus, .form select:focus, .form textarea:focus{
  outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(255,32,32,.16);
}
.form textarea{ resize:vertical; }
.form select{ appearance:none; cursor:pointer; }
.hp{ position:absolute !important; left:-9999px; width:0; height:0; opacity:0; overflow:hidden; pointer-events:none; }
.cf-turnstile{ margin:4px 0 20px; min-height:65px; }
.form__note{ font-size:14px; margin-top:14px; min-height:20px; }
.form__note.ok{ color:#46d17e; }
.form__note.err{ color:var(--red-2); }

/* ---------- FOOTER ---------- */
.footer{ background:var(--bg); border-top:1px solid var(--line); padding:64px 0 30px; }
.footer__inner{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid var(--line); }
.footer__brand p{ color:var(--muted); font-size:.95rem; margin-top:6px; }
.footer__brand .footer__tag{ color:var(--red); font-family:var(--font-head); font-weight:500; font-size:.95rem; margin-top:16px; }
.footer__nav{ display:flex; flex-direction:column; gap:12px; }
.footer__nav a, .footer__contact a{ color:var(--muted); font-size:.95rem; transition:color .2s; }
.footer__nav a:hover, .footer__contact a:hover{ color:var(--red); }
.footer__contact{ display:flex; flex-direction:column; gap:12px; }
.footer__bottom{ display:flex; justify-content:space-between; padding-top:26px; font-size:13px; color:var(--muted-2); flex-wrap:wrap; gap:8px; }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
  .nav__links, .nav__phone{ display:none; }
  .nav__cta .btn{ display:none; }
  .nav__burger{ display:flex; }
  .nav__mobile{ display:flex; }
  .grid--work, .steps{ grid-template-columns:repeat(2,1fr); }
  .feature{ grid-template-columns:1fr; gap:34px; padding:30px; }
  .feature__media{ order:2; }
  .contact__inner, .about{ grid-template-columns:1fr; gap:40px; }
  .about__panel{ max-width:460px; }
}
@media (max-width:640px){
  .container{ padding:0 20px; }
  .section{ padding:78px 0; }
  .hero{ padding:130px 0 80px; }
  .grid--services, .why__grid, .grid--work, .steps, .form__row, .about__panel{ grid-template-columns:1fr; }
  .hero__stats{ gap:22px; }
  .footer__inner{ grid-template-columns:1fr; gap:30px; }
  .form{ padding:24px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
  html{ scroll-behavior:auto; }
}
