/* ============ RED WIZARDRY — style.css ============ */

:root {
  --red: #e11d2e;
  --red-dark: #b31423;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-tint: #faf7f5;
  --bg-dark: #1c1216;
  --bg-dark-soft: #2a1b21;
  --line: #e7e5e4;
  --gold: #d9a441;
  --shadow: 0 8px 30px rgba(17, 24, 39, .08);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, .14);
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }

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

::selection { background: var(--red); color: #fff; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(225, 29, 46, .3); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn--dark-solid { background: var(--red); color: #fff; }
.btn--dark-solid:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(17, 24, 39, .06); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 42px; height: 42px; object-fit: contain; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .15s ease; }
.nav__link:hover { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(225, 29, 46, .12), transparent 60%),
    radial-gradient(700px 380px at 0% 10%, rgba(217, 164, 65, .10), transparent 55%),
    var(--bg);
  padding: 84px 0 56px;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--red-dark);
  background: rgba(225, 29, 46, .08);
  border: 1px solid rgba(225, 29, 46, .2);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

/* hero card */
.hero__panel { position: relative; }
.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  transform: rotate(1.2deg);
  overflow: hidden;
}
.hero__card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}
.hero__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.hero__card-logo { width: 64px; height: 64px; object-fit: contain; }
.hero__card-head::after { content: "★ 5.0"; color: var(--gold); font-weight: 800; letter-spacing: .5px; }
.hero__card-quote { font-size: 16.5px; color: var(--ink-soft); font-style: italic; margin-bottom: 20px; }
.hero__card-meta { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); }
.hero__card-mark { width: 26px; height: 26px; object-fit: contain; }

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat__number { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--red); line-height: 1; }
.stat__label { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* ============ VALUES ============ */
.values { background: var(--bg-tint); border-block: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 48px 0; }
.value h3 { font-size: 17px; margin-bottom: 8px; font-weight: 800; }
.value p { color: var(--muted); font-size: 15px; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section--dark { background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-soft)); color: #fff; }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 680px; margin-bottom: 52px; }
.section--dark .section__head, .section--dark .section__lead { 
  /* dark text color override where needed */
}
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section__title { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.5px; margin-bottom: 16px; }
.section__lead { color: var(--ink-soft); font-size: 17px; }
.section--dark .section__lead { color: rgba(255, 255, 255, .78); }

/* ============ SERVICES ============ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(225, 29, 46, .35); }
.service__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: rgba(225, 29, 46, .08); font-size: 24px; margin-bottom: 20px; }
.service__title { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 15px; }

/* ============ PROCESS ============ */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process__step {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  border-radius: var(--radius);
  padding: 28px;
}
.process__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid rgba(225, 29, 46, .5);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.process__step h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.process__step p { color: rgba(255, 255, 255, .7); font-size: 14.5px; }

/* ============ FEATURE (CUSTOM SOFTWARE + AI) ============ */
.feature { background: var(--bg-tint); }
.feature__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.feature__content p { color: var(--ink-soft); margin-bottom: 14px; }
.feature__list { list-style: none; margin-top: 18px; }
.feature__list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.feature__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.feature__panel { background: var(--bg-dark); color: #fff; border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-lg); }
.feature__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #ff8a94; border: 1px solid rgba(225, 29, 46, .5); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.feature__badge-icon { color: var(--gold); }
.feature__panel h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 12px; color: #fff; }
.feature__lead { color: rgba(255, 255, 255, .78); font-size: 16.5px; margin-bottom: 18px; }
.feature__bullets { list-style: none; }
.feature__bullets li { position: relative; padding-left: 30px; margin-bottom: 12px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.feature__bullets li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__media { text-align: center; }
.about__img {
  width: min(430px, 100%);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.about__content p { color: var(--ink-soft); margin-bottom: 14px; }
.about__list { list-style: none; margin: 22px 0; }
.about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}
.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 800;
}

/* ============ LEGAL PAGES ============ */
.legal { padding: 56px 0 96px; background: var(--bg-tint); }
.legal__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; max-width: 860px; margin-inline: auto; }
.legal__card h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.2; margin-bottom: 6px; }
.legal__updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.legal__card h2 { font-family: var(--font-display); font-size: 21px; margin: 28px 0 8px; }
.legal__card p, .legal__card li { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal__card ul { padding-left: 22px; }
.legal__card a { color: var(--red); font-weight: 600; }

/* ============ CONTACT ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact__info .section__lead { margin-bottom: 34px; }
.contact__blocks { display: grid; gap: 26px; }
.contact__block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 800; color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.contact__block a { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; transition: color .15s; }
.contact__block a:hover { color: #ff8a94; }
.contact__block p { color: rgba(255, 255, 255, .75); }

.contact__form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-tint);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .12);
  background: #fff;
}
.form__field textarea { resize: vertical; }
.form__note { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.form__note a { color: var(--red); font-weight: 600; }
.form__success { margin-top: 14px; background: rgba(16, 185, 129, .12); color: #047857; border: 1px solid rgba(16, 185, 129, .35); padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-align: center; }

/* ============ FOOTER ============ */
.footer { background: #120b0e; color: rgba(255, 255, 255, .8); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: 14.5px; max-width: 34ch; color: rgba(255, 255, 255, .6); }
.footer__col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255, 255, 255, .68); font-size: 14.5px; margin-bottom: 10px; transition: color .15s; }
.footer__col a:hover { color: var(--red); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .45); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .feature__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { max-width: 480px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    padding: 20px 5%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 10px 0; font-size: 17px; }
  .nav__cta { margin-top: 10px; width: 100%; }
  .nav-toggle { display: block; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 60px; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
}