:root {
  --bg: #04061a;
  --ink: #e9edff;
  --muted: #98a2c9;
  --line: rgba(255, 255, 255, 0.08);
  --teal: #2dd4bf;
  --blue: #3b82f6;
  --purple: #9b5cf6;
  --grad: linear-gradient(90deg, var(--teal), var(--blue), var(--purple));
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% 110%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 92% -10%, rgba(155, 92, 246, 0.24), transparent 60%),
    radial-gradient(900px 600px at 50% 45%, rgba(59, 130, 246, 0.1), transparent 70%),
    linear-gradient(180deg, #050720 0%, #070b2c 50%, #04061a 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.intro-lock { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

#formulas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(2, 3, 12, 0.7));
}
main, .site-header, .site-footer { position: relative; z-index: 2; }

.infinity { display: block; width: 100%; height: auto; overflow: visible; }
.inf-shine { stroke-dasharray: 0.04 0.96; opacity: 0.28; animation: shine 7s linear infinite; }

/* ---------- Intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: radial-gradient(circle at 50% 50%, #0b1140, #02030f 70%);
  transition: opacity 1s var(--ease), visibility 1s;
  cursor: pointer;
}
#intro.hide { opacity: 0; visibility: hidden; }
.intro-logo { width: min(560px, 82vw); }
#intro .inf-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.9s var(--ease) 0.15s forwards; }
#intro .inf-glow { opacity: 0; animation: fadeTo 1.2s ease 1.2s forwards; }
#intro .bead {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: beadPop 0.6s var(--ease) calc(0.9s + var(--i) * 22ms) forwards;
}
.intro-name {
  font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 2.4vw, 24px);
  letter-spacing: 0.55em; padding-left: 0.55em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: rise 1.1s var(--ease) 1.8s forwards;
}

/* ---------- Antraštė ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 5vw;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 5vw;
  background: rgba(5, 7, 28, 0.62);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; display: block; }
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav { display: flex; gap: 38px; }
.nav a {
  position: relative; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--grad); transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background 0.3s;
}
.cart-btn:hover { border-color: var(--teal); background: rgba(45, 212, 191, 0.08); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--grad); font-size: 11px; font-weight: 600;
  display: grid; place-items: center;
}
.cart-count.bump { animation: bump 0.45s var(--ease); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.lang span { opacity: 0.35; }
.lang button { padding: 6px 5px; color: var(--muted); letter-spacing: inherit; transition: color 0.3s; }
.lang button:hover, .lang button.active { color: var(--ink); }
.lang button.active { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px 6vw 90px;
}
.hero > * { opacity: 0; transform: translateY(26px); }
body.ready .hero > * { animation: rise 1.2s var(--ease) forwards; }
body.ready .hero > :nth-child(2) { animation-delay: 0.12s; }
body.ready .hero > :nth-child(3) { animation-delay: 0.24s; }
body.ready .hero > :nth-child(4) { animation-delay: 0.36s; }
body.ready .hero > :nth-child(5) { animation-delay: 0.48s; }
body.ready .hero > :nth-child(6) { animation-delay: 0.9s; }
.hero-logo { position: relative; width: min(720px, 92vw); margin-bottom: 18px; }
.hero-logo::before {
  content: ''; position: absolute; inset: 5% 8%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.3), rgba(155, 92, 246, 0.12) 45%, transparent 70%);
  filter: blur(30px);
}
.hero-logo .infinity { animation: float 8s ease-in-out infinite; will-change: transform; }
.hero-title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 7.4vw, 96px); line-height: 1; letter-spacing: 0.03em;
  background: linear-gradient(90deg, #d9fbf6, #dbe6ff 50%, #eadcff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { margin: 22px 0 0; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.hero-tagline span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: #c3cae8; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(155, 92, 246, 0.45); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }
.btn-block { width: 100%; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; margin-left: -12px;
  width: 24px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--teal); animation: scrollDot 2s ease-in-out infinite;
}

/* ---------- Sekcijos ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: 120px 6vw; }
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.36em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; }
.section-head p, .contact p { margin: 16px auto 0; max-width: 520px; color: var(--muted); line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
