/* ============================================================
   nicspire.ch — Marketing site
   Premium dark system: Puzzle-style structure, nicspire brand.
   Brand sources: brand style guide v1.1 + nicspire-website repo.
   ============================================================ */

:root {
  /* Surfaces — deepest canvas to lightest steel */
  --canvas:   #060E18;   /* outer / deepest */
  --bg:       #0D2137;   /* Midnight — primary panels */
  --bg2:      #112D4A;   /* Steel Mid */
  --bg3:      #153352;   /* Steel */
  --card:     rgba(255,255,255,0.04);
  --card-2:   rgba(255,255,255,0.06);

  /* Accent */
  --acc:      #22D3EE;   /* Arctic Cyan — lead signal */
  --acc-deep: #1ABFCF;
  --teal:     #2DD4BF;   /* Electric Teal */
  --blue:     #4FACFE;   /* Signal Blue */
  --champ:    #D4B896;   /* Champagne */

  /* Text */
  --wh:  #FFFFFF;
  --mu:  rgba(255,255,255,0.68);
  --dim: rgba(255,255,255,0.35);
  --faint: rgba(255,255,255,0.18);

  /* Lines */
  --border:        rgba(34,211,238,0.18);
  --border-bright: rgba(34,211,238,0.38);
  --border-ghost:  rgba(255,255,255,0.07);

  --font: 'Trebuchet MS', 'Gill Sans MT', 'Century Gothic', sans-serif;

  --maxw: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--wh);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Atmospheric background (brand: concentric rings + glow) ── */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.atmosphere .glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.5;
}
.atmosphere .glow-1 { top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(34,211,238,0.16), transparent 62%); }
.atmosphere .glow-2 { bottom: -300px; left: -200px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(79,172,254,0.10), transparent 65%); }
.atmosphere .glow-3 { top: 40%; right: -260px; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(45,212,191,0.09), transparent 65%); }
.atmosphere .rings {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 1500px; height: 1500px; opacity: 0.5;
}

/* ── Layout ── */
.page { position: relative; z-index: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section-pad { padding: 70px 0; }
.section-pad.pad-half { padding: 35px 0; }
.section-pad-sm { padding: 68px 0; }

/* ── Nav (floating pill) ── */
.nav-wrap { position: sticky; top: 0; z-index: 80; padding: 18px var(--gutter); }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  background: rgba(9,16,28,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px 12px 22px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.nav.scrolled { box-shadow: 0 18px 50px rgba(0,0,0,0.45); border-color: var(--border-bright); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; }
.brand .wm { font-size: 19px; font-weight: 800; letter-spacing: -0.8px; color: var(--wh); }
.brand .wm .tld { color: var(--acc); font-weight: 200; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; }
.nav-links a {
  font-size: 13.5px; color: var(--mu); padding: 8px 14px; border-radius: 9px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--wh); background: rgba(34,211,238,0.07); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-actions .btn-ghost { min-width: 140px; }
.nav-actions .btn-primary { min-width: 182px; }
.lang { font-size: 12px; letter-spacing: 0.06em; color: var(--dim); cursor: pointer;
  padding: 6px 8px; border-radius: 7px; transition: color .15s; background: none; border: none; font-family: var(--font); }
.lang:hover { color: var(--acc); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 20px; height: 1.6px; background: var(--mu); border-radius: 2px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font);
  font-size: 14px; font-weight: 700; border-radius: 10px; padding: 12px 22px;
  cursor: pointer; border: 1.5px solid transparent; transition: all .16s ease; white-space: nowrap; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-primary { background: var(--acc); color: #04222b; border-color: var(--acc); }
.btn-primary:hover { background: var(--acc-deep); border-color: var(--acc-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--acc); border-color: var(--border-bright); }
.btn-ghost:hover { background: rgba(34,211,238,0.10); border-color: var(--acc); }
.btn-white { background: transparent; color: var(--wh); border-color: rgba(255,255,255,0.22); }
.btn-white:hover { border-color: var(--wh); background: rgba(255,255,255,0.05); }

/* ── Type helpers ── */
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--acc);
  display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.center { justify-content: center; }
.rule { width: 40px; height: 2px; background: var(--acc); border-radius: 2px; }
.display { font-weight: 800; letter-spacing: -2px; line-height: 1.0; color: var(--wh);
  font-size: clamp(38px, 5.4vw, 66px); }
.display-2 { font-weight: 800; letter-spacing: -1.4px; line-height: 1.05; color: var(--wh);
  font-size: clamp(30px, 4vw, 46px); }
.accent { color: var(--acc); }
.accent-light { color: var(--acc); font-weight: 200; }
.lead { font-size: clamp(15px, 1.4vw, 18px); color: var(--mu); line-height: 1.7; }
h2.sec-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
h3 { font-weight: 700; }
.muted { color: var(--mu); }
.dim { color: var(--dim); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-head .lead { max-width: 560px; }

/* ── Glass cards ── */
.glass {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.glass-hover { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.glass-hover:hover { transform: translateY(-3px); border-color: var(--border-bright); background: var(--card-2); }

/* Rounded "bezel" frame (Puzzle signature) */
.bezel {
  position: relative;
  border: 0.5px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(34,211,238,0.07), transparent 55%),
    rgba(13,33,55,0.55);
  overflow: hidden;
}
.bezel-glow::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: 0.6;
}

/* ── Footer ── */
.footer { border-top: 0.5px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer .tag { color: var(--dim); font-style: italic; font-size: 11px; margin-top: -2px; margin-left: 38px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--mu); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--acc); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 44px; padding-top: 22px; border-top: 0.5px solid var(--border-ghost); }
.footer-base p { font-size: 11px; color: var(--dim); }

/* ── Chips / pills ── */
.pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(34,211,238,0.10);
  border: 0.5px solid rgba(34,211,238,0.35); border-radius: 999px; padding: 6px 14px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); }
.tick { color: var(--teal); }

/* ── Mobile ── */
.mobile-menu { display: none; }
@media (max-width: 980px) {
  :root { --gutter: 20px; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .section-pad { padding: 68px 0; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 6px; max-width: var(--maxw);
    margin: 10px auto 0; padding: 16px; background: rgba(9,16,28,0.95);
    border: 0.5px solid var(--border); border-radius: 16px; }
  .mobile-menu a { padding: 11px 14px; color: var(--mu); border-radius: 9px; font-size: 15px; }
  .mobile-menu .btn { display: inline-flex; justify-content: center; margin-top: 8px; }
}
