/* Gentik Ground — product showcase
   Palette taken from the Gentik.in logo (gold + ink) on light surfaces. */
:root {
  --ink: #1C1F26;
  --text: #40434C;
  --muted: #5E606A;
  --gold: #AF904F;
  --gold-deep: #7B612F;
  --stone: #F5F3EE;
  --stone-2: #ECE8DF;
  --line: #E1DBCE;
  --paper: #FFFFFF;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer; white-space: nowrap;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #C4A462; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 132px; }
.brand-product {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  padding-left: .9rem; border-left: 1px solid var(--line); line-height: 1.1;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--gold-deep); }
.menu-btn { display: none; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-kicker { font-weight: 600; color: var(--gold-deep); margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 6rem); line-height: .94; letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end;
  margin-top: 1.75rem;
}
.hero-lede { font-size: 1.2rem; line-height: 1.55; max-width: 56ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stage { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hero-switch-label { font-weight: 600; color: var(--ink); margin-bottom: .75rem; }

/* Viewer */
.viewer { display: grid; gap: 1rem; }
.viewer-tabs {
  display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem;
  background: var(--stone-2); border-radius: 999px; justify-self: start;
}
.viewer-tab {
  font: 600 .98rem/1 var(--body); color: var(--ink); background: transparent;
  border: 0; border-radius: 999px; padding: .6rem 1.15rem; cursor: pointer;
}
.viewer-tab:hover { background: rgba(255,255,255,.6); }
.viewer-tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.viewer-stage { margin: 0; }
.viewer-zoom {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--stone-2); cursor: zoom-in; overflow: hidden;
  aspect-ratio: 1905 / 961;
}
.viewer-zoom img { width: 100%; height: 100%; object-fit: contain; }
.hero .viewer-zoom { box-shadow: 0 30px 60px -30px rgba(28,31,38,.35); border-top: 4px solid var(--gold); }
.viewer-cap { margin-top: .7rem; font-size: .95rem; color: var(--muted); }
.viewer-thumbs { display: flex; gap: .75rem; flex-wrap: wrap; }
.viewer-thumb {
  display: grid; gap: .4rem; width: 168px; padding: .4rem; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  font: 500 .88rem/1.25 var(--body); color: var(--ink);
}
.viewer-thumb img { width: 100%; aspect-ratio: 1905 / 961; object-fit: contain; background: var(--stone-2); border-radius: 4px; }
.viewer-thumb[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.viewer-thumb:hover { border-color: var(--gold); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-stone { background: var(--stone); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; margin-bottom: .9rem; }
.section-head p { font-size: 1.12rem; }

/* Facts */
.facts { padding: 0; }
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts-grid > div { padding: 1.6rem 1.5rem 1.6rem 0; display: flex; flex-direction: column; gap: .35rem; }
.facts-grid > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact-num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.fact-label { font-size: .98rem; line-height: 1.35; }

/* Portals */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.portal { border-top: 3px solid var(--ink); padding-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.portal h3 { font-size: 2rem; line-height: 1; }
.portal-who { color: var(--gold-deep); font-weight: 600; }
.portal a { margin-top: auto; padding-top: .5rem; font-weight: 600; }

/* Explorer */
.explorer { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.module-nav { display: flex; flex-direction: column; position: sticky; top: 92px; border-left: 1px solid var(--line); }
.module-nav button {
  text-align: left; background: none; border: 0; border-left: 3px solid transparent; margin-left: -2px;
  padding: .55rem 1rem; font: 500 1rem/1.3 var(--body); color: var(--text); cursor: pointer;
}
.module-nav button:hover { color: var(--ink); }
.module-nav button[aria-selected="true"] { border-left-color: var(--gold); color: var(--ink); font-weight: 600; background: var(--paper); }
.module-panel { display: grid; gap: 1.5rem; }
.module-panel[hidden] { display: none; }
.module-head h3 { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; margin-bottom: .6rem; }
.module-head p { max-width: 64ch; font-size: 1.08rem; }
.feature-list {
  list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 2.5rem;
}
.feature-list li { position: relative; padding-left: 1.1rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold); border-radius: 1px;
}
.feature-list strong { color: var(--ink); font-weight: 600; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.5rem; }
.benefit { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.benefit h3 { font-size: 1.65rem; line-height: 1.05; margin-bottom: .5rem; }

/* CTA */
.cta { background: var(--ink); color: #D9D5CC; padding: clamp(4rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border: 56px solid rgba(175,144,79,.16); border-radius: 50%; pointer-events: none;
}
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: .98; margin-bottom: 1rem; }
.cta p { font-size: 1.12rem; max-width: 50ch; margin-bottom: 1.75rem; }
.contact-list { margin: 0; display: grid; gap: 1.1rem; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 1rem; }
.contact-list dt { color: var(--gold); font-weight: 600; font-size: .95rem; }
.contact-list dd { margin: 0; }
.contact-list a { color: #fff; font-size: 1.2rem; font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold); text-decoration: underline; }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner img { width: 110px; }
.footer-inner p { font-size: .92rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 3.5rem 1rem 1rem;
  border: 0; background: rgba(20,22,27,.94); color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; }
.lightbox::backdrop { background: rgba(20,22,27,.6); }
.lightbox img { max-width: min(96vw, 1600px); max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox-cap { font-size: .98rem; color: #D9D5CC; text-align: center; max-width: 80ch; }
.lightbox-close {
  position: absolute; top: .9rem; right: 1rem; font: 600 .95rem/1 var(--body);
  background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { gap: 1.1rem; }
  .site-nav a:not(.btn) { font-size: .92rem; }
}
@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; font: 600 .95rem/1 var(--body); background: none; color: var(--ink);
    border: 2px solid var(--ink); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; }
  .hero-row { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; gap: 1.75rem; }
  .module-nav {
    position: static; flex-direction: row; overflow-x: auto; border-left: 0; gap: .4rem;
    padding-bottom: .4rem; scrollbar-width: thin;
  }
  .module-nav button {
    flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; margin: 0;
    background: var(--paper); padding: .5rem .95rem; font-size: .95rem;
  }
  .module-nav button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .portals, .benefits { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { width: 108px; }
  .brand-product { font-size: 1.1rem; padding-left: .7rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { padding: 1.1rem 0; flex-direction: row; align-items: baseline; gap: .8rem; }
  .facts-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .portals, .benefits, .feature-list { grid-template-columns: 1fr; }
  .viewer-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; border-radius: 12px; }
  .viewer-tab { flex: 0 0 auto; }
  .viewer-thumb { width: calc(50% - .4rem); }
  .contact-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
