@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --sun: #FFD93D;
  --amber: #FF9F1C;
  --coral: #FF6B6B;
  --deep: #0D0D0D;
  --mid: #111827;
  --card: #16213E;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,217,61,0.14);
  --border-subtle: rgba(255,255,255,0.07);
  --text: #F0F0F0;
  --muted: #7A8FA6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .35;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw;
  backdrop-filter: blur(18px);
  background: rgba(13,13,13,0.72);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1rem;
  background: linear-gradient(90deg, var(--sun), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 1.8rem; align-items: center; }

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .83rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--sun); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.3rem; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: .82rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--amber));
  color: var(--deep);
  box-shadow: 0 4px 18px rgba(255,159,28,.3);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(255,159,28,.45); }

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); }

.btn-danger {
  background: rgba(255,107,107,.12);
  color: #ff8f8f;
  border: 1px solid rgba(255,107,107,.2);
}
.btn-danger:hover { background: rgba(255,107,107,.2); }

/* ── PAGE WRAPPER ── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 7rem 6vw 5rem;
  position: relative; z-index: 1;
}

/* ── HERO BLOCK ── */
.page-hero {
  margin-bottom: 3rem;
}

.page-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,217,61,.09);
  border: 1px solid rgba(255,217,61,.22);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .72rem; font-weight: 600;
  color: var(--sun); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: fadeUp .5s ease both;
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  animation: fadeUp .55s .05s ease both;
}

.page-title .grad {
  background: linear-gradient(90deg, var(--sun) 20%, var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.page-lead {
  font-size: 1.05rem; color: var(--muted); line-height: 1.75;
  max-width: 620px;
  animation: fadeUp .6s .1s ease both;
}

/* ── CONTENT CARD ── */
.content-card {
  background: #111827;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.2rem 2.5rem;
  margin-bottom: 1.4rem;
  position: relative; overflow: hidden;
  animation: fadeUp .6s .15s ease both;
}

.content-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,217,61,.3), transparent);
}

.content-card h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.1rem; margin-bottom: 1rem;
  color: var(--text);
}

.content-card p {
  color: var(--muted); line-height: 1.8; font-size: .95rem;
  margin-bottom: .85rem;
}
.content-card p:last-child { margin-bottom: 0; }

.content-card ol, .content-card ul {
  color: var(--muted); line-height: 1.85; font-size: .95rem;
  padding-left: 1.4rem;
}

.content-card li { margin-bottom: .4rem; }
.content-card li strong { color: var(--text); font-weight: 600; }

.content-card code {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border-subtle);
  padding: .15rem .45rem; border-radius: 6px;
  font-size: .85em; color: var(--sun);
  font-family: 'Courier New', monospace;
}

/* ── CTA ROW ── */
.cta-row {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 2rem;
  animation: fadeUp .65s .2s ease both;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 6vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .78rem; color: var(--muted);
  position: relative; z-index: 1;
}

.footer-logo {
  font-family: 'Syne', sans-serif; font-weight: 700;
  background: linear-gradient(90deg, var(--sun), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--sun); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .content-card { padding: 1.5rem; }
}

/* ── LANG SWITCHER ── */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .75rem;
  text-decoration: none; letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: rgba(255,217,61,.15);
  color: var(--sun);
  border: 1px solid rgba(255,217,61,.25);
}

@media (max-width: 640px) {
  .lang-switcher { display: none; }
}

/* ── FOOTER SUPPORT ── */
.footer-support {
  width: 100%;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  padding-top: .5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: .5rem;
}

.footer-support a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color .2s;
}
.footer-support a:hover { color: var(--sun); }
