:root {
  --bg:          #0d1b2a;
  --bg-card:     #101f30;
  --text:        #fce7c1;
  --text-muted:  #b8a68a;
  --accent:      #a64c17;
  --accent-h:    #c75c2d;
  --accent-soft: rgba(166, 76, 23, 0.12);
  --cream:       #fce7c1;
  --border:      rgba(252, 231, 193, 0.08);
  --border-h:    rgba(166, 76, 23, 0.35);
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }

/* Atmospheric background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(166, 76, 23, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 85%, rgba(166, 76, 23, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
header, main, footer { position: relative; z-index: 1; }

/* NAV */
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 22px 40px;
  gap: 32px;
}
nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
nav a:hover { color: var(--cream); }
.lang-toggle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover { color: var(--cream); border-color: var(--border-h); }

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 80px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.logo-wrap {
  position: relative;
  margin-bottom: 8px;
  animation: fadeUp 0.7s ease both;
}
.logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 160px;
  background: radial-gradient(ellipse, rgba(166, 76, 23, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.logo-wrap img {
  width: min(340px, 85vw);
  display: block;
  position: relative;
}
.tagline {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-h);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.divider {
  width: 32px; height: 2px;
  background: var(--accent);
  margin: 0 auto 24px;
  border-radius: 2px;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-desc strong { color: var(--cream); font-weight: 600; }

/* SECTION */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  width: 100%;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.7s 0.25s ease both;
}
.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* FRAMEWORK CARD */
.framework-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: border-color 0.25s ease, transform 0.2s ease;
  animation: fadeUp 0.7s 0.3s ease both;
}
.framework-card:hover { border-color: var(--border-h); transform: translateY(-2px); }

.card-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.card-name {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.badge-opensource { color: #7ecb91; border-color: rgba(126,203,145,0.3); background: rgba(126,203,145,0.08); }
.badge-v1         { color: var(--accent-h); border-color: rgba(199,92,45,0.3); background: rgba(199,92,45,0.08); }

.card-tagline { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.card-tagline strong { color: var(--cream); font-weight: 600; }
.inline-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream);
  background: rgba(252,231,193,0.08);
  padding: 1px 6px;
  border-radius: 3px;
}

.card-insight {
  display: flex;
  gap: 10px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
.card-insight-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.card-snippet {
  background: rgba(8,19,31,0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}
.snippet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
}
.snippet-lang { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; }
.snippet-copy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.snippet-copy:hover { color: var(--cream); }
.card-snippet pre {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a8c4d8;
  padding: 14px 18px;
  overflow-x: auto;
  line-height: 1.75;
  margin: 0;
}
.kw  { color: #c792ea; }
.cl  { color: #82aaff; }
.nm  { color: #f78c6c; }
.cm  { color: #546e7a; font-style: italic; }

/* CARD RIGHT */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2px;
}
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn-github:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-github svg { width: 16px; height: 16px; fill: var(--cream); flex-shrink: 0; }

.card-meta { font-size: 12px; color: var(--text-muted); text-align: right; line-height: 1.6; }
.card-meta span { display: block; }

/* FUTURE */
.future-section { display: none; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.04em; }
.footer-socials { display: flex; align-items: center; gap: 4px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: border-color 0.25s ease, transform 0.2s ease, background 0.25s ease;
}
.social-link:hover { border-color: var(--border-h); background: var(--accent-soft); transform: translateY(-2px); }
.social-link svg { width: 15px; height: 15px; fill: var(--text-muted); transition: fill 0.25s ease; }
.social-link:hover svg { fill: var(--accent-h); }

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

/* RESPONSIVE */
@media (max-width: 680px) {
  nav { padding: 18px 20px; gap: 20px; }
  .hero { padding: 10px 20px 48px; }

  .section { padding: 24px 16px 48px; }

  .framework-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  .card-top { flex-wrap: wrap; gap: 8px; }
  .card-name { font-size: 15px; word-break: break-all; }
  .badge { font-size: 10px; white-space: nowrap; }

  .card-tagline { font-size: 14px; }
  .card-insight-text { font-size: 12px; }

  .card-snippet { min-width: 0; }
  .card-snippet pre {
    font-size: 11px;
    padding: 12px 14px;
    overflow-x: auto;
    white-space: pre;
  }

  .card-right {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .btn-github { font-size: 14px; padding: 10px 16px; }
  .card-meta { text-align: left; }

  footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}
