/* =========================================================
   SPADEON LTD — corporate site
   ========================================================= */
:root {
  --ink:        #0A0E17;
  --ink-soft:   #141A28;
  --slate:      #475067;
  --slate-soft: #6B7488;
  --line:       #E5E8F0;
  --line-soft:  #EEF0F6;
  --bg:         #FFFFFF;
  --bg-alt:     #F6F7FB;
  --bg-dark:    #0A0E17;
  --accent:     #4338CA;
  --accent-2:   #5B6CFF;
  --accent-3:   #8C97FF;
  --white:      #FFFFFF;

  --radius:     16px;
  --radius-sm:  12px;
  --shadow:     0 1px 2px rgba(10,14,23,.04), 0 12px 32px -14px rgba(10,14,23,.12);
  --shadow-lg:  0 30px 70px -28px rgba(48,35,174,.40);

  --maxw: 1160px;
  --pad: 24px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Allow grid/flex children to shrink below content width (prevents mobile overflow) */
.hero__copy, .hero__media, .about__media, .about__body,
.band__copy, .band__points, .contact__copy, .contact__details { min-width: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10,14,23,.5); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--quiet { color: var(--ink); background: transparent; padding-inline: 8px; }
.btn--quiet:hover { color: var(--accent); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(10,14,23,.04); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-flex; }
.brand__word { font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; font-size: 19px; color: var(--ink); }
.brand__word--sm { font-size: 17px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--slate); transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__cta { color: var(--ink); padding: 11px 18px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s 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); }
.nav__mobile { display: none; flex-direction: column; padding: 8px var(--pad) 20px; border-top: 1px solid var(--line); background: var(--white); }
.nav__mobile a { padding: 14px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; }
.hero__bg {
  position: absolute; inset: -25% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(50% 60% at 78% 8%, rgba(91,108,255,.16), transparent 60%),
    radial-gradient(46% 50% at 12% 0%, rgba(124,139,255,.13), transparent 55%);
  filter: blur(6px);
}
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px; }
.hero__title {
  font-size: clamp(38px, 5.2vw, 60px); font-weight: 700; color: var(--ink); margin-bottom: 20px;
  background: linear-gradient(180deg, var(--ink) 0%, #2A3245 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--slate); max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { width: 100%; max-width: 540px; height: auto; margin-inline: auto; border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero__caps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  border-top: 1px solid var(--line); margin-top: 56px; padding-top: 26px;
}
.hero__caps li { font-size: 14px; font-weight: 500; color: var(--slate); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.hero__caps-reg { margin-left: auto; color: var(--slate-soft) !important; border-style: dashed !important; background: transparent !important; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.kicker--light { color: var(--accent-3); }
.section__head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.section__sub { font-size: 18px; color: var(--slate); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar__num { font-family: var(--font-head); font-weight: 700; color: var(--accent-2); font-size: 15px; letter-spacing: .1em; margin-bottom: 18px; }
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar p { color: var(--slate); font-size: 16px; }

/* Service grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D6DAE8; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; margin-bottom: 20px; color: var(--accent);
  background: linear-gradient(180deg, #EEF0FF, #E3E6FF); border: 1px solid #DDE1FF;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding-top: 28px; border-top: 2px solid var(--line); }
.step__n { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--accent-2); }
.step h3 { font-size: 20px; margin: 14px 0 10px; }
.step p { color: var(--slate); font-size: 15.5px; }

/* =========================================================
   Band (dark statement)
   ========================================================= */
.band { position: relative; overflow: hidden; background-color: var(--bg-dark); background-image: url('assets/dot-grid.svg'); color: #D7DCEA; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(48% 80% at 85% 0%, rgba(91,108,255,.24), transparent 60%),
    radial-gradient(42% 70% at 0% 100%, rgba(124,139,255,.14), transparent 60%);
}
.band__inner { position: relative; z-index: 1; padding: 88px var(--pad); display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.band__copy h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.band__copy p { font-size: 18px; color: #AEB6CC; max-width: 520px; }
.band__points { display: grid; gap: 14px; }
.band__points li { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 16px; color: #C7CDDE; }
.band__points strong { color: var(--white); font-weight: 600; }

/* =========================================================
   Company / About
   ========================================================= */
.about { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.about__media img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg); }
.about__body h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 20px; }
.about__body p { color: var(--slate); font-size: 17px; margin-bottom: 16px; }
.about__body p:last-child { margin-bottom: 0; }

/* =========================================================
   Contact
   ========================================================= */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__copy h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.contact__copy p { color: var(--slate); font-size: 18px; max-width: 460px; }
.contact__form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--slate); }
.field label span { color: var(--slate-soft); font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(91,108,255,.16); }
.contact__form .btn { justify-self: start; margin-top: 4px; }
.contact__status { font-size: 14px; margin: 0; min-height: 1.2em; color: var(--slate); }
.contact__status.is-ok { color: #1B7F4B; }
.contact__status.is-err { color: #C0392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg-dark); color: #9AA2B8; padding: 56px 0 36px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .brand__word { color: var(--white); }
.footer__brand p { margin-top: 10px; font-size: 15px; color: #8A92A8; max-width: 280px; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__nav a { font-size: 15px; color: #AEB6CC; transition: color .2s ease; }
.footer__nav a:hover { color: var(--white); }
.footer__legal { padding-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__legal p { font-size: 13.5px; color: #767E94; }

/* =========================================================
   Reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: 2; }
  .hero__media img { max-width: 460px; }
  .pillars, .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .band__inner, .about, .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__media { max-width: 460px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile[data-open="true"] { display: flex; }
  .hero { padding: 56px 0 56px; }
  .section { padding: 68px 0; }
  .pillars, .grid, .steps { grid-template-columns: 1fr; }
  .band__inner { padding: 64px var(--pad); }
  .hero__caps-reg { margin-left: 0; }
  .footer__legal { flex-direction: column; }
}
