/* ==========================================================================
   Lipol Aluminum — Design System
   Premium industrial aesthetic: deep ink, aluminum silver, precision blue.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink-900: #0b1322;
  --ink-800: #101b30;
  --ink-700: #16233c;
  --ink-600: #21324f;
  --text-strong: #101b30;
  --text-body: #3c4a63;
  --text-soft: #64748b;
  --text-inverse: #eef3fa;
  --text-inverse-soft: #a9b8d0;
  --surface-0: #ffffff;
  --surface-1: #f5f8fc;
  --surface-2: #eaf0f7;
  --line: #dfe7f0;
  --line-dark: rgba(255, 255, 255, 0.09);
  --accent: #2e6be6;
  --accent-strong: #1f55c4;
  --accent-soft: #e3ecfd;
  --accent-glow: rgba(46, 107, 230, 0.35);
  --silver: #c8d3e0;
  --success: #17845c;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 48, 0.06), 0 4px 12px rgba(16, 27, 48, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 27, 48, 0.06), 0 16px 32px rgba(16, 27, 48, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 19, 34, 0.22);
  --wrap: 1180px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover { color: var(--accent-strong); }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Layout helpers ---------- */

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: var(--surface-1); }
.section--dark {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46, 107, 230, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: var(--text-inverse-soft);
}
.section--dark h2, .section--dark h3 { color: var(--text-inverse); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--silver));
  border-radius: 2px;
}

.section-head--center .kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--silver), var(--accent));
  border-radius: 2px;
}

.lead { font-size: 1.15rem; color: var(--text-soft); }
.section--dark .lead { color: var(--text-inverse-soft); }

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--accent-glow);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text-strong);
  background: var(--surface-0);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-inverse);
  background: transparent;
}

.btn--ghost-dark:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 19, 34, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.brand:hover { color: #fff; }

.brand .brand-mark { width: 38px; height: 38px; flex: none; }

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li { margin: 0; position: relative; }

.main-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-inverse-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.main-nav a.nav-link[aria-current="page"] { color: var(--text-inverse); }

.nav-link .caret { width: 11px; height: 11px; transition: transform 0.2s ease; }

.has-sub:hover .caret,
.has-sub:focus-within .caret { transform: rotate(180deg); }

.sub-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav li { margin: 0; }

.sub-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 500;
}

.sub-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-inverse);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-dark);
    padding: 16px 24px 28px;
    display: none;
  }

  .main-nav.is-open { display: block; }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a.nav-link {
    padding: 13px 14px;
    font-size: 1.05rem;
    width: 100%;
    justify-content: space-between;
  }

  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 4px 14px;
    display: none;
  }

  .has-sub.is-expanded .sub-nav { display: block; }

  .sub-nav a { color: var(--text-inverse-soft); }
  .sub-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

  body.nav-locked { overflow: hidden; }

  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% 115%, rgba(46, 107, 230, 0.22), transparent 62%),
    radial-gradient(1200px 620px at 88% -20%, rgba(120, 150, 190, 0.18), transparent 58%),
    linear-gradient(165deg, var(--ink-900) 0%, var(--ink-800) 55%, var(--ink-700) 100%);
  color: var(--text-inverse-soft);
  padding: clamp(84px, 11vw, 148px) 0 clamp(72px, 9vw, 120px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(820px 480px at 70% 20%, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero--home {
  display: grid;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #9db9f0, #dfe9fb 45%, #7fa5ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
  color: var(--text-inverse-soft);
  margin: 0;
}

.hero-points svg { width: 16px; height: 16px; color: #6f9bf0; flex: none; }

.hero-visual { position: relative; }

.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4)); }

/* Page hero (inner pages) */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -30%, rgba(46, 107, 230, 0.2), transparent 60%),
    linear-gradient(160deg, var(--ink-900), var(--ink-800));
  color: var(--text-inverse-soft);
  padding: clamp(64px, 8vw, 96px) 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(700px 340px at 80% 0%, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { max-width: 62ch; margin-bottom: 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.87rem;
}

.breadcrumbs li { display: flex; align-items: center; gap: 6px; margin: 0; }

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumbs a { color: var(--text-inverse-soft); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: #fff; font-weight: 500; }

/* ---------- Stats band ---------- */

.stats-band {
  border-block: 1px solid var(--line-dark);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46, 107, 230, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  padding: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 36px);
  border-left: 1px solid var(--line-dark);
}

.stat:first-child { border-left: none; }

@media (max-width: 860px) {
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat-value .unit {
  font-size: 0.5em;
  color: #7fa5ee;
  font-weight: 600;
  margin-left: 2px;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-inverse-soft);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

a.card { color: inherit; }

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #c9d8ee;
}

.card-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent-soft), #f2f6fe);
  border: 1px solid #d5e2f8;
  color: var(--accent-strong);
  margin-bottom: 20px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }

.card p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 0; }

.card .card-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}

.card .card-more svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card:hover .card-more svg { transform: translateX(4px); }

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  box-shadow: none;
}

.card--dark h3 { color: var(--text-inverse); }
.card--dark p { color: var(--text-inverse-soft); }
.card--dark:hover { border-color: rgba(255, 255, 255, 0.22); }

.card--dark .card-icon {
  background: rgba(46, 107, 230, 0.16);
  border-color: rgba(46, 107, 230, 0.35);
  color: #8db1f2;
}

/* Product visual strip on cards */
.card-figure {
  margin: -30px -28px 22px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-figure svg { width: 100%; height: auto; display: block; }

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--surface-0);
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 620px;
}

table.spec caption {
  text-align: left;
  padding: 18px 22px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1.02rem;
}

table.spec th,
table.spec td {
  padding: 13px 22px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

table.spec thead th {
  background: var(--surface-1);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
  border-top: none;
}

table.spec tbody tr:hover { background: #fafcff; }

table.spec td strong { color: var(--text-strong); }

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 2px 4px 2px 0;
  white-space: nowrap;
}

/* ---------- Feature rows (icon + text) ---------- */

.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-row + .feature-row { margin-top: 26px; }

.feature-row .card-icon { margin-bottom: 0; width: 46px; height: 46px; border-radius: 12px; }
.feature-row .card-icon svg { width: 22px; height: 22px; }

.feature-row h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-row p { margin-bottom: 0; color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-media svg { width: 100%; height: auto; display: block; }

/* ---------- Checklist ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f55c4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid #d5e2f8;
}

.checklist strong { color: var(--text-strong); }

.section--dark .checklist li::before {
  background-color: rgba(46, 107, 230, 0.2);
  border-color: rgba(46, 107, 230, 0.4);
}

.section--dark .checklist strong { color: var(--text-inverse); }

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  counter-increment: step;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 58px 24px 26px;
  margin: 0;
}

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #7fa5ee;
  letter-spacing: 0.06em;
}

.steps h3 { color: var(--text-inverse); font-size: 1.06rem; margin-bottom: 8px; }
.steps p { color: var(--text-inverse-soft); font-size: 0.93rem; margin: 0; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; margin-inline: auto; }

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details.faq[open] {
  border-color: #c9d8ee;
  box-shadow: var(--shadow-sm);
}

details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 54px 19px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-strong);
  position: relative;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6be6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}

details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

details.faq .faq-body { padding: 0 24px 20px; color: var(--text-soft); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 15% 120%, rgba(46, 107, 230, 0.35), transparent 60%),
    linear-gradient(150deg, var(--ink-800), var(--ink-900));
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px);
  text-align: center;
  color: var(--text-inverse-soft);
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin-inline: auto; }

.cta-band .hero-actions {
  justify-content: center;
  margin: 30px 0 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card:last-child { border-bottom: none; }

.contact-card .card-icon { margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.contact-card .card-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

/* Forms */

.form-panel {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-strong);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--text-strong);
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 107, 230, 0.14);
}

.form-note { font-size: 0.85rem; color: var(--text-soft); margin: 14px 0 0; }

/* ---------- Calculator ---------- */

.calc-panel {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-body { padding: clamp(26px, 4vw, 40px); }

.calc-result {
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900));
  color: var(--text-inverse-soft);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 620px) { .calc-result { grid-template-columns: 1fr; } }

.calc-result .stat-value { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.calc-result .stat-label { font-size: 0.85rem; }

.shape-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.shape-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-0);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.18s ease;
}

.shape-tab:hover { border-color: var(--accent); color: var(--accent); }

.shape-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-900);
  color: var(--text-inverse-soft);
  padding: clamp(56px, 7vw, 84px) 0 0;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 48px;
}

@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--text-inverse);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-inverse-soft); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }

.footer-about p { font-size: 0.95rem; max-width: 40ch; }

.footer-contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #7fa5ee; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  font-size: 0.85rem;
  color: #7c8aa5;
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* ---------- Reveal animations ---------- */

/* Hidden state only applies when JS is running (html.js set by main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

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

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

.eyebrow-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.divider-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.divider-note::before,
.divider-note::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   Premium layer v2 — aurora, gradient metal type, glass, badges
   ========================================================================== */

/* Animated aurora glow behind hero content */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(560px 420px at 22% 78%, rgba(46, 107, 230, 0.30), transparent 62%),
    radial-gradient(520px 360px at 78% 18%, rgba(127, 165, 238, 0.20), transparent 60%),
    radial-gradient(420px 320px at 55% 55%, rgba(84, 130, 220, 0.12), transparent 65%);
  filter: blur(46px);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora {
  from { transform: translate3d(-2.5%, 1.5%, 0) scale(1); }
  to   { transform: translate3d(2.5%, -2%, 0) scale(1.09); }
}

/* Gradient-metal numerals in the dark stat bands */
.stat-value {
  background: linear-gradient(160deg, #ffffff 20%, #c7d6f2 55%, #8fb0e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-value .unit { -webkit-text-fill-color: #7fa5ee; }

/* Button shine sweep */
.btn--primary { position: relative; overflow: hidden; }

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn--primary:hover::after { left: 130%; }

/* Glassmorphism on dark cards and steps */
.card--dark,
.steps li {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card--dark:hover {
  box-shadow: 0 18px 44px rgba(11, 19, 34, 0.5), 0 0 0 1px rgba(127, 165, 238, 0.22);
}

.card:hover .card-icon { transform: scale(1.06); }
.card-icon { transition: transform 0.22s ease; }

/* Certification trust strip */
.trust-strip-wrap {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border-bottom: 1px solid var(--line-dark);
  padding: 26px 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-inverse-soft);
}

.cert-badge svg {
  width: 34px;
  height: 34px;
  flex: none;
  color: #7fa5ee;
  filter: drop-shadow(0 0 10px rgba(46, 107, 230, 0.45));
}

.cert-badge strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-inverse);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.cert-badge span {
  font-size: 0.78rem;
  color: var(--text-inverse-soft);
}

.trust-more {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #9db9f0;
  white-space: nowrap;
}

.trust-more:hover { color: #fff; }

@media (max-width: 760px) {
  .trust-more { margin-left: 0; }
}

/* Certificate cards on the quality page */
.cert-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 30px 28px;
  background:
    linear-gradient(var(--surface-0), var(--surface-0)) padding-box,
    linear-gradient(150deg, #c9d8ee, #e6edf7 40%, #2e6be6) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.cert-card .cert-meta {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cert-card .cert-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  margin: 0;
}

.cert-card .cert-meta li span:last-child {
  color: var(--text-strong);
  font-weight: 600;
  text-align: right;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, #2e6be6, #7fa5ee);
  box-shadow: 0 0 12px rgba(46, 107, 230, 0.7);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-hero::before { animation: none; }
  .btn--primary::after { display: none; }
}

/* ==========================================================================
   Hero visual — living illustration
   ========================================================================== */

.hero-visual .hv-plate {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.hero-visual .hv-plate--t { animation: hvFloatT 5.6s ease-in-out infinite; }
.hero-visual .hv-plate--m { animation: hvFloatM 5.6s ease-in-out 0.4s infinite; }
.hero-visual .hv-plate--b { animation: hvFloatB 5.6s ease-in-out 0.8s infinite; }

@keyframes hvFloatT { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hvFloatM { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hvFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Light sheen sweeping across the top plate */
.hero-visual .hv-sheen {
  animation: hvSheen 6.4s ease-in-out infinite;
  opacity: 0;
}

@keyframes hvSheen {
  0%   { transform: translateX(-140px) skewX(-18deg); opacity: 0; }
  6%   { opacity: 1; }
  34%  { transform: translateX(330px) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(330px) skewX(-18deg); opacity: 0; }
}

/* Coil: gentle bob, winding ring, strip feeding toward the stack */
.hero-visual .hv-coil-grp {
  transform-box: fill-box;
  transform-origin: center;
  animation: hvBob 6.8s ease-in-out infinite;
}

@keyframes hvBob { 0%, 100% { transform: translateY(0) rotate(0.001deg); } 50% { transform: translateY(-7px) rotate(-1.2deg); } }

.hero-visual .hv-coil-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: hvSpin 16s linear infinite;
}

@keyframes hvSpin { to { transform: rotate(360deg); } }

.hero-visual .hv-strip { animation: hvFlow 1.4s linear infinite; }

@keyframes hvFlow { to { stroke-dashoffset: -36; } }

/* Breathing glow shadow */
.hero-visual .hv-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: hvShadow 5.6s ease-in-out infinite;
}

@keyframes hvShadow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(0.88); opacity: 0.3; }
}

/* Twinkling glints */
.hero-visual .hv-spark {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: hvSpark 5.6s ease-in-out infinite;
}

.hero-visual .hv-spark--2 { animation-delay: 1.9s; }
.hero-visual .hv-spark--3 { animation-delay: 3.7s; }

@keyframes hvSpark {
  0%, 25%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  8% { transform: scale(1) rotate(40deg); opacity: 0.95; }
  16% { transform: scale(0) rotate(80deg); opacity: 0; }
}

/* Measurement accents: pulse + self-drawing underline */
.hero-visual .hv-dim { animation: hvPulse 5.6s ease-in-out infinite; }

@keyframes hvPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.hero-visual .hv-underline {
  stroke-dasharray: 84;
  animation: hvDraw 6.4s ease-in-out infinite;
}

@keyframes hvDraw {
  0% { stroke-dashoffset: 84; }
  30%, 65% { stroke-dashoffset: 0; }
  95%, 100% { stroke-dashoffset: -84; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .hv-plate,
  .hero-visual .hv-sheen,
  .hero-visual .hv-coil-grp,
  .hero-visual .hv-coil-spin,
  .hero-visual .hv-strip,
  .hero-visual .hv-shadow,
  .hero-visual .hv-spark,
  .hero-visual .hv-dim,
  .hero-visual .hv-underline { animation: none; }
  .hero-visual .hv-spark { transform: scale(1); opacity: 0.6; }
  .hero-visual .hv-sheen { display: none; }
}

/* ==========================================================================
   Split-media panel animation (Why Lipol / About)
   ========================================================================== */

.wl-bar { animation: wlDrift 5.4s ease-in-out infinite; }
.wl-bar--2 { animation-delay: 0.35s; }
.wl-bar--3 { animation-delay: 0.7s; }
.wl-bar--4 { animation-delay: 1.05s; }

@keyframes wlDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}

.wl-scan { animation: wlScan 6.4s ease-in-out infinite; opacity: 0; }

@keyframes wlScan {
  0%   { transform: translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  42%  { transform: translateX(330px); opacity: 0; }
  100% { transform: translateX(330px); opacity: 0; }
}

.wl-caret { animation: wlBlink 1.15s steps(1) infinite; }

@keyframes wlBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.wl-dim { animation: hvPulse 5.6s ease-in-out infinite; }

/* Self-drawing check ring, tick and underline (pathLength=100 markup) */
.draw-ring { stroke-dasharray: 101; animation: drawRing 7s ease-in-out infinite; }
.draw-tick { stroke-dasharray: 101; animation: drawTick 7s ease-in-out infinite; }
.draw-line { stroke-dasharray: 101; animation: drawLine 6.4s ease-in-out infinite; }

@keyframes drawRing {
  0% { stroke-dashoffset: 101; opacity: 0; }
  4% { opacity: 1; }
  26% { stroke-dashoffset: 0; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes drawTick {
  0%, 26% { stroke-dashoffset: 101; opacity: 1; }
  40% { stroke-dashoffset: 0; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes drawLine {
  0% { stroke-dashoffset: 101; }
  28%, 62% { stroke-dashoffset: 0; }
  92%, 100% { stroke-dashoffset: -101; }
}

/* ==========================================================================
   Site-wide premium finish
   ========================================================================== */

::selection { background: rgba(46, 107, 230, 0.4); color: #fff; }

html { scrollbar-color: #2e6be6 #0e1728; scrollbar-width: thin; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0e1728; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2e6be6, #1f55c4);
  border-radius: 8px;
  border: 2px solid #0e1728;
}
::-webkit-scrollbar-thumb:hover { background: #4d82ea; }

:focus-visible {
  outline: 2px solid #7fa5ee;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header deepens on scroll */
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }

.site-header.is-scrolled {
  background: rgba(9, 15, 27, 0.95);
  box-shadow: 0 12px 34px rgba(4, 8, 16, 0.5);
}

/* Hero accent text shimmers */
.hero h1 .accent {
  background-size: 200% 100%;
  animation: accentShift 7s ease-in-out infinite alternate;
}

@keyframes accentShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* In-content links: sliding underline */
main p a:not(.btn),
.faq-body a,
table.spec td a,
.divider-note a,
.checklist a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
  padding-bottom: 1px;
}

main p a:not(.btn):hover,
.faq-body a:hover,
table.spec td a:hover,
.divider-note a:hover,
.checklist a:hover { background-size: 100% 1.5px; }

/* Spec tables: accent edge on row hover */
table.spec tbody tr { transition: background 0.15s ease; }
table.spec tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* Footer: gradient hairline instead of flat border */
.site-footer {
  border-top: none;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 107, 230, 0.6) 30%, rgba(127, 165, 238, 0.6) 70%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .wl-bar, .wl-scan, .wl-caret, .wl-dim,
  .draw-ring, .draw-tick, .draw-line,
  .hero h1 .accent { animation: none; }
  .wl-scan { display: none; }
}

/* ==========================================================================
   Lead-gate download modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 12, 22, 0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-panel {
  width: min(440px, 100%);
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-panel { transform: none; }

.modal-panel .form-field { margin-top: 14px; }

.modal-sub {
  color: var(--text-soft);
  font-size: 0.93rem;
  margin-bottom: 4px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-1);
  border-radius: 10px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal-close:hover { background: var(--accent-soft); color: var(--accent-strong); }
