/* ════════════════════════════════════════════
   VAINO DESIGN — TEST DESIGN SYSTEM
   Shared styles for all index-test.html pages
════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0a2540;
  background: #f4f8fb;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── Tokens ── */
:root {
  --accent:       #AAEE22;
  --accent-dark:  #2a3a10;
  --navy:         #1a2e3a;
  --navy-deep:    #111e28;
  --blue:         #1E9BD7;
  --blue-light:   #E6F1FB;
  --radius:       10px;
  --radius-card:  16px;
  --content:      1120px;
  --shadow-card:  0 8px 24px rgba(10,60,100,0.10), 0 2px 6px rgba(10,60,100,0.06);
}

/* ── Layout ── */
.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 10px 30px rgba(10,37,64,0.22);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; gap: 32px;
}
.brand img { width: 220px; height: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover { color: rgba(255,255,255,0.9); }
.site-nav a.is-active { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  transition: background .18s, border-color .18s;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
}
.nav-toggle span {
  width: 20px; height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s, opacity .18s;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════
   PAGE BANNER (inner pages)
══════════════════════════════ */
.page-banner {
  background: var(--navy-deep);
  position: relative; overflow: hidden;
  padding: 56px 0 52px;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 120% at 80% 50%, rgba(30,155,215,0.15), transparent 65%);
}
.page-banner__inner {
  position: relative; z-index: 1;
}
.page-banner__label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); opacity: .8;
  margin-bottom: 10px;
}
.page-banner h1 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600;
  color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.page-banner__lead {
  font-size: 15px; color: rgba(255,255,255,0.55);
  max-width: 560px; line-height: 1.7;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: var(--accent-dark);
  box-shadow: 0 4px 18px rgba(170,238,34,.3);
}
.btn--primary:hover { box-shadow: 0 6px 24px rgba(170,238,34,.45); }
.btn--outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid #cde8f5;
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline-white:hover { border-color: rgba(255,255,255,0.7); }

/* ══════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════ */
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 600;
  color: #0a2540; line-height: 1.2; margin-bottom: 10px;
}
.section-lead {
  font-size: 15px; color: #4a6a80; line-height: 1.75; max-width: 600px;
}

/* ══════════════════════════════
   CTA BOX
══════════════════════════════ */
.cta-box {
  background: var(--navy-deep);
  border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 32px; padding: 40px 48px;
  position: relative;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cta-box::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(30,155,215,0.14), transparent 60%);
}
.cta-box__text { position: relative; z-index: 1; }
.cta-box__text h2 { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.cta-box__text p { font-size: 14px; color: rgba(255,255,255,0.5); }
.cta-box__actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }

.cta-section { padding: 64px 0; background: #fff; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: var(--navy); padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-footer p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.45);
  transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════
   BACK TO TOP
══════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-dark);
  border: none; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform .15s, opacity .2s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { to { opacity: 1; } }

.reveal {
  opacity: 0; transform: translateY(22px);
}
.reveal.visible { animation: fadeUp .55s ease forwards; }
.reveal-left {
  opacity: 0; transform: translateX(-22px);
}
.reveal-left.visible { animation: fadeLeft .55s ease forwards; }
@keyframes fadeLeft { to { opacity: 1; transform: translateX(0); } }

/* ══════════════════════════════
   TEST BANNER
══════════════════════════════ */
.test-banner {
  position: fixed; bottom: 20px; right: 80px; z-index: 999;
  background: #ffcc00; color: #222;
  font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  letter-spacing: .04em; pointer-events: none;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 80px; right: 20px;
    width: min(300px, calc(100% - 40px));
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(17,30,40,0.98);
    box-shadow: 0 18px 48px rgba(0,0,0,0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 24px));
    transition: transform .24s ease, opacity .2s ease;
  }
  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .site-nav a {
    padding: 13px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links { gap: 12px 18px; }
  .cta-box { grid-template-columns: 1fr; padding: 32px 24px; }
}
