/* ============================================================
   AvaROBOT — shared app design system
   Kode Mono: headings, nav, badges, numeric/data readouts
   Hasköy: body copy (shared with Marmarotay + Avar hub)
   ============================================================ */
@font-face {
  font-family: 'Haskoy';
  src: url('../../marmarotay/assets/fonts/Haskoy-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --panel: #0d0e10;
  --panel-soft: #131417;
  --ink: #f2f2f2;
  --ink-body: rgba(255,255,255,0.72);
  --ink-muted: rgba(255,255,255,0.5);
  --accent: #2c69db;
  --accent-hover: #2458bd;
  --accent-soft: rgba(44,105,219,0.14);
  --accent-border: rgba(44,105,219,0.4);
  --line: rgba(255,255,255,0.1);
  --line-strong: rgba(255,255,255,0.18);
  --ok: #4fd189;
  --ok-soft: rgba(79,209,137,0.12);
  --warn: #e0b84f;
  --warn-soft: rgba(224,184,79,0.12);
  --danger: #e0566c;
  --danger-soft: rgba(224,86,108,0.12);
  --shadow: 0 20px 44px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Haskoy', 'Segoe UI', sans-serif;
}

a { color: inherit; }

h1, h2, h3, .logo, .nav-link, .nav-btn, .badge, .kicker, .countdown,
.table th, .btn, .social, .meta-pill {
  font-family: "Kode Mono", "Consolas", monospace;
}

.navbar {
  position: sticky; top: 0; z-index: 30; height: 66px;
  background: rgba(0,0,0,0.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em; }
.logo-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); display: inline-block; }

.nav-links { display: inline-flex; align-items: center; gap: 4px; }
.nav-link {
  text-decoration: none; color: var(--ink-muted); font-size: 0.82rem;
  padding: 8px 12px; border: 1px solid transparent; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.nav-link:hover, .nav-link.active { background: var(--accent-soft); border-color: var(--accent-border); color: #fff; }

.nav-btn {
  position: relative; overflow: hidden; isolation: isolate;
  text-decoration: none; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); padding: 9px 16px; font-size: 0.8rem; font-weight: 700;
  transition: color .28s ease .02s;
}
.nav-btn::before {
  content: ''; position: absolute; left: var(--fx,50%); top: var(--fy,50%); width: 0; height: 0;
  border-radius: 50%; background: #fff; transform: translate(-50%,-50%);
  transition: width .4s cubic-bezier(.4,0,.2,1), height .4s cubic-bezier(.4,0,.2,1); z-index: -1;
}
.nav-btn:hover::before { width: 220px; height: 220px; }
.nav-btn:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .nav-btn::before { transition: none !important; } }

.page-shell { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.005em; font-weight: 700; }
.page-head p { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-body); max-width: 780px; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.card { background: var(--panel); border: 1px solid var(--line); padding: 20px; }
.card-soft { background: var(--panel-soft); }
.card h2, .card h3 { margin: 0; }
.card h2 { font-size: 1.1rem; }
.card h3 { font-size: 0.98rem; }
.sub { margin-top: 8px; font-size: 0.86rem; color: var(--ink-body); line-height: 1.55; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border: 1px solid transparent; height: 42px; padding: 0 16px;
  font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.btn::before {
  content: ''; position: absolute; left: var(--fx,50%); top: var(--fy,50%); width: 0; height: 0;
  border-radius: 50%; transform: translate(-50%,-50%); z-index: -1;
  transition: width .4s cubic-bezier(.4,0,.2,1), height .4s cubic-bezier(.4,0,.2,1);
}
.btn:hover::before { width: 220px; height: 220px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); transition: color .28s ease .02s; }
.btn-primary::before { background: #fff; }
.btn-primary:hover { color: var(--accent); }
.btn-soft { background: transparent; border-color: var(--line-strong); color: var(--ink); transition: color .28s ease .02s; }
.btn-soft::before { background: var(--accent); }
.btn-soft:hover { color: #fff; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn::before, .nav-btn::before { transition: none !important; } }

.illustration { width: 100%; max-width: 340px; height: auto; object-fit: contain; opacity: 0.92; }
.inline-ill { width: 80px; height: 80px; object-fit: contain; background: var(--panel-soft); padding: 6px; border: 1px solid var(--line); }

.kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.list { margin: 10px 0 0; padding: 0; list-style: none; }
.list li {
  border-top: 1px dashed var(--line); padding: 12px 0; font-size: 0.86rem; color: var(--ink-body);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.list li:first-child { border-top: none; padding-top: 0; }

.badge { padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(79,209,137,0.3); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(224,184,79,0.3); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(224,86,108,0.3); }

.deadline { background: var(--panel); border-color: var(--accent-border); position: relative; overflow: hidden; }
.deadline::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 60%); pointer-events: none; }
.deadline > * { position: relative; z-index: 1; }
.deadline .sub { color: var(--ink-body); }
.countdown { margin-top: 16px; font-size: 1.05rem; letter-spacing: 0.01em; color: #fff; font-weight: 700; }

.meta-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill { background: var(--accent-soft); border: 1px solid var(--accent-border); color: #9cb0ff; font-size: 0.7rem; font-weight: 700; padding: 5px 10px; }

.feature-card { display: flex; gap: 12px; align-items: flex-start; }
.feature-card p { margin: 6px 0 0; font-size: 0.84rem; color: var(--ink-body); line-height: 1.5; }

.robot-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.robot-item { border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.robot-item:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.robot-item img { width: 100%; height: 160px; object-fit: cover; background: var(--panel-soft); filter: saturate(0.9); }
.robot-body { padding: 12px; }
.robot-body h3 { font-size: 0.94rem; }
.robot-body p { margin: 6px 0 0; font-size: 0.8rem; color: var(--ink-muted); }

.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); font-size: 0.84rem; }
.table th { font-size: 0.7rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; border-top: none; padding-top: 0; }

.split { display: flex; gap: 10px; flex-wrap: wrap; }

.social {
  width: 34px; height: 34px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.social:hover { background: var(--accent-hover); transform: translateY(-2px); }

.footer-note { margin-top: 22px; color: var(--ink-muted); font-size: 0.76rem; text-align: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .robot-grid { grid-template-columns: 1fr; }
  .nav-wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 700px) {
  .page-head h1 { font-size: 1.36rem; }
  .page-head p { font-size: 0.86rem; }
  .card { padding: 15px; }
  .countdown { font-size: 0.9rem; }
}
