/* =========================================================
   SiteDIGI — style.css
   Plus Jakarta Sans · premium, clean, lots of whitespace
   ========================================================= */

:root {
  --navy:    #0C1220;
  --blue:    #2563EB;
  --blue-600:#1D4FD7;
  --orange:  #F97316;
  --orange-600:#EA670C;
  --offwhite:#F8FAFC;
  --grey:    #64748B;
  --border:  #E2E8F0;
  --white:   #FFFFFF;

  --ink:     #0C1220;        /* primary text */
  --ink-soft:#334155;        /* secondary headings text */

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, .12);

  --ease: cubic-bezier(.22, 1, .36, 1);

  --container: 1160px;
  --nav-h: 72px;

  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis controls smooth scroll when active; let it take over cleanly */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;            /* belt-and-braces against horizontal scroll */
}

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

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

h1, h2, h3, p { margin: 0; }

button { font: inherit; cursor: pointer; }

/* Accessible focus state — visible for keyboard users only */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----------------------------- Layout ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container--narrow { max-width: 720px; }

.section { padding-block: clamp(72px, 11vw, 140px); }

/* Offset in-page anchor targets so they clear the fixed nav */
section[id], #top { scroll-margin-top: 88px; }

.section--dark {
  background: var(--navy);
  color: #E6ECF5;
  position: relative;
  overflow: hidden;
}

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow--light { color: #7AA2FF; }

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section__title--light { color: #fff; }

.section__lead {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--grey);
  line-height: 1.6;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --btn-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background-color .25s var(--ease),
              box-shadow .35s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  transform: translateY(var(--btn-y));
  will-change: transform;
  text-align: center;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn--primary:hover { --btn-y: -2px; background: var(--blue-600); box-shadow: 0 14px 30px rgba(37, 99, 235, .34); }

.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(249, 115, 22, .28); }
.btn--accent:hover { --btn-y: -2px; background: var(--orange-600); box-shadow: 0 14px 32px rgba(249, 115, 22, .4); }

.btn--secondary { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { --btn-y: -2px; border-color: #cbd5e1; box-shadow: var(--shadow-md); }

.btn--nav { padding: 10px 18px; font-size: 0.95rem; background: var(--blue); color: #fff; }
.btn--nav:hover { --btn-y: -1px; background: var(--blue-600); box-shadow: 0 10px 22px rgba(37, 99, 235, .3); }

.btn--block { width: 100%; margin-top: 6px; }

.btn:active { --btn-y: 0px; }

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(248, 250, 252, .72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, .05);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 32px;
  margin-inline: auto;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 110px));
  padding-bottom: clamp(60px, 9vw, 120px);
  overflow: hidden;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -12%;
  left: 50%;
  width: min(1100px, 130%);
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(37, 99, 235, .14), transparent 70%),
    radial-gradient(closest-side, rgba(249, 115, 22, .10), transparent 70%);
  background-position: 35% 30%, 70% 55%;
  background-repeat: no-repeat;
  background-size: 70% 90%, 55% 70%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 940px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(24px, 4vw, 34px);
}
.pill__dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 16ch;
  margin-inline: auto;
}
.hero__title .word { display: inline-block; }
.hero__title em {
  font-style: italic;
  color: var(--blue);
  font-weight: 800;
}
.word--dash { color: var(--grey); }

.hero__sub {
  margin: clamp(22px, 3.5vw, 30px) auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--grey);
  line-height: 1.6;
}

.hero__actions {
  margin-top: clamp(30px, 4vw, 42px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------- Pricing banner ----------------------------- */
.pricing { padding-block: clamp(20px, 4vw, 48px); }
.pricing__card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pricing__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(249, 115, 22, .22), transparent 70%),
    radial-gradient(closest-side, rgba(37, 99, 235, .26), transparent 72%);
  background-position: 18% 120%, 88% -20%;
  background-size: 60% 140%, 55% 130%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.pricing__content { position: relative; z-index: 1; }
.pricing__title {
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.pricing__title .accent { color: var(--orange); }
.pricing__sub {
  margin: 18px auto 0;
  max-width: 540px;
  color: #AEBBD0;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}
.pricing .btn--accent { margin-top: clamp(28px, 4vw, 38px); }

/* ----------------------------- What's included ----------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #d4dde8;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(37, 99, 235, .06));
  color: var(--blue);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.card__text { color: var(--grey); font-size: 0.98rem; }

/* ----------------------------- The process ----------------------------- */
.process { position: relative; }
.process__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(37, 99, 235, .16), transparent 70%);
  pointer-events: none;
}
.process .container { position: relative; z-index: 1; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 14px);
  max-width: 880px;
  margin-inline: auto;
}
.step {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 32px) clamp(18px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.step__num {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(122, 162, 255, .55);
  flex: none;
  min-width: clamp(70px, 12vw, 130px);
}
.step__body { min-width: 0; }
.step__title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}
.step__text { color: #9FB0CC; font-size: 1rem; max-width: 46ch; }

/* ----------------------------- Why SiteDIGI ----------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  max-width: 920px;
  margin-inline: auto;
}
.why__item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .1);
  color: var(--blue);
  flex: none;
}
.tick svg { width: 22px; height: 22px; }
.why__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.why__text { color: var(--grey); font-size: 0.98rem; }

/* ----------------------------- Contact ----------------------------- */
.contact { background: var(--offwhite); }
.contact__card {
  background: linear-gradient(180deg, #EEF4FF 0%, #E8F0FE 100%);
  border: 1px solid #D6E2FB;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, .12);
}
.contact__head { text-align: center; margin-bottom: clamp(28px, 4vw, 38px); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #D6E0F0;
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder,
.field textarea::placeholder { color: #94A3B8; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.form__status {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin: 2px 0 0;
  min-height: 1.2em;
}
.form__status.is-success { color: #15803d; }
.form__status.is-error { color: #dc2626; }

/* ----------------------------- Footer ----------------------------- */
.footer {
  background: var(--navy);
  color: #AEBBD0;
  padding-block: clamp(40px, 6vw, 56px);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo { display: inline-flex; align-items: center; line-height: 0; }
.footer__logo img { height: 34px; width: auto; display: block; }
.footer__text { font-size: 0.95rem; }
.footer__text a { color: #E6ECF5; font-weight: 600; transition: color .2s var(--ease); }
.footer__text a:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   Animation initial states (only when JS + motion allowed).
   Hidden up front to avoid any flash before GSAP runs.
   If GSAP fails to load, script.js removes `.anim` -> visible.
   ========================================================= */
html.anim [data-reveal],
html.anim [data-reveal-stagger] > *,
html.anim [data-step],
html.anim .hero [data-hero],
html.anim .hero__title .word { opacity: 0; }

html.anim .pricing__card { opacity: 0; }

/* =========================================================
   Pulsing dot — transform + opacity only (GPU friendly).
   Gated behind motion preference.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .pill__dot::after { animation: pulse-ring 2.4s var(--ease) infinite; }
  @keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .step { flex-direction: column; align-items: flex-start; gap: 10px; }
  .step__num { min-width: 0; }
  .step__text { max-width: none; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .container { padding-inline: 18px; }
  .nav__logo img { height: 28px; }
  .btn--nav { padding: 9px 14px; font-size: 0.9rem; }
}

/* =========================================================
   Reduced motion — strip every heavy effect, show everything.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html [data-reveal],
  html [data-reveal-stagger] > *,
  html [data-step],
  html .hero [data-hero],
  html .hero__title .word,
  html .pricing__card { opacity: 1 !important; transform: none !important; }
}
