/* ============================================================
   BATSET — batset.fi
   Design tokens
   ============================================================ */
:root {
  --navy-900: #0a1220;
  --navy-800: #0e1a2e;
  --navy-700: #16263f;
  --ink: #13233d;
  --muted: #5a6b84;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --accent-grad: linear-gradient(135deg, var(--blue), var(--cyan));
  --on-dark: #eaf1fb;
  --on-dark-muted: #9fb0c9;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(13, 35, 66, .08);
  --shadow-md: 0 10px 30px -10px rgba(13, 35, 66, .18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 35, 66, .28);
  --container: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Typography ============ */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.section-lead { max-width: 620px; color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
.section-dark .section-lead { color: var(--on-dark-muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(37, 99, 235, .65); }
.btn-ghost { color: var(--on-dark); border-color: rgba(234, 241, 251, .35); }
.btn-ghost:hover { border-color: rgba(234, 241, 251, .8); background: rgba(234, 241, 251, .06); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 18, 32, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 241, 251, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 20px; width: auto; display: block; color: #fff; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease;
}
.site-nav > a:hover { color: #fff; }
.site-nav > a.nav-cta {
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent-grad);
}
.site-nav > a.nav-cta:hover { filter: brightness(1.1); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  background: none;
  border: 1px solid rgba(234, 241, 251, .25);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--on-dark-muted);
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: #fff; border-color: rgba(234, 241, 251, .6); }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.lang-switch {
  display: flex;
  border: 1px solid rgba(234, 241, 251, .25);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  background: none;
  border: 0;
  color: var(--on-dark-muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch button.active { background: rgba(234, 241, 251, .16); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform .2s 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); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 12% -10%, rgba(37, 99, 235, .35), transparent 65%),
    radial-gradient(640px 420px at 92% 8%, rgba(6, 182, 212, .22), transparent 65%),
    radial-gradient(520px 380px at 55% 115%, rgba(37, 99, 235, .18), transparent 70%);
}
.hero-mark {
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: min(44vw, 520px);
  height: auto;
  fill: rgba(234, 241, 251, .04);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(234, 241, 251, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 241, 251, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-inner {
  position: relative;
  padding: 110px 24px 96px;
  max-width: 800px;
  text-align: center;
}
.hero h1 { color: #fff; margin: 6px 0 22px; }
.hero .lead { color: var(--on-dark-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-pillars {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 56px;
}
.hero-pillars li {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  border: 1px solid rgba(234, 241, 251, .18);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section:nth-of-type(even):not(.section-dark) { background: var(--bg-alt); }

.section-dark {
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(37, 99, 235, .18), transparent 60%),
    var(--navy-800);
  color: var(--on-dark);
}
.section-dark h2 { color: #fff; }

.grid { display: grid; gap: 24px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============ Cards (services) ============ */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcf0; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: .97rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(6, 182, 212, .1));
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Values ============ */
.value { text-align: left; }
.value h3 { color: #fff; margin: 18px 0 10px; }
.value p { color: var(--on-dark-muted); font-size: .97rem; }
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(234, 241, 251, .07);
  border: 1px solid rgba(234, 241, 251, .12);
}
.value-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Featured card (Shopify) ============ */
.card-featured {
  grid-column: 1 / -1;
  border-color: #cfdcf0;
  background: linear-gradient(135deg, rgba(37, 99, 235, .05), rgba(6, 182, 212, .05)), var(--bg);
}
.card-featured p { max-width: 720px; }

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.card-tags li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  padding: 4px 14px;
}

/* ============ Contact ============ */
.section-contact { background: var(--bg-alt); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.field textarea { resize: vertical; min-height: 130px; }

.field input.invalid, .field textarea.invalid { border-color: #dc2626; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: .65; cursor: wait; transform: none; }

.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #059669; }
.form-status.err { color: #dc2626; }

.contact-info { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 3px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-item h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.info-item p { font-size: 1rem; }
.info-item a { color: var(--blue); text-decoration: none; font-weight: 600; }
.info-item a:hover { text-decoration: underline; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 56px;
  padding-bottom: 32px;
}
.footer-brand .brand-logo { height: 17px; color: #bec3c7; }
.footer-brand p { margin-top: 14px; font-size: .95rem; max-width: 320px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(234, 241, 251, .1);
  padding-top: 22px;
  padding-bottom: 28px;
  font-size: .85rem;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ============================================================
   Dark theme — brand palette #202020 / #0C6EB7 / #BEC3C7.
   Pure token + style overrides; content/markup is theme-agnostic.
   `data-theme` is set on <html> before first paint (see index.html).
   ============================================================ */
html[data-theme="dark"] {
  --navy-900: #121415;   /* hero & footer ground */
  --navy-800: #0f1112;   /* company section ground */
  --navy-700: #1d2023;
  --ink: #e9edf0;
  --muted: #aab1b7;      /* silver-leaning body text */
  --line: #2e3338;
  --bg: #1a1d20;         /* page ground */
  --bg-alt: #15181a;     /* alternating sections */
  --blue: #3f9ade;       /* brand blue lifted for contrast on dark */
  --cyan: #7cc0ec;
  --accent-grad: linear-gradient(135deg, #0c6eb7, #3f9ade);
  --on-dark: #eef2f5;
  --on-dark-muted: #a9b1b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .65);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 17, 18, .84);
  border-bottom-color: rgba(190, 195, 199, .08);
}

html[data-theme="dark"] .eyebrow {
  background: linear-gradient(135deg, #3f9ade, #8ac6ee);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .btn-primary { box-shadow: 0 8px 24px -8px rgba(12, 110, 183, .5); }
html[data-theme="dark"] .btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(12, 110, 183, .6); }

html[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(700px 420px at 12% -10%, rgba(12, 110, 183, .42), transparent 65%),
    radial-gradient(640px 420px at 92% 8%, rgba(63, 154, 222, .16), transparent 65%),
    radial-gradient(520px 380px at 55% 115%, rgba(12, 110, 183, .2), transparent 70%);
}

html[data-theme="dark"] .section-dark {
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(12, 110, 183, .16), transparent 60%),
    var(--navy-800);
}

/* Cards lift off the dark ground */
html[data-theme="dark"] .card { background: #212428; }
html[data-theme="dark"] .card:hover { border-color: #3a4046; }
html[data-theme="dark"] .card-icon { background: linear-gradient(135deg, rgba(12, 110, 183, .2), rgba(63, 154, 222, .12)); }
html[data-theme="dark"] .card-featured {
  border-color: #2c4a63;
  background: linear-gradient(135deg, rgba(12, 110, 183, .14), rgba(63, 154, 222, .05)), #212428;
}
html[data-theme="dark"] .card-tags li {
  color: #7cc0ec;
  background: rgba(12, 110, 183, .16);
  border-color: rgba(63, 154, 222, .35);
}

/* Contact form stays a light card — the one place visitors do work */
html[data-theme="dark"] .contact-form { background: #ffffff; border-color: #e3e9f2; }
html[data-theme="dark"] .contact-form .field label { color: #13233d; }
html[data-theme="dark"] .contact-form .field input,
html[data-theme="dark"] .contact-form .field textarea { background: #ffffff; color: #13233d; border-color: #e3e9f2; }
html[data-theme="dark"] .contact-form .field input:focus,
html[data-theme="dark"] .contact-form .field textarea:focus { border-color: #0c6eb7; box-shadow: 0 0 0 3px rgba(12, 110, 183, .18); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(234, 241, 251, .1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(234, 241, 251, .07); }
  .site-nav > a.nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
  .nav-tools { margin-top: 16px; justify-content: center; }

  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 68px 0; }
  .hero-inner { padding: 80px 24px 72px; }
  .contact-form { padding: 24px 20px; }
}
