/* Minea — shared landing page styles */

:root {
  --bg: #0a0a0f;
  --bg-1: #0f0f1a;
  --bg-2: #13131f;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(99,102,241,0.35);
  --text: #e4e4f0;
  --text-muted: #7a7a9a;
  --text-dim: #4a4a6a;
  --accent: #6366f1;
  --accent-dim: rgba(99,102,241,0.15);
  --accent-hover: #818cf8;
  --green: #22d3a0;
  --yellow: #f59e0b;
  --red: #f87171;
  --blue: #38bdf8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 32px rgba(0,0,0,0.6);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ── Layout ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section:first-of-type { padding-top: 0; }

/* ── Navigation ─────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switch a {
  padding: 4px 10px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.lang-switch a.active,
.lang-switch a:hover { background: var(--accent-dim); color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px !important;
  border-radius: 7px !important;
  font-weight: 500;
  transition: background 0.2s, opacity 0.2s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* ── Console Mockup ─────────────────────────────────────── */

.mockup-wrap {
  margin-top: 72px;
  position: relative;
}

.mockup-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(99,102,241,0.08);
  max-width: 880px;
  margin: 0 auto;
}

.mockup-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.mockup-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) { .mockup-body { grid-template-columns: 1fr; } }

.mock-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-card-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-running { background: rgba(34,211,160,0.12); color: var(--green); }
.status-done    { background: rgba(99,102,241,0.12); color: var(--accent-hover); }
.status-waiting { background: rgba(122,122,154,0.1); color: var(--text-dim); }
.status-private { background: rgba(245,158,11,0.12); color: var(--yellow); }

.mock-project-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.mock-project-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.agent-list { display: flex; flex-direction: column; gap: 8px; }

.agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.agent-name { color: var(--text-muted); }

.cost-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cost-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

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

.provider-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── Section headers ────────────────────────────────────── */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Feature cards ──────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Workflow timeline ──────────────────────────────────── */

.workflow {
  margin-top: 48px;
  position: relative;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  position: relative;
}

.step-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-hover);
  flex-shrink: 0;
  z-index: 1;
}

.step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
  min-height: 24px;
}

.workflow-step:last-child .step-line { display: none; }

.step-content {
  padding: 4px 0 32px;
}

.step-content h3 {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Two-column split ───────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
}

/* ── Visibility panel ───────────────────────────────────── */

.vis-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 0.82rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.vis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.vis-row:last-child { border-bottom: none; }
.vis-row .key { color: var(--text-dim); }
.vis-row .val-green { color: var(--green); }
.vis-row .val-yellow { color: var(--yellow); }
.vis-row .val-blue { color: var(--blue); }
.vis-row .val { color: var(--text); }

/* ── Early access / CTA section ─────────────────────────── */

.cta-section {
  text-align: center;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section .section-sub { margin: 0 auto 36px; }

/* ── Footer ─────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Language suggestion banner ──────────────────────────── */

#lang-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  z-index: 200;
  font-size: 0.88rem;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  flex-wrap: wrap;
  justify-content: center;
}

#lang-banner.hidden { display: none; }

#lang-banner .banner-text { color: var(--text-muted); }

.banner-actions { display: flex; gap: 8px; }

.banner-btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.banner-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.banner-btn:hover { opacity: 0.85; }

/* ── Misc utilities ─────────────────────────────────────── */

.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

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

/* ── Legal pages ─────────────────────────────────────────── */

.legal-page {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 24px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  margin: 32px 0 8px;
}

.legal-page p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page a { color: var(--accent); }
.legal-page a:hover { color: var(--accent-hover); }

.legal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links { display: none; }

  .hero { padding: 80px 0 64px; }

  .cta-group { flex-direction: column; align-items: center; }

  .cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .mockup-body { padding: 16px; }
  #lang-banner { white-space: normal; text-align: center; }
}

/* ── Focus / accessibility ──────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible { outline-offset: 4px; }
