/* =============================================
   BRAND.CSS — NordRada Travel Estonia
   Premium dark design system
   ============================================= */

:root {
  --primary:    #0A0D10;
  --secondary:  #1A222C;
  --accent:     #00F0FF;
  --accent2:    #7A5CFF;
  --fog:        #2A3138;
  --text:       #EAF2F8;
  --muted:      #6b8091;
  --muted-soft: #a4bac8;
  --border:     rgba(234,242,248,0.08);
  --border-mid: rgba(234,242,248,0.14);
  --container:  1200px;
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --shadow:     0 24px 64px rgba(0,0,0,0.55);
  --shadow-sm:  0 8px 28px rgba(0,0,0,0.35);
  --glow-c:     0 0 0 1px rgba(0,240,255,0.3), 0 0 40px rgba(0,240,255,0.18);
  --glow-v:     0 0 0 1px rgba(122,92,255,0.3), 0 0 40px rgba(122,92,255,0.15);
  --duration:   0.55s;
  --ease:       cubic-bezier(0.22,1,0.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--fog); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,240,255,0.5); }

/* ---- Noise texture overlay ---- */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1 { font-size: clamp(40px,6.5vw,92px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(28px,4vw,54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: clamp(17px,1.8vw,22px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(15px,1.4vw,18px);
  color: var(--muted-soft);
  line-height: 1.75;
  max-width: 480px;
}

/* Gradient headline accent */
.text-gradient {
  background: linear-gradient(115deg, var(--accent) 20%, var(--accent2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #020e10;
  box-shadow: 0 0 28px rgba(0,240,255,0.45);
}
.btn-primary:hover { box-shadow: 0 0 48px rgba(0,240,255,0.65); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-mid);
}
.btn-ghost:hover { border-color: rgba(0,240,255,0.4); color: var(--accent); }

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0,240,255,0.35);
}
.btn-outline-accent:hover { background: rgba(0,240,255,0.08); box-shadow: var(--glow-c); }

/* ---- Links ---- */
a { color: var(--text); text-decoration: none; }

.link-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}
.link-arrow::after { content: '→'; display: inline-block; transition: transform 0.25s ease; }
.link-arrow:hover { gap: 10px; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---- Pulsing dot ---- */
.dot-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%,100% { opacity:1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity:.4; box-shadow: none; }
}

/* ---- Number mono style ---- */
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* ---- Images ---- */
img { max-width: 100%; display: block; }

/* ---- Preloader ---- */
#preloader {
  position: fixed; inset: 0;
  background: var(--primary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}
#preloader.hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.pl-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}
.pl-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 64px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  min-width: 3ch;
  text-align: center;
}
.pl-bar {
  width: 200px; height: 1px;
  background: var(--border);
  overflow: hidden;
  border-radius: 1px;
}
.pl-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  transition: width 0.05s linear;
}

/* ---- Custom cursor ---- */
.cur-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
}
.cur-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(0,240,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: transform 0.18s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.3s ease, opacity 0.3s ease;
}
body.hovered .cur-ring {
  width: 64px; height: 64px;
  border-color: rgba(0,240,255,0.3);
}
body.hovered .cur-dot {
  transform: translate(-50%,-50%) scale(1.6);
}
@media (hover: none) { .cur-dot, .cur-ring { display: none; } }
