/* somano.si — landing v2 (2026-06-11)
   Identiteta prevzeta iz legacy-placeholder-v1.html: paleta, tipografija, orb/meridian motivi */

/* Self-hosted fonts (GDPR: avoids sending visitor IPs to Google's font CDN) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #05111e;
  --bg-2: #030a13;
  --ink: #e8eef0;
  --ink-soft: rgba(232, 238, 240, 0.72);
  --ink-dim: rgba(232, 238, 240, 0.48);
  --ink-faint: rgba(232, 238, 240, 0.20);
  --hair: rgba(232, 238, 240, 0.08);
  --teal: #2dd4bf;
  --teal-bright: #7af0dc;
  --teal-deep: #0e8a7a;
  --teal-shadow: rgba(45, 212, 191, 0.45);
  --glass: rgba(255, 255, 255, 0.02);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-2);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg, model-viewer { max-width: 100%; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* —— nav ————————————————————————————————————————————————————— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(3,10,19,0.85), rgba(3,10,19,0.0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.32em;
  text-decoration: none;
}
.wordmark .glyph { width: 22px; height: 22px; position: relative; }
.wordmark .glyph::before,
.wordmark .glyph::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.wordmark .glyph::before {
  background: radial-gradient(circle at 35% 35%, var(--teal-bright), var(--teal-deep) 70%, transparent 100%);
  filter: blur(0.4px);
}
.wordmark .glyph::after { border: 1px solid rgba(122, 240, 220, 0.35); transform: scale(1.35); }
.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em;
}
.nav-links a { text-decoration: none; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* —— hero ————————————————————————————————————————————————————— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.ambient {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 70% 52%, rgba(45,212,191,0.10), transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(14,138,122,0.10), transparent 60%),
    radial-gradient(ellipse 140% 90% at 50% 0%, rgba(5,17,30,0.0), rgba(3,10,19,0.6) 80%),
    var(--bg);
}
.grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}
.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particles .p {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 6px var(--teal);
  opacity: 0;
  animation: drift 14s linear infinite;
}
@keyframes drift {
  0%   { opacity: 0; transform: translateY(20px) scale(0.6); }
  25%  { opacity: 0.6; }
  80%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-220px) scale(1); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 36px 60px;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 96px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.28em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal), 0 0 16px var(--teal);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

h1 {
  font-weight: 200;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #b8f5e4 0%, #5eead4 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
.subline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 32px;
  max-width: 480px;
}
@media (max-width: 980px) { .subline { margin-left: auto; margin-right: auto; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 980px) { .cta-row { justify-content: center; } }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(122, 240, 220, 0.22);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.cta-ghost:hover {
  border-color: rgba(122, 240, 220, 0.55);
  background: rgba(45, 212, 191, 0.07);
  transform: translateY(-1px);
}
.cta-ghost .k { color: var(--ink-dim); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* hero visual: meridians behind, 3D model in front, SVG fallback */
.hero-visual {
  position: relative;
  height: clamp(420px, 70vh, 640px);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .meridians {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-visual .meridians svg { width: 100%; height: 100%; }

/* AURA-SLOT: zamenjaj ta blok s Spline code exportom, ko bo pripravljen */
model-viewer.body3d {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}
.body-fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  animation: bodyBreath 6.8s cubic-bezier(.4,0,.4,1) infinite;
}
.body-fallback svg { height: min(92%, 600px); width: auto; overflow: visible; }
@keyframes bodyBreath {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.012); opacity: 1; }
}
.no3d model-viewer.body3d { display: none; }
.no3d .body-fallback { display: flex; }

.hero-ground {
  position: absolute;
  left: 50%; bottom: 6%;
  transform: translateX(-50%);
  width: 280px; height: 36px;
  background: radial-gradient(ellipse at 50% 50%, rgba(45,212,191,0.30), transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* —— generic sections ———————————————————————————————————————— */
section { position: relative; }
.section { padding: 110px 0; }
.section + .section { border-top: 1px solid var(--hair); }

.kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
h2 {
  font-weight: 200;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 720px;
}
.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
}

/* —— why (problem→solution) —————————————————————————————————— */
.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 820px) { .signals { grid-template-columns: 1fr; } }
.signal {
  padding: 24px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--glass);
}
.signal .t { font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--teal-bright); }
.signal .d { font-size: 14px; line-height: 1.6; color: var(--ink-dim); }

/* —— paths (three doors) ————————————————————————————————————— */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(45,212,191,0.05), transparent 55%),
    var(--glass);
  backdrop-filter: blur(8px);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(122, 240, 220, 0.3); transform: translateY(-3px); }
.card .who {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.card h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); flex: 1; margin-bottom: 26px; }
.card .cta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eead4 0%, #2dd4bf 50%, #14b8a6 100%);
  color: #042b27;
  font-weight: 500; font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(122, 240, 220, 0.6);
  box-shadow:
    0 0 0 1px rgba(45,212,191,0.15),
    0 10px 30px -8px rgba(45,212,191,0.45),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card .cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(122,240,220,0.4),
    0 14px 36px -8px rgba(45,212,191,0.6),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.os-line {
  margin-top: 44px;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.os-line strong { color: var(--ink-soft); font-weight: 500; letter-spacing: 0.18em; }

/* —— how it works ———————————————————————————————————————————— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 26px 22px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--glass);
  position: relative;
}
.step .n {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.step p { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }
.disclaimer {
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* —— footer ——————————————————————————————————————————————————— */
.footer {
  padding: 80px 0 50px;
  border-top: 1px solid var(--hair);
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(14,138,122,0.08), transparent 60%);
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-end;
}
.footer .contact-mail {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(122,240,220,0.3);
  transition: border-color .2s ease;
}
.footer .contact-mail:hover { border-color: var(--teal-bright); }
.footer .meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 2;
  text-align: right;
}
@media (max-width: 640px) { .footer .meta { text-align: left; } }

/* —— reveal on scroll ———————————————————————————————————————— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .particles, .pulse { display: none; }
  .body-fallback { animation: none; }
  html { scroll-behavior: auto; }
}
