:root{
  --bg:#000;
  --fg:#fff;
  --muted: rgba(255,255,255,.72);
  --glass: rgba(0,0,0,.42);
  --line: rgba(255,255,255,.10);
  --accent: #2EC4B6;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

/* Background layers */
canvas{
  position: fixed;
  inset: 0;
  width:100%;
  height:100%;
  display:block;
}
#pixels{ z-index: 0; }
#fog{ z-index: 1; mix-blend-mode: screen; opacity:.55; }
.vignette{
  position: fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 70%, rgba(0,0,0,.90) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.75));
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding: 8px clamp(16px, 4vw, 36px); /* bija lielāks */
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.logo{
  width: clamp(140px, 14vw, 260px);
  height:auto;
  display:block;
  filter:
    drop-shadow(0 0 10px rgba(0,0,0,.9))
    drop-shadow(0 0 28px rgba(46,196,182,.22));
}

.nav{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  color: rgba(255,255,255,.85);
  text-decoration:none;
  font-size: 14px;
  letter-spacing:.02em;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover{
  background: rgba(255,255,255,.08);
  color:#fff;
}

/* Page / sections */
.page{ position: relative; z-index: 20; }
.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(28px, 6vw, 80px) clamp(16px, 4vw, 48px);
}
.hero-grid{
  width: min(1200px, 100%);
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(18px, 4vw, 60px);
  align-items:center;
}

.h1{
  font-family: 'Caveat', cursive;
  font-size: clamp(42px, 6vw, 90px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.sub{
  margin-top: 16px;
  font-size: clamp(16px, 2.0vw, 24px);
  color: var(--muted);
  max-width: 52ch;
}

.cta-row{
  margin-top: 26px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  background: rgba(46,196,182,.14);
  border-color: rgba(46,196,182,.35);
  color: #eafffb;
}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: #fff;
}

.micro{
  margin-top: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(46,196,182,.55);
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity:.85; }
  50%{ transform: scale(1.4); opacity:1; }
}

.hero-right{
  display:flex;
  flex-direction: column;
  gap: 18px;
  align-items:flex-end;
}

.countdown-card{
  width: min(360px, 100%);
  border-radius: 20px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px 18px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 50px rgba(0,0,0,.35);
}
.count-title{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.count-days{
  font-family: "Press Start 2P", monospace;
  font-size: clamp(30px, 3.8vw, 66px);
  line-height:1.05;
}
.count-time{
  margin-top: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(14px, 1.6vw, 22px);
  color: rgba(255,255,255,.80);
}

.hint{
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  user-select:none;
}
.hint span{ opacity:.9; }

/* Sections */
.section{
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.section-inner{
  width: min(1100px, 100%);
  margin: 0 auto;
}
.section h2{
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: -.01em;
}
.section p{
  margin-top: 14px;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 80ch;
}

.cards{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border-radius: 18px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px;
  backdrop-filter: blur(10px);
}
.card h3{
  font-size: 18px;
  margin-bottom: 8px;
}
.card p{ margin-top: 0; }

.split{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}
.card.strong{
  border-color: rgba(46,196,182,.35);
  background: rgba(46,196,182,.10);
}

.bullets{
  margin-top: 14px;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
}
.bullets li{ margin: 6px 0; }

.footer{
  padding-bottom: 80px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.label{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.mail{
  display:inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.copy{
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.social{
  display:flex;
  gap: 24px;
  align-items:center;
}
.social img{
  width: clamp(28px, 3vw, 48px);
  height: auto;
  opacity: .9;
  transition: transform .25s ease, filter .25s ease;
}

.social img:hover{
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(46,196,182,.6));
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition: opacity 900ms ease, transform 900ms ease, filter 900ms ease;
}
.reveal.on{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.delay1{ transition-delay: 160ms; }
.delay2{ transition-delay: 320ms; }
.delay3{ transition-delay: 480ms; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-right{ align-items:flex-start; }
  .cards{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* var atstāt arī redzamu, ja gribi */
}

.light-sweep{
  position: fixed;
  inset: -20vh -40vw;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(0,0,0,0) 0%,
    rgba(255,255,255,0.00) 42%,
    rgba(255,255,255,0.10) 50%,
    rgba(46,196,182,0.10) 52%,
    rgba(255,255,255,0.00) 58%,
    rgba(0,0,0,0) 100%
  );
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: .55;
  transform: translateX(-60vw) rotate(0.001deg);
  animation: sweep 7.5s ease-in-out infinite;
}

@keyframes sweep{
  0%   { transform: translateX(-65vw) translateY(-5vh); opacity:.0; }
  10%  { opacity:.55; }
  50%  { transform: translateX(10vw) translateY(0vh); opacity:.55; }
  90%  { opacity:.55; }
  100% { transform: translateX(75vw) translateY(5vh); opacity:.0; }
}

body.present{
  overflow: hidden;
}

body.present .nav{
  display: none !important;
}

body.present .topbar{
  background: rgba(0,0,0,.55);
  border-bottom-color: rgba(255,255,255,.12);
}

body.present .page{
  height: 100vh;
  overflow: hidden;
}

body.present .section,
body.present .hero{
  min-height: 100vh;
  height: 100vh;
}

body.present .page{
  scroll-snap-type: y mandatory;
  overflow-y: auto;
}

body.present .hero,
body.present .section{
  scroll-snap-align: start;
}
