/* ─────────────────────────────────────────────────────────
   Sizalc Technologies — stylesheet
   Light-first with an automatic dark theme.
   ───────────────────────────────────────────────────────── */

:root {
  --bg:        #ffffff;
  --surface:   #f6f7f9;
  --ink:       #0d0f12;
  --ink-soft:  #3b424c;
  --muted:     #6b7280;
  --line:      #e5e7eb;
  --line-soft: #eef0f3;
  --accent:    #0e7c66;
  --accent-ink:#ffffff;
  --shadow:    0 1px 2px rgba(13,15,18,.04), 0 8px 24px rgba(13,15,18,.05);

  --wrap: 1120px;
  --pad: 24px;
  --r: 14px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0d10;
    --surface:   #12151a;
    --ink:       #f2f4f7;
    --ink-soft:  #c3c9d2;
    --muted:     #8b939f;
    --line:      #242932;
    --line-soft: #1b1f26;
    --accent:    #2ecfa8;
    --accent-ink:#06231d;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}

/* ── Base ──────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

em { font-style: normal; color: var(--accent); }

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

.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus { left: 16px; }

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { height: 54px; padding: 0 32px; font-size: 1.02rem; }

/* ── Header ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.brand-word {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .17em;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .93rem;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: border-color .2s ease, background .2s ease;
}
.nav-cta:hover { border-color: var(--ink); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(40% 55% at 78% 12%,
      color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero h1 { margin: 18px 0 0; }

.lede {
  max-width: 56ch;
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin: clamp(56px, 8vw, 88px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .9rem;
  color: var(--ink-soft);
}
.strip-n {
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.strip-loc { margin-left: auto; color: var(--muted); }

/* ── Sections ──────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { margin-top: 14px; }

.section-sub {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--ink-soft);
}

/* ── Cards ─────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow);
}

.card-n {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}
.card-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 10px; }
.card > p { color: var(--ink-soft); font-size: .97rem; }

.card-list {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-size: .92rem;
  color: var(--muted);
}
.card-list li { padding-left: 18px; position: relative; margin-top: 8px; }
.card-list li:first-child { margin-top: 0; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  padding: clamp(48px, 6vw, 68px) 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.brand-footer { margin-bottom: 16px; }

.footer-legal { font-size: .89rem; color: var(--muted); line-height: 1.75; }
.footer-legal a { color: var(--accent); }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .91rem;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}

/* ── Reveal on scroll ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: flex; }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-cta {
    margin-top: 14px;
    border-radius: 999px;
    text-align: center;
    border-bottom: 1px solid var(--line) !important;
  }

  .hero h1 br { display: none; }
  .strip-loc { margin-left: 0; width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}
