/* Klensec Technology — klensectech.com. The approved page's styles, external so the
   door can keep a strict CSP (default-src 'none'; style-src 'self'; font-src 'self';
   no inline <style>/style=, no third-party). Playfair Display is self-hosted below
   (SIL Open Font License); it falls back to Georgia/serif if the woff2 fails. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 800;           /* variable font: covers the 600/700/800 we use */
  font-display: swap;
  src: url(/assets/fonts/playfair-display-latin.woff2) format("woff2");
}

:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
img { max-width: 100%; }
[hidden]:not([hidden="until-found" i]) { display: none !important; }

:root {
  --navy: #0b1a33;
  --navy-2: #0f2340;
  --gold: #c9a24a;
  --gold-l: #e0bd6a;
  --gold-d: #a07f2e;
  --platinum: #eceef2;
  --platinum-2: #f6f7f9;
  --silver: #aeb4bf;
  --silver-l: #cfd4dc;
  --silver-d: #737c8c;
  --graphite: #4a5260;
  --ink: #0f2340;
  --sub: #56617a;
  --line: #e1e5ec;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --metal: linear-gradient(135deg, #e7e9ee 0%, #aeb4bf 45%, #f2f3f6 72%, #c3c8d1 100%);
  --metal-silver-text: linear-gradient(135deg, #5b6474 0%, #9aa2b0 50%, #6b7484 100%);
  --metal-silver-light: linear-gradient(135deg, #edeff2 0%, #aeb4bf 50%, #cfd4dc 100%);
  --metal-gold: linear-gradient(135deg, #d9b25f 0%, #b78e39 45%, #e7c87f 72%, #9e7a2b 100%);
}
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-d); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(2rem, env(safe-area-inset-left, 0px)); padding-right: max(2rem, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 1rem; }

/* ---- Dark context (topbar + hero + footer) ---- */
.on-dark { color: #eef2f8; }
.on-dark .eyebrow { color: var(--gold-l); }
.on-dark h1, .on-dark h2 { color: #fff; }
.on-dark .section-sub { color: #bcc7d8; }

.btn { display: inline-block; font-weight: 700; font-size: 0.98rem; text-decoration: none; border-radius: 999px; padding: 0.85rem 1.6rem; cursor: pointer; border: 0; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-gold { background: var(--metal-gold); color: #2e2308; box-shadow: 0 10px 26px rgba(176,142,57,0.3); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(176,142,57,0.42); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--silver); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-d); }
.on-dark .btn-outline { color: #fff; border-color: rgba(207,212,220,0.4); }
.on-dark .btn-outline:hover { border-color: var(--gold-l); color: var(--gold-l); }

/* Topbar — navy, sits over the hero */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11,26,51,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(174,180,191,0.18); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand .mark { width: 38px; height: 38px; display: block; }
.brand-name { font-weight: 800; font-size: 1.18rem; color: #fff; letter-spacing: -0.01em; line-height: 1; }
.brand-name .silver { background: var(--metal-silver-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); font-weight: 700; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: #d7dce4; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover { color: var(--gold-l); }

/* Hero — navy, the one strong dark statement */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 560px at 80% -8%, rgba(201,162,74,0.16), transparent 60%),
    radial-gradient(1000px 700px at 6% 112%, rgba(174,180,191,0.16), transparent 55%),
    linear-gradient(180deg, #0b1a33 0%, #0e2142 55%, #0b1a33 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(207,212,220,0.05) 1px, transparent 1px); background-size: 36px 36px; opacity: 0.5; animation: dots-drift 34s linear infinite; }
@keyframes dots-drift { to { background-position: 72px 72px; } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 3rem; align-items: center; padding-block: 5rem 5.5rem; min-height: 70vh; }
.hero-copy { max-width: 640px; min-width: 0; }
h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.07; font-weight: 800; margin: 0 0 1.25rem; letter-spacing: -0.015em; text-wrap: balance; }
h1 .accent { background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.18rem; color: #c7d0df; margin: 0 0 2rem; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cta-row.center { justify-content: center; }
.hero-note { font-size: 0.86rem; color: var(--silver); font-weight: 600; margin: 1.5rem 0 0; }
.hero-visual { display: flex; justify-content: center; min-width: 0; }
.hero-visual svg { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.4)); }
.seal-spin { transform-box: fill-box; transform-origin: center; animation: spin 38s linear infinite; }
.seal-write { animation: seal-write 7s linear infinite; }
@keyframes seal-write { to { stroke-dashoffset: -704; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Light bands ---- */
.band { padding-block: 4.5rem; }
.band.platinum { background: linear-gradient(180deg, var(--platinum-2) 0%, var(--platinum) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.silver { background: linear-gradient(180deg, #eceef2 0%, #dfe3ea 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--navy); margin: 0 0 0.6rem; letter-spacing: -0.01em; text-wrap: balance; }
.section-sub { color: var(--sub); font-size: 1.05rem; margin: 0 0 2.5rem; }
.rule { width: 72px; height: 3px; border-radius: 3px; background: var(--metal-gold); margin: 1.1rem 0 0; }
.center .rule { margin: 1.1rem auto 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem 1.6rem; position: relative; min-width: 0; box-shadow: 0 10px 30px rgba(15,35,64,0.05); }
.pillar::before { content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 3px; border-radius: 3px; background: var(--metal); }
.pillar .pnum { font-family: var(--serif); font-weight: 800; font-size: 1.1rem; color: var(--gold-d); }
.pillar h3 { font-size: 1.12rem; color: var(--navy); margin: 0.5rem 0 0.4rem; }
.pillar p { font-size: 0.95rem; color: var(--sub); margin: 0; }

/* Products — light cards with a navy wordmark and gold accent */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.8rem; }
.product { background: var(--white); border: 1px solid var(--silver-l); border-radius: 18px; padding: 2rem 1.9rem; color: var(--ink); position: relative; overflow: hidden; min-width: 0; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(15,35,64,0.12); border-color: var(--silver); }
.product::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--metal-gold); }
.product .pname { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }
.product .pname .g { color: var(--gold-d); }
.product .ptag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); background: linear-gradient(135deg, #eef0f4, #dfe3ea); border: 1px solid var(--silver-l); border-radius: 999px; padding: 0.28rem 0.78rem; margin: 0.9rem 0 1rem; }
.product p { color: var(--sub); font-size: 0.97rem; margin: 0 0 1.25rem; }
.product .plink { color: var(--gold-d); font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.product .plink:hover { text-decoration: underline; }

/* Platform — soft silver band */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 2rem; margin-top: 2.6rem; }
.feat-item { padding-top: 1.4rem; border-top: 1px solid var(--silver); min-width: 0; }
.feat-item .fi { width: 42px; height: 42px; border-radius: 10px; background: var(--metal); border: 1px solid var(--silver-l); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; font-family: var(--serif); margin-bottom: 0.8rem; }
.feat-item h3 { font-size: 1.05rem; color: var(--navy); margin: 0 0 0.35rem; }
.feat-item p { color: var(--sub); font-size: 0.93rem; margin: 0; }

/* CTA — light platinum with a gold glow */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: 4.5rem; color: var(--ink);
  background: radial-gradient(760px 300px at 50% -30%, rgba(201,162,74,0.16), transparent 62%), linear-gradient(180deg, var(--platinum-2) 0%, var(--platinum) 100%);
  border-top: 1px solid var(--line); }
.cta .wrap { position: relative; }
.cta p { color: var(--sub); max-width: 52ch; margin: 0.4rem auto 2rem; }

/* Footer — the navy anchor */
footer { background: #0b1a33; color: #aeb7c7; padding-block: 3rem 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot-brand .brand-name { font-size: 1.15rem; color: #fff; }
.foot-brand .brand-name .silver { background: var(--metal-silver-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-brand p { font-size: 0.9rem; color: #8894a8; max-width: 42ch; margin: 1rem 0 0; }
footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.9rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0.5rem 0; }
footer a { color: #aeb7c7; text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: var(--gold-l); }
.foot-bottom { border-top: 1px solid rgba(174,180,191,0.14); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.82rem; color: #7f8ba0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; min-height: 0; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .pillars, .feat { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, .accent, .seal-spin { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }
