/* Olive Crypto Systems: site styles (framework-free)
   Brand: primary #252877, secondary #fd722e. Fonts are self-hosted. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #252877;
  --indigo-900: #161947;
  --orange: #fd722e;
  --orange-soft: #ff9a63;
  --ink: #151847;
  --text: #454a6e;
  --muted: #5d6288;
  --line: #e3e6f2;
  --bg: #f6f7fb;
  --tile: #eef0ff;
  --white: #ffffff;
  --radius: 16px;
  --max: 1200px;
  --header-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
section[id] { scroll-margin-top: var(--header-h); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 600 16px/1.2 var(--font-body);
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff8547; color: var(--ink); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 26px; }
.nav-list a { color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { text-decoration: none; border-bottom-color: var(--line); }
.nav-list a[aria-current="true"] { color: var(--indigo); border-bottom-color: var(--orange); }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--indigo);
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #d3d6f7;
  padding: 88px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }
.hero .eyebrow { color: var(--orange-soft); margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: var(--white); }
.hero .lead { margin-top: 24px; font-size: 19px; line-height: 1.6; max-width: 540px; color: #d3d6f7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; gap: 20px 44px; flex-wrap: wrap; margin-top: 56px; }
.hero-stat strong { display: block; font: 700 34px/1.1 var(--font-head); color: var(--white); }
.hero-stat span { display: block; margin-top: 4px; font-size: 14px; color: #c3c7ee; }

.hero-visual { position: relative; }
.hero-diagram { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.hero-diagram .panel { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .14); }
.hero-diagram .ring { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; }
.hero-diagram .ring-d { stroke-dasharray: 3 7; stroke: rgba(255, 255, 255, .28); }
.hero-diagram .flow { fill: none; stroke: var(--orange-soft); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; }
.hero-diagram .dot { fill: #ffffff; }
.hero-diagram .ring-n { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.hero-diagram .ring-n2 { fill: none; stroke: rgba(255, 255, 255, .2); }
.hero-diagram .end-t { fill: #ffffff; font-size: 15px; font-weight: 700; }
.hero-diagram .core { fill: var(--orange); }
.hero-diagram .core-t { fill: #151847; font: 800 24px var(--font-head); }
.hero-diagram .lab { fill: #d3d6f7; font-size: 14.5px; font-weight: 600; }
.hero-diagram .pill rect { fill: var(--indigo-900); stroke: var(--orange-soft); stroke-width: 1; }
.hero-diagram .pill text { fill: var(--orange-soft); font-size: 14px; font-weight: 600; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* ---------- Client strip ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.strip p { font-size: 14px; font-weight: 500; color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.strip img { height: 28px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.strip img:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg); }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.section-head { max-width: 760px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; margin-top: 56px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #b9bde6; box-shadow: 0 10px 30px rgba(37, 40, 119, .08); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tile); color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { font-size: 15px; line-height: 1.6; }
.link-btn {
  margin-top: auto; align-self: flex-start; padding: 8px 0; min-height: 44px;
  background: none; border: 0; cursor: pointer; font: 600 15px/1 var(--font-body); color: var(--indigo);
}
.link-btn::after { content: "\2192"; margin-left: 8px; display: inline-block; transition: transform .15s; }
.link-btn:hover { text-decoration: underline; }
.link-btn:hover::after { transform: translateX(3px); }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.why-intro p { margin-top: 20px; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 44px; }
.why-item img { width: 52px; height: 52px; margin-bottom: 16px; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { font-size: 15px; line-height: 1.65; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-copy p + p { margin-top: 20px; }
.about-copy strong { color: var(--ink); }

/* Stats */
.stats { background: var(--indigo-900); color: var(--white); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px 24px; }
.stat strong { display: block; font: 800 clamp(36px, 4vw, 46px)/1.1 var(--font-head); letter-spacing: -.02em; }
.stat-label { display: block; margin-top: 6px; font-size: 15px; color: #c3c7ee; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: center; }
.clients-grid .lead { margin-top: 20px; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-wall li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; height: 88px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logo-wall img { max-height: 38px; max-width: 100%; width: auto; object-fit: contain; }

/* CTA */
.cta { background: var(--indigo); color: var(--white); padding: 88px 0; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.cta h2 { color: var(--white); font-size: clamp(26px, 3.2vw, 38px); max-width: 740px; }
.cta p { margin-top: 18px; font-size: 18px; color: #dcdff8; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.contact-list { display: grid; gap: 28px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row img { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; }
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-row a, .contact-row address { color: var(--ink); font-size: 17px; line-height: 1.6; }
.contact-row a.strong { font-weight: 600; font-size: 19px; }
.careers { padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 20px; background: var(--bg); }

/* Footer */
.site-footer { background: var(--indigo-900); color: #c3c7ee; padding: 48px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer-filing { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; padding: 24px 0; font-size: 14px; line-height: 1.6; }
.footer-filing a, .footer-bottom a { color: var(--orange-soft); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #aeb3e3; }

/* ---------- Product dialogs ---------- */
.product-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--text);
  box-shadow: 0 30px 80px rgba(10, 12, 50, .45);
}
.product-dialog::backdrop { background: rgba(21, 24, 71, .62); }
.product-dialog[open] { display: flex; flex-direction: column; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: var(--indigo); border-radius: 20px 20px 0 0; }
.dialog-head h2 { font-size: 22px; line-height: 1.25; color: var(--white); }
.dialog-close {
  flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -8px 0 0; padding: 0;
  background: transparent; border: 0; border-radius: 10px; color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dialog-close:hover { background: rgba(255, 255, 255, .14); }
.dialog-body { padding: 24px 28px 30px; overflow-y: auto; font-size: 16px; line-height: 1.65; }
.dialog-body p + p, .dialog-body p + ul, .dialog-body ul + p, .dialog-body ul + ul { margin-top: 16px; }
.dialog-body strong, .dialog-body b { color: var(--ink); }
.dialog-body li { position: relative; padding: 5px 0 5px 22px; }
.dialog-body li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- CSR page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-list a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--orange); }
.page-hero { background: var(--indigo-900); color: var(--white); padding: 72px 0; }
.page-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-hero .eyebrow { color: var(--orange-soft); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; }
.page-hero .lead { margin-top: 16px; font-size: 19px; color: #d3d6f7; }
.page-hero-mark { width: 120px; height: auto; background: var(--white); border-radius: var(--radius); padding: 14px; flex: none; }
.csr-intro { max-width: 800px; }
.csr-intro p { margin-top: 18px; font-size: 18px; line-height: 1.7; }
.csr-list { margin-top: 56px; display: grid; gap: 28px; }
.csr-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.csr-row:nth-child(even) .csr-media { order: 2; }
.csr-copy h3 { font-size: 24px; line-height: 1.25; color: var(--ink); }
.csr-copy h3 a { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.csr-copy h3 a:hover { color: var(--ink); }
.csr-copy p { margin-top: 14px; line-height: 1.7; }
.csr-media img { display: block; width: 100%; height: auto; border-radius: 12px; }
.csr-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.csr-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.csr-duo img { height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.csr-logo-tile { display: flex; align-items: center; justify-content: center; min-height: 220px; background: var(--bg); border-radius: 12px; padding: 24px; }
.csr-logo-tile img { width: auto; max-width: 100%; max-height: 180px; border-radius: 0; }
.csr-quote { margin: 56px auto 0; max-width: 800px; padding: 28px 32px; border-left: 4px solid var(--orange); background: var(--tile); border-radius: 0 var(--radius) var(--radius) 0; }
.csr-quote p { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 600; }

/* ---------- Certifications ---------- */
.cert-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cert { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cert svg { color: var(--indigo); }
.cert h3 { margin-top: 16px; font-size: 20px; color: var(--ink); }
.cert p { margin-top: 8px; line-height: 1.65; }
.result .result-num { margin: 0; font-family: var(--font-head); font-size: 44px; line-height: 1.1; font-weight: 800; color: var(--indigo); }
.result h3 { margin-top: 8px; }
.cert-list { list-style: none; margin: 8px 0 0; padding: 0; line-height: 1.65; }
.cert-list li { position: relative; padding: 3px 0 3px 20px; }
.cert-list li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.cert-list strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .csr-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .csr-row:nth-child(even) .csr-media { order: 0; }
  .csr-logo-tile { min-height: 160px; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .why-grid, .about-grid, .clients-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .map-frame { min-height: 320px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(21, 24, 71, .12);
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 48px 0; }
  .page-hero-mark { width: 80px; padding: 10px; }
  .csr-row { padding: 18px; }
  .csr-quote { padding: 20px; }
  .csr-quote p { font-size: 18px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .stats, .cta { padding: 56px 0; }
  .hero .lead { font-size: 17px; }
  .hero-stats { margin-top: 40px; gap: 20px 32px; }
  .hero-stat strong { font-size: 28px; }
  .why-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product-grid { margin-top: 36px; gap: 14px; }
  .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 20px; }
  .card-icon { grid-row: 1 / span 3; }
  .card .link-btn { margin-top: 4px; justify-self: start; text-align: left; }
  .btn-lg { width: 100%; }
  .dialog-head { padding: 20px 20px 16px; }
  .dialog-body { padding: 20px 20px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
