/* static/css/evarion.css */

/* -------------------- Design tokens -------------------- */
:root{
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F5;
  --border: #D9E0EA;

  --text: #1E2430;
  --text-2: #4A5568;
  --muted: #8A94A6;

  /* Brand accent */
  --accent: #4FB6B1;
  --accent-2: #6ECFC8;
  --accent-3: #379A96;

  /* Secondary accents (use sparingly) */
  --violet: #8F8AE8;
  --green: #9ED3A6;
  --sand: #F0C987;
  --blue: #9BB7E0;

  --shadow: 0 10px 30px rgba(30, 36, 48, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body.evarion{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  background: rgba(246,247,249,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217,224,234,0.7);
  z-index: 20;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--text);
}
.brand__text{
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand__mark{
  position: relative;
  width: 28px;
  height: 28px;
}
.dot{
  position:absolute;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.9;
}
.dot--center{
  width: 9px; height: 9px;
  left: 10px; top: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(55,154,150,0.20);
}
/* Asymmetric — avoid target look */
.dot--a{ left: 2px;  top: 7px;  background: var(--violet); opacity: .75; }
.dot--b{ left: 20px; top: 4px;  background: var(--blue);   opacity: .75; }
.dot--c{ left: 22px; top: 20px; background: var(--green);  opacity: .75; }
.dot--d{ left: 5px;  top: 22px; background: var(--sand);   opacity: .75; }

.nav{
  display:flex;
  align-items:center;
  gap: 12px;
}
.nav__link{
  text-decoration:none;
  color: var(--text-2);
  padding: 10px 10px;
  border-radius: 10px;
}
.nav__link:hover{ background: var(--surface-2); color: var(--text); }

.nav__button{
  text-decoration:none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(30,36,48,0.06);
}
.nav__button:hover{ border-color: rgba(79,182,177,0.55); }

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

.pill{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79,182,177,0.12);
  color: var(--accent-3);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: 12px;
}
.h1{
  margin: 12px 0 8px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead{
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text-2);
}

.actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
}
.btn--primary{
  background: var(--accent);
  border-color: rgba(55,154,150,0.35);
  color: #0A1A19;
}
.btn--primary:hover{ background: var(--accent-2); }
.btn--ghost:hover{ background: var(--surface-2); }

.note{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
}
.note__dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(79,182,177,0.25);
  border: 1px solid rgba(79,182,177,0.45);
}

/* Hero visual: Perception Field */
.hero__visual{
  display:flex;
  align-items:center;
  justify-content:center;
}
.field{
  position: relative;
  width: 240px;
  height: 240px;
}
.field__dot{
  position:absolute;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(138,148,166,0.55);
}
.field__dot--center{
  width: 18px; height: 18px;
  left: 111px; top: 111px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(79,182,177,0.16);
}

/* Asymmetric ring — avoids “target” */
.field__dot--1 { left: 42px;  top: 62px;  background: rgba(143,138,232,0.70); }
.field__dot--2 { left: 170px; top: 44px;  background: rgba(155,183,224,0.75); width: 9px; height: 9px; }
.field__dot--3 { left: 198px; top: 112px; background: rgba(158,211,166,0.75); width: 11px; height: 11px; }
.field__dot--4 { left: 166px; top: 190px; background: rgba(240,201,135,0.75); }
.field__dot--5 { left: 70px;  top: 202px; background: rgba(155,183,224,0.55); width: 8px; height: 8px; }
.field__dot--6 { left: 26px;  top: 152px; background: rgba(158,211,166,0.55); width: 9px; height: 9px; }
.field__dot--7 { left: 92px;  top: 28px;  background: rgba(240,201,135,0.55); width: 8px; height: 8px; }
.field__dot--8 { left: 214px; top: 70px;  background: rgba(143,138,232,0.50); width: 7px; height: 7px; }
.field__dot--9 { left: 140px; top: 214px; background: rgba(143,138,232,0.55); width: 9px; height: 9px; }
.field__dot--10{ left: 18px;  top: 98px;  background: rgba(240,201,135,0.55); width: 7px; height: 7px; }

/* Cards & grid */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(30,36,48,0.06);
  padding: 18px;
}
.card__title{ font-weight: 700; margin-bottom: 8px; }
.card__desc{ color: var(--text-2); line-height: 1.5; }

.page{ padding: 6px; }
.page__header{ display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.h2{ font-size: 28px; margin: 10px 0 6px; letter-spacing: -0.01em; }
.text{ color: var(--text-2); line-height: 1.6; margin: 0 0 12px; }
.muted{ color: var(--muted); }

.list{ margin: 0; padding-left: 18px; color: var(--text-2); }

/* Bars */
.bars{ display:flex; flex-direction:column; gap: 14px; margin-top: 8px; }
.bar__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 8px; }
.bar__label{ color: var(--text); font-weight: 600; }
.bar__value{ color: var(--muted); font-weight: 600; }
.bar__track{
  height: 10px;
  background: var(--surface-2);
  border: 1px solid rgba(217,224,234,0.8);
  border-radius: 999px;
  overflow:hidden;
}
.bar__fill{
  height: 100%;
  background: linear-gradient(90deg, rgba(79,182,177,0.55), rgba(79,182,177,1));
  border-radius: 999px;
}

/* Flash */
.flash{
  margin: 14px 0;
  background: rgba(240,201,135,0.25);
  border: 1px solid rgba(240,201,135,0.45);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
}

/* Footer */
.footer{
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(217,224,234,0.8);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
}
.footer__brand{ font-weight: 800; letter-spacing: 0.08em; }
.footer__tagline{ color: var(--muted); margin-top: 6px; }
.footer__link{ color: var(--text-2); text-decoration:none; }
.footer__link:hover{ text-decoration: underline; }
.footer__sep{ color: var(--muted); padding: 0 8px; }
