@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&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0d0f14;
  --bg2: #12151c;
  --bg3: #1a1e28;
  --accent: #00e5a0;
  --accent2: #5b6af0;
  --text: #e8eaf0;
  --text-muted: #8a8fa8;
  --border: #252a38;
  --card-bg: #161b26;
  --radius: 12px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .4s ease;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 52px; height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.15rem;
  color: #fff; letter-spacing: -.5px;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.logo span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-muted); padding: 6px 14px; border-radius: 6px;
  transition: background .2s, color .2s;
}
nav a:hover, nav a.active { background: var(--bg3); color: var(--text); }

.burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 4px; z-index: 899;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1rem; color: var(--text-muted); padding: 10px 12px; border-radius: 6px; }
.mobile-nav a:hover { background: var(--bg3); color: var(--text); }

/* ── HERO ── */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: .75rem; color: var(--accent);
  background: rgba(0,229,160,.08); border: 1px solid rgba(0,229,160,.2);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 480px; margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #05150f;
  font-weight: 700; font-size: .9rem;
  padding: 13px 28px; border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { color: #05150f; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,160,.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); color: var(--text);
  font-weight: 500; font-size: .9rem;
  padding: 12px 24px; border-radius: var(--radius);
  transition: border-color .2s, background .2s;
  margin-left: 12px;
}
.btn-outline:hover { color: #fff; border-color: var(--accent); background: rgba(0,229,160,.06); }
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  border-radius: 16px;
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
  height: 400px;
}
.hero-img-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--card-bg); border: 1px solid var(--border);
  padding: 14px 20px; border-radius: var(--radius);
  font-family: 'Space Mono', monospace; font-size: .75rem;
}
.hero-img-badge strong { display: block; color: var(--accent); font-size: 1.4rem; font-family: 'Syne', sans-serif; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  font-family: 'Space Mono', monospace; font-size: .7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block;
}
.section-header h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 12px auto 0; }

/* ── STATS STRIP ── */
.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent);
  display: block; line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* ── CARDS ── */
.articles-section { padding: 100px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card-img {
  width: 100%; height: 200px; object-fit: cover;
}
.card-body { padding: 24px; }
.card-tag {
  font-family: 'Space Mono', monospace; font-size: .65rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 10px;
}
.card-body h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.card-body p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--accent);
}
.card-link::after { content: '→'; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ── ABOUT SPLIT ── */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { border-radius: 16px; border: 1px solid var(--border); width: 100%; height: 420px; object-fit: cover; }
.about-text h2 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { list-style: none; margin: 24px 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--text-muted);
}
.about-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── TECH SECTION ── */
.tech-section { padding: 80px 0; background: var(--bg2); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.tech-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start;
}
.tech-card img { border-radius: 8px; width: 80px; height: 80px; object-fit: cover; }
.tech-card h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.tech-card p { font-size: .85rem; color: var(--text-muted); }

/* ── ARTICLE PAGE ── */
.page-hero { padding: 140px 0 60px; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.page-hero .lead { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; }
.page-meta { display: flex; gap: 20px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.page-meta span { font-size: .8rem; color: var(--text-muted); font-family: 'Space Mono', monospace; }
.page-meta .tag { background: rgba(0,229,160,.1); color: var(--accent); border: 1px solid rgba(0,229,160,.2); padding: 3px 10px; border-radius: 100px; }
.article-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); margin: 40px 0; }
.article-body { max-width: 780px; }
.article-body h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; margin: 40px 0 14px; }
.article-body h3 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 28px 0 10px; }
.article-body p { color: var(--text-muted); margin-bottom: 16px; }
.article-body ul { margin: 16px 0 16px 20px; }
.article-body ul li { color: var(--text-muted); margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; padding-bottom: 100px; }
.sidebar { padding-top: 40px; }
.sidebar-widget { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar-widget h4 { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.sidebar-link { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--text-muted); }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--accent); }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 100px; }
.contact-info h2 { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { width: 40px; height: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.contact-item h5 { font-size: .8rem; color: var(--text-muted); margin-bottom: 3px; }
.contact-item p { font-size: .95rem; color: var(--text); margin: 0; }
.contact-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-box p { color: var(--text-muted); font-size: .9rem; }

/* ── ABOUT PAGE ── */
.about-page-section { padding: 60px 0 100px; }
.team-note { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 40px; }
.team-note h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #fff; margin-bottom: 10px; }
.team-note p { color: var(--text-muted); font-size: .9rem; }

/* ── POLICY PAGE ── */
.policy-section { padding: 60px 0 100px; max-width: 800px; }
.policy-section h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; margin: 32px 0 10px; }
.policy-section p { color: var(--text-muted); margin-bottom: 14px; }
.policy-section ul { margin: 12px 0 16px 20px; }
.policy-section ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: .875rem; margin-top: 12px; max-width: 260px; line-height: 1.6; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 720px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  z-index: 9998; box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
#cookie-banner p { flex: 1; font-size: .85rem; color: var(--text-muted); min-width: 200px; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent); color: #05150f; font-weight: 700; font-size: .8rem;
  padding: 9px 20px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-cookie-reject {
  background: transparent; color: var(--text-muted); font-size: .8rem;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer; transition: border-color .2s;
}
.btn-cookie-reject:hover { border-color: var(--text-muted); color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { display: none; }
  .burger { display: flex; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 2fr 2fr; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tech-card { grid-template-columns: 1fr; }
}
