/* ============================================================
   SHERUTA VENTURES — Design System
   Geometric Tech: navy void, angular structure, hexagon lattice
   ============================================================ */

:root {
  --bg: #0A0F1C;
  --panel: #111A2E;
  --panel-2: #16213A;
  --line: #26344F;
  --line-soft: #1B2740;
  --text: #E9EDF5;
  --text-dim: #8D98B3;
  --text-faint: #5C6884;
  --accent: #00D0FF;
  --accent-dim: #00708A;
  --accent-glow: rgba(0, 208, 255, 0.18);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --hex: 12px; /* corner clip size used across hexagon elements */
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Utility: hexagon clip ---------- */
.hex-clip {
  clip-path: polygon(var(--hex) 0, calc(100% - var(--hex)) 0, 100% var(--hex), 100% calc(100% - var(--hex)), calc(100% - var(--hex)) 100%, var(--hex) 100%, 0 calc(100% - var(--hex)), 0 var(--hex));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand .mark {
  width: 26px; height: 26px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-toggle a {
  padding: 6px 10px;
  color: var(--text-faint);
  background: transparent;
}
.lang-toggle a.active { color: var(--bg); background: var(--accent); }

.nav-toggle-btn {
  display: none;
  background: none; border: 1px solid var(--line);
  color: var(--text); padding: 8px 10px; border-radius: 3px;
  font-size: 16px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 14px 28px; }
  .nav-toggle-btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { background: #3DDBFF; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}
.hero .lede {
  font-size: 18px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 26px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.card .icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.card .tag:not([data-lang]) {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 14px;
  display: block;
}
.card .tag[data-lang] {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 14px;
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.process .step {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process .step:last-child { border-right: none; }
.process .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}
.process h4 { font-size: 15.5px; margin-bottom: 8px; }
.process p { font-size: 13.5px; margin-bottom: 0; }
@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; }
  .process .step { border-right: none; border-bottom: 1px solid var(--line); }
  .process .step:last-child { border-bottom: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap; gap: 10px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Lang visibility ----------
   Specificity is intentionally boosted (repeated attribute selector) so this
   system always wins over any component's own `display` rule, without using
   !important (which would break the JS-driven inline styles used elsewhere). */
[data-lang][data-lang] { display: none; }
html[lang="bm"] [data-lang="bm"][data-lang="bm"] { display: block; }
html[lang="bm"] span[data-lang="bm"][data-lang="bm"],
html[lang="bm"] a[data-lang="bm"][data-lang="bm"] { display: inline; }
html[lang="en"] [data-lang="en"][data-lang="en"] { display: block; }
html[lang="en"] span[data-lang="en"][data-lang="en"],
html[lang="en"] a[data-lang="en"][data-lang="en"] { display: inline; }

/* ---------- Misc page helpers ---------- */
.page-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); }
.divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  margin: 60px 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 2px;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border-radius: 2px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
  display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start;
}
.contact-info-item .icon-sm {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 14px;
}
.contact-info-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.contact-info-item p { font-size: 13.5px; margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
