/* InHive VPN shared styles — aligned with app dark theme (app_tokens.dart AppColors) */
:root {
  --bg: #121212;             /* AppColors.darkBg */
  --surface: #1E1E1E;        /* AppColors.darkSurface */
  --surface-high: #2A2A2A;   /* AppColors.darkSurfaceHigh */
  --border: #333333;         /* AppColors.darkSurfaceBorder */
  --gold: #F2B454;           /* AppColors.gold — softer than club honey */
  --gold-dim: rgba(242, 180, 84, 0.2);
  --text: rgba(255, 255, 255, 0.87);   /* 0.87 opacity — AppColors.textPrimary */
  --muted: rgba(255, 255, 255, 0.60);  /* 0.60 — AppColors.textSecondary */
  --disabled: rgba(255, 255, 255, 0.38);
}

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'tnum' 1;  /* tabular figures — как в app */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--gold);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 4px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul {
  padding-left: 24px;
}

li {
  margin: 4px 0;
}

code {
  background: var(--surface-high);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #1a0800;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 8px 8px 8px 0;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:hover { opacity: 0.9; text-decoration: none; }
.btn:active { transform: scale(0.98); }

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

.btn.secondary:hover { background: var(--surface); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.feature {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--gold);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Language switch */
.lang-switch {
  margin-bottom: 24px;
}

.lang-switch a {
  color: var(--muted);
  margin-right: 12px;
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
}

.lang-switch a.active {
  color: var(--gold);
  border-color: var(--gold);
}

.lang-switch a:hover { text-decoration: none; }

/* Warn box (for Terms "as-is" disclaimer) */
.warn {
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: rgba(242, 180, 84, 0.06);
  margin: 16px 0;
}

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
  margin-right: 16px;
}

/* Language section visibility */
.section-ru, .section-en { display: none; }
.section-en.active, .section-ru.active { display: block; }

/* Subtle honey glow on pages (like the app's ambient atmosphere) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%,
    rgba(242, 180, 84, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
