/* ============================================================
   aniri. — landing  /  design tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* dark (default) */
  --bg:        #000000;
  --bg-1:      #060607;
  --surface:   #0c0c0d;       /* small opaque "tech" cards */
  --surface-2: #131315;
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.16);
  --fg:        #ffffff;
  --fg-mute:   #9a9a9e;
  --fg-dim:    #5d5d62;
  --glass:     rgba(20,20,22,0.55);   /* big blurred cards */
  --glass-line:rgba(255,255,255,0.12);
  --accent:    #2fd463;        /* aniri green */
  --accent-dim:#1c7a3c;
  --tg:        #2aabee;        /* telegram blue */
  --amber:     #f0972b;
  --inv-bg:    #ffffff;        /* solid white button */
  --inv-fg:    #000000;
  --matrix:    rgba(255,255,255,0.13);
  --matrix-hi: rgba(255,255,255,0.38);
  --map-dot:   rgba(20,22,26,0.0);   /* set per theme below for light map */
  --map-land:  rgba(255,255,255,0.16);
  --map-grid:  rgba(255,255,255,0.05);
  --shadow:    0 30px 80px -30px rgba(0,0,0,0.9);
  --maxw: 1280px;
}

html[data-theme="light"] {
  --bg:        #f3f3f0;
  --bg-1:      #ececea;
  --surface:   #ffffff;
  --surface-2: #f6f6f3;
  --line:      rgba(10,10,12,0.12);
  --line-2:    rgba(10,10,12,0.22);
  --fg:        #0a0a0b;
  --fg-mute:   #55555b;
  --fg-dim:    #9a9aa0;
  --glass:     rgba(255,255,255,0.62);
  --glass-line:rgba(10,10,12,0.10);
  --accent:    #18a64c;
  --accent-dim:#0f7a37;
  --tg:        #1f95d6;
  --amber:     #c4720f;
  --inv-bg:    #0a0a0b;
  --inv-fg:    #ffffff;
  --matrix:    rgba(10,12,16,0.12);
  --matrix-hi: rgba(10,12,16,0.26);
  --map-land:  rgba(10,12,18,0.20);
  --map-grid:  rgba(10,12,18,0.05);
  --shadow:    0 30px 70px -34px rgba(40,40,50,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

.mono { font-family: 'JetBrains Mono', monospace; }
a { color: var(--fg); }

/* matrix canvas pinned behind everything */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* radial vignette so content reads over rain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 42%, color-mix(in srgb, var(--bg) 78%, transparent) 0%, transparent 70%),
    radial-gradient(135% 95% at 50% 0%, transparent 60%, var(--bg) 100%);
  transition: background .5s ease;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

section { position: relative; padding: 88px 0; }

/* ---------- type ---------- */
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--fg-dim);
}
.kicker b { color: var(--accent); font-weight: 500; }

h2.title {
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.dot { color: var(--accent); }
.lead {
  color: var(--fg-mute);
  font-size: clamp(17px, 1.5vw, 21px);
  max-width: 56ch;
  margin-top: 22px;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.btn--solid:hover { box-shadow: 0 16px 40px -14px rgba(255,255,255,0.35); }
html[data-theme="light"] .btn--solid:hover { box-shadow: 0 16px 40px -14px rgba(0,0,0,0.35); }
.btn--tg { background: var(--tg); color: #fff; border-color: var(--tg); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
/* green glowing CTA */
.btn--glow {
  background: var(--accent); color: #04150b; border-color: var(--accent); font-weight: 700;
  animation: glowPulse 2.4s ease-in-out infinite;
}
.btn--glow:hover { transform: translateY(-2px); filter: brightness(1.05); }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 18px -2px color-mix(in srgb, var(--accent) 70%, transparent), 0 8px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
  50%      { box-shadow: 0 0 34px 2px color-mix(in srgb, var(--accent) 85%, transparent), 0 10px 36px -8px color-mix(in srgb, var(--accent) 95%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .btn--glow { animation: none; } }

/* generic small tech card (opaque) */
.tech {
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.tech::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 9px; height: 9px;
  border-left: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
}

/* big glass card */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* blinking caret used in logotype */
.caret { display:inline-block; width:.07em; min-width:3px; background: currentColor; align-self: stretch; margin-left: .02em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%,50%{opacity:1} 50.01%,100%{opacity:0} }
