/* ====== TOKENS ====== */
:root {
  --bg: #002432;
  --bg2: #013244;
  --bg3: #001923;
  --border: rgba(255,255,255,0.14);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.68);
  --accent: #35ffe8;
  --accent2: #35ffe8;
  --accent-ink: #00242f;
  --grad: linear-gradient(135deg,#35ffe8,#1fd9c4);
  --bg-panel: #006575;
  --border-panel: rgba(255,255,255,0.22);
  --surface: #013244;
}

/* ====== RESET ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

/* ====== NAV ====== */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0;
  background: rgba(0,36,50,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: padding 0.3s;
}
nav.scrolled { padding: 10px 0; }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 38px; width: auto; display: block; filter: hue-rotate(170deg) saturate(1.3) brightness(1.05); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text); text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.nav-btn {
  background: var(--grad); color: var(--accent-ink);
  padding: 8px 18px; border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.85; border-bottom: none !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 60px; left: 0; width: 100%;
  background: rgba(0,36,50,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 16px 0; z-index: 999;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; padding: 0 24px; }
.nav-mobile ul li { border-bottom: 1px solid var(--border); }
.nav-mobile ul li:last-child { border-bottom: none; }
.nav-mobile ul li a {
  display: block; padding: 14px 0;
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; transition: color 0.2s;
}
.nav-mobile ul li a:hover, .nav-mobile ul li a.active { color: #fff; }
.nav-mobile .nav-btn { display: inline-block; margin: 8px 0; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
}

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px; text-align: center;
  color: var(--muted); font-size: 0.85rem;
  margin-top: auto;
}

/* ====== ÜHISED VORMIKOMPONENDID ====== */
.page-wrap {
  flex: 1;
  padding: 100px 16px 60px;
}
.form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 2px; padding: 32px;
  width: 100%; max-width: 520px;
  margin: 0 auto;
}
.form-card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500;
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 2px;
  padding: 11px 14px; color: var(--text);
  font-size: 0.93rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(53,255,232,0.5); }
.form-group input[type=file] { padding: 8px 14px; cursor: pointer; }
.form-group input[readonly] { opacity: 0.5; cursor: default; }
.form-group textarea { resize: vertical; min-height: 80px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.btn {
  width: 100%; background: var(--grad); color: var(--accent-ink);
  border: none; border-radius: 2px; padding: 13px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer; margin-top: 8px;
  transition: opacity 0.2s;
  display: block; text-align: center; text-decoration: none;
}
.btn:hover { opacity: 0.85; }

.msg-ok {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e; padding: 14px 16px; border-radius: 2px;
  margin-bottom: 20px; font-size: 0.9rem;
}
.msg-err {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 14px 16px; border-radius: 2px;
  margin-bottom: 20px; font-size: 0.9rem;
}

.link { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.link a { color: var(--accent); text-decoration: none; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 2px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(53,255,232,0.12); border: 1px solid rgba(53,255,232,0.35);
  color: var(--accent); margin-left: 8px;
}

/* Tooltip */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.65rem; font-weight: 700;
  cursor: default; position: relative; flex-shrink: 0;
}
.tip:hover::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #1e1e1e; border: 1px solid var(--border);
  color: var(--text); font-size: 0.78rem; font-weight: 400;
  padding: 7px 10px; border-radius: 2px;
  white-space: normal; width: 220px; text-align: center;
  z-index: 10; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.tip:hover::before {
  content: ''; position: absolute; left: 50%; bottom: calc(100% + 1px);
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1e1e1e; z-index: 11;
}

/* Toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 2px; padding: 12px 14px;
}
.toggle-row span { font-size: 0.9rem; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #444;
  border-radius: 24px; cursor: pointer; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Checkbox grid */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; }
.checkbox-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 2px; padding: 10px 12px;
  cursor: pointer; transition: border-color 0.2s;
}
.checkbox-item:hover { border-color: rgba(53,255,232,0.4); }
.checkbox-item input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--accent); flex-shrink: 0; cursor: pointer;
}
.checkbox-item label { font-size: 0.88rem; cursor: pointer; line-height: 1.3; }

.grecaptcha-badge { visibility: hidden; }

@media (max-width: 500px) {
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px 16px; }
}

/* ====== AVALEHT ====== */
.eyebrow { font-family:'Rajdhani',sans-serif; font-weight:600; font-size:0.85rem; letter-spacing:2px; text-transform:uppercase; color:var(--accent); }
.btn-primary, .btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Rajdhani',sans-serif; font-weight:600; font-size:0.95rem; letter-spacing:0.5px; text-transform:uppercase;
  padding:15px 30px; border-radius:2px; text-decoration:none;
}
.btn-primary { background:var(--grad); color:var(--accent-ink); }
.btn-primary:hover { opacity:0.88; }
.btn-ghost { background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background:rgba(255,255,255,0.14); }

.hero { position:relative; min-height:640px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
.hero-bg { position:absolute; inset:0; background-size:cover; background-position:center 42%; z-index:0; }
.hero-overlay { position:absolute; inset:0; z-index:1; background:linear-gradient(to bottom, rgba(0,20,28,0.25) 0%, rgba(0,20,28,0.2) 35%, rgba(0,20,28,0.88) 78%, var(--bg) 100%); }
.hero-content { position:relative; z-index:2; max-width:1100px; width:92%; margin:0 auto; padding:0 0 72px; }
.hero-content h1 { font-size:clamp(2.4rem,4.8vw,4rem); line-height:1.1; letter-spacing:-0.5px; margin-bottom:22px; }
.hero-content h1 em { color:var(--accent); font-style:normal; }
.hero-content p { color:var(--text); max-width:480px; margin-bottom:32px; font-size:1.1rem; line-height:1.6; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width:768px) { .hero { min-height:520px; } }

.stats-bar { background:var(--surface); border-bottom:1px solid var(--border); }
.stats-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.stat-item { text-align:center; padding:44px 20px; border-left:1px solid var(--border); }
.stat-item:first-child { border-left:none; }
.stat-num { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:2.75rem; color:var(--text); font-variant-numeric:tabular-nums; }
.stat-label { font-size:0.84rem; color:var(--muted); margin-top:4px; }
@media (max-width:560px) {
  .stats-inner { grid-template-columns:1fr; }
  .stat-item { border-left:none; border-top:1px solid var(--border); }
  .stat-item:first-child { border-top:none; }
}

.section-block { padding:88px 0; max-width:1100px; margin:0 auto; width:92%; }
.mission-box { background:var(--surface); border:1px solid var(--border); padding:40px 48px; text-align:center; max-width:900px; margin:0 auto; }
.mission-box p { color:var(--text); font-size:1.05rem; line-height:1.85; }
@media (max-width:600px) { .mission-box { padding:28px 24px; } }

.panel { background:var(--bg-panel); padding:48px 0; border-top:1px solid var(--border-panel); border-bottom:1px solid var(--border-panel); }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--border-panel); max-width:1100px; margin:0 auto; width:92%; }
.panel-item { background:var(--bg-panel); padding:30px 26px; }
.panel-item .ic { margin-bottom:14px; }
.panel-item h4 { font-size:1.08rem; margin-bottom:8px; font-family:'Rajdhani',sans-serif; font-weight:700; }
.panel-item p { color:var(--text); font-size:0.92rem; line-height:1.6; }
@media (max-width:768px) { .grid-3 { grid-template-columns:1fr; } }

.section-head { max-width:640px; margin:0 auto 44px; text-align:center; }
.section-head h2 { font-size:2.75rem; margin:10px 0 12px; }
.grid-video { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.v-card { display:block; text-decoration:none; color:var(--text); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:border-color 0.2s; background:var(--bg2); }
.v-card:hover { border-color:rgba(53,255,232,0.4); }
.v-card-thumb { position:relative; aspect-ratio:16/9; overflow:hidden; }
.v-card-thumb img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.v-card-body { padding:14px 16px 18px; }
.v-card-body .tag { font-size:0.7rem; color:var(--accent); letter-spacing:0.4px; text-transform:uppercase; margin-bottom:6px; display:block; }
.v-card-body h4 { font-size:0.92rem; line-height:1.35; font-family:'Rajdhani',sans-serif; font-weight:700; margin-bottom:5px; }
.v-card-body p { font-size:0.8rem; color:var(--muted); line-height:1.5; }
@media (max-width:768px) { .grid-video { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) { .grid-video { grid-template-columns:1fr; } .hero-actions { flex-direction:column; } }
