@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0f0f0f;
  --pure-black: #000000;
  --white: #ffffff;
  --cyan: #00ffff;
  --cobalt: #0007cd;
  --signal-blue: #0089ff;
  --ocean-blue: #0096ff;
  --charcoal: #2c2c2c;
  --ghost-white: rgba(255,255,255,0.6);
  --whisper-white: rgba(255,255,255,0.5);
  --phantom-white: rgba(255,255,255,0.2);
  --border-12: rgba(255,255,255,0.12);
  --border-10: rgba(255,255,255,0.10);
  --border-08: rgba(255,255,255,0.08);
  --border-06: rgba(255,255,255,0.06);
  --border-04: rgba(255,255,255,0.04);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pure-black);
  border-bottom: 1px solid var(--border-06);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.28px;
  white-space: nowrap;
}

.nav__logo span {
  color: var(--cyan);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--ghost-white);
  font-size: 15px;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--white); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--pure-black);
  border-bottom: 1px solid var(--border-08);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  color: var(--ghost-white);
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-04);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: var(--black);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 28px;
}

.hero__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ghost-white);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__image {
  margin-top: 60px;
  border-radius: 4px;
  border: 1px solid var(--border-10);
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.5) 0 8px 32px;
}

.hero__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.85;
}

/* SECTIONS */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-06);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ghost-white);
  max-width: 600px;
  margin-bottom: 48px;
}

/* CARDS GRID */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--pure-black);
  border: 1px solid var(--border-10);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-12); }

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.card:hover .card__image { opacity: 0.95; }

.card__body {
  padding: 24px;
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}

.card__title a:hover { color: var(--ghost-white); }

.card__excerpt {
  font-size: 14px;
  line-height: 1.63;
  color: var(--ghost-white);
  margin-bottom: 20px;
}

.card__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal-blue);
  letter-spacing: -0.28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.card__link:hover { color: var(--cyan); }

/* ARTICLE CARDS (2-col) */
.cards--two { grid-template-columns: repeat(2, 1fr); }

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-08);
  border-radius: 4px;
  overflow: hidden;
}

.feature {
  padding: 32px 28px;
  background: var(--pure-black);
  border-right: 1px solid var(--border-08);
  position: relative;
}

.feature:last-child { border-right: none; }

.feature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
  opacity: 0.3;
}

.feature__num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 400;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.98px;
}

.feature__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 14px;
  line-height: 1.63;
  color: var(--ghost-white);
}

/* ARTICLE PAGE */
.article-hero {
  padding: 60px 0 0;
}

.article-hero__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--whisper-white);
  margin-bottom: 20px;
}

.article-hero__meta span {
  color: var(--cyan);
  margin-right: 12px;
}

.article-hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 20px;
}

.article-hero__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ghost-white);
  max-width: 680px;
  margin-bottom: 40px;
}

.article-hero__image {
  border-radius: 4px;
  border: 1px solid var(--border-10);
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.5) 0 8px 32px;
  margin-bottom: 60px;
}

.article-hero__image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  opacity: 0.85;
}

.article-content {
  padding-bottom: 80px;
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin: 48px 0 16px;
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ghost-white);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ghost-white);
  margin-bottom: 8px;
}

.article-body a {
  color: var(--signal-blue);
  border-bottom: 1px solid rgba(0,137,255,0.3);
  transition: border-color 0.2s;
}

.article-body a:hover { border-color: var(--signal-blue); }

.article-body strong { color: var(--white); font-weight: 500; }

.info-box {
  background: var(--pure-black);
  border: 1px solid var(--border-10);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 32px 0;
}

.info-box__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.info-box p {
  font-size: 14px;
  color: var(--ghost-white);
  line-height: 1.7;
  margin: 0;
}

.article-sidebar {
  position: sticky;
  top: 80px;
  background: var(--pure-black);
  border: 1px solid var(--border-08);
  border-radius: 4px;
  padding: 28px;
}

.article-sidebar__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.article-sidebar ul {
  list-style: none;
  padding: 0;
}

.article-sidebar li {
  border-bottom: 1px solid var(--border-04);
  padding: 12px 0;
}

.article-sidebar li:last-child { border-bottom: none; }

.article-sidebar a {
  font-size: 14px;
  color: var(--ghost-white);
  transition: color 0.2s;
}

.article-sidebar a:hover { color: var(--white); }

.article-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-06);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb__list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper-white);
}

.breadcrumb__list a {
  color: var(--ghost-white);
  transition: color 0.2s;
}

.breadcrumb__list a:hover { color: var(--white); }

.breadcrumb__sep { opacity: 0.3; }

/* CONTACT FORM */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}

.form-desc {
  font-size: 15px;
  color: var(--ghost-white);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
}

.contact-info__value {
  font-size: 14px;
  color: var(--ghost-white);
}

.contact-info__value a {
  color: var(--ghost-white);
  transition: color 0.2s;
}

.contact-info__value a:hover { color: var(--white); }

.form {
  background: var(--pure-black);
  border: 1px solid var(--border-10);
  border-radius: 4px;
  padding: 36px;
  box-shadow: rgba(0,0,0,0.5) 0 8px 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--whisper-white);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-10);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--whisper-white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--signal-blue);
}

.btn-submit {
  width: 100%;
  background: var(--white);
  color: #111;
  border: none;
  border-radius: 4px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.btn-submit:hover { opacity: 0.9; }

/* FOOTER */
.footer {
  background: var(--pure-black);
  border-top: 1px solid var(--border-08);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.28px;
  margin-bottom: 14px;
}

.footer__logo span { color: var(--cyan); }

.footer__about {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ghost-white);
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--ghost-white);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--border-06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper-white);
  letter-spacing: -0.28px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper-white);
  transition: color 0.2s;
}

.footer__legal a:hover { color: var(--white); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pure-black);
  border-top: 1px solid var(--border-10);
  padding: 20px 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner.hidden { display: none; }

.cookie-banner__text {
  font-size: 14px;
  color: var(--ghost-white);
  line-height: 1.6;
  max-width: 720px;
}

.cookie-banner__text a {
  color: var(--signal-blue);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-cookie--accept {
  background: var(--white);
  color: #111;
}

.btn-cookie--reject {
  background: transparent;
  border: 1px solid var(--border-10);
  color: var(--ghost-white);
}

.btn-cookie:hover { opacity: 0.85; }

/* PAGE HERO (about/privacy/terms) */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border-06);
}

.page-hero__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero__desc {
  font-size: 17px;
  color: var(--ghost-white);
  line-height: 1.6;
  max-width: 620px;
}

.page-content {
  padding: 60px 0 80px;
  max-width: 820px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin: 40px 0 14px;
  border-left: 2px solid var(--cyan);
  padding-left: 14px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin: 28px 0 10px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ghost-white);
  margin-bottom: 18px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.page-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ghost-white);
  margin-bottom: 6px;
}

.page-content a {
  color: var(--signal-blue);
}

.updated-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper-white);
  margin-top: -8px;
  margin-bottom: 40px;
}

/* RELATED */
.related { padding: 60px 0; border-top: 1px solid var(--border-06); }

.related__title {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 28px;
}

/* DISCLAIMER */
.disclaimer {
  background: var(--pure-black);
  border: 1px solid var(--border-08);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 40px 0 0;
}

.disclaimer p {
  font-size: 12px;
  color: var(--whisper-white);
  line-height: 1.7;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-bottom: 1px solid var(--border-08); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero { padding: 64px 0 48px; }
  .hero__image img { height: 240px; }
  .cards { grid-template-columns: 1fr; }
  .cards--two { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__about { max-width: 100%; }
  .article-hero__image img { height: 260px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
}
