/* Sevinfi Solutions — sevinfi.com
   Brand system: identity v3 (S-infinity), matrix-scanlines scheme.
   Ink #111111 + matrix green #34D06B on light; terminal near-black on dark. */

:root {
  --ink: #111111;
  --ink-soft: #39423C;
  --steel: #66756B;
  --green: #34D06B;
  --green-deep: #157A3E;
  --paper: #F4F7F5;
  --surface: #FFFFFF;
  --line: #DCE5DE;
  --accent: var(--green-deep);
  --face: "Avenir Next", "Mulish", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8FFEC;
    --ink-soft: #BED3C3;
    --steel: #7E9486;
    --green: #34D06B;
    --green-deep: #34D06B;
    --paper: #0B0F0E;
    --surface: #121815;
    --line: #1F2B22;
    --accent: var(--green);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; }
.brand span.word {
  font-family: var(--mono);
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
}
.brand span.word b { color: var(--accent); font-weight: 700; }
nav.main { display: flex; gap: 26px; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600;
}
nav.main a:hover, nav.main a:focus-visible { color: var(--accent); }
nav.main a.active { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
}
/* scanline texture from the matrix lockup — very low contrast, decorative only */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--green) 5%, transparent) 0px,
    color-mix(in srgb, var(--green) 5%, transparent) 1px,
    transparent 1px,
    transparent 4px
  );
}
.hero .bg-mark {
  position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; opacity: 0.055; pointer-events: none;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 18px; max-width: 17ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  font-size: 19px; color: var(--ink-soft); max-width: 54ch; margin: 0 0 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn.primary { background: var(--green-deep); color: #fff; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 35%, transparent); }
.btn.ghost { color: var(--ink); border: 1.5px solid var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .btn.primary { background: var(--green); color: #0B0F0E; }
}

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section {
  font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 8px; text-wrap: balance;
}
p.section-lede { color: var(--steel); margin: 0 0 36px; max-width: 60ch; }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08); }
.card .tag {
  align-self: flex-start; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 10px; border-radius: 99px;
}
.card h3 { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; flex: 1; }
.card a.visit {
  color: var(--accent); font-weight: 700; text-decoration: none; font-size: 15px;
}
.card a.visit:hover { text-decoration: underline; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.fact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fact-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: 15px;
}
.fact-list li strong { display: block; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 3px; }

/* ---------- content pages (privacy, terms, contact) ---------- */
main.page { padding: 64px 0 88px; }
main.page h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 6px; }
main.page p.updated { color: var(--steel); font-size: 14px; margin: 0 0 40px; }
main.page article { max-width: 72ch; }
main.page h2 { font-size: 21px; font-weight: 700; margin: 40px 0 10px; }
main.page h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
main.page p, main.page li { color: var(--ink-soft); font-size: 16px; }
main.page ul { padding-left: 1.3em; }
main.page a { color: var(--accent); }
main.page table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
main.page th, main.page td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; color: var(--ink-soft); }
main.page th { color: var(--ink); background: var(--surface); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 34px; }
.contact-grid .card a { color: var(--accent); font-weight: 700; text-decoration: none; word-break: break-all; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 44px 0 36px; margin-top: 40px;
}
footer.site .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
footer.site a:hover { color: var(--accent); }
footer.site .fine {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--steel); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
footer.site .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer.site .brandline img { height: 28px; }
footer.site .brandline .word { font-family: var(--mono); letter-spacing: -0.03em; }
footer.site p.blurb { color: var(--steel); font-size: 14.5px; max-width: 40ch; margin: 0; }
footer.site p.blurb + p.blurb { margin-top: 10px; }

/* reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.6s ease forwards; }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.16s; }
  .reveal.d3 { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
