@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 {
  --void: #0f0f0f;
  --black: #000000;
  --white: #ffffff;
  --cyan: #00ffff;
  --cobalt: #0007cd;
  --signal: #0089ff;
  --ocean: #0096ff;
  --charcoal: #2c2c2c;
  --ghost: rgba(255,255,255,0.6);
  --whisper: rgba(255,255,255,0.5);
  --phantom: rgba(255,255,255,0.2);
  --mist12: rgba(255,255,255,0.12);
  --mist10: rgba(255,255,255,0.10);
  --mist08: rgba(255,255,255,0.08);
  --mist06: rgba(255,255,255,0.06);
  --mist04: rgba(255,255,255,0.04);
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  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 { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--ghost);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-contact {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid var(--signal);
  padding: 7px 18px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-contact:hover { background: rgba(0,137,255,0.1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--black);
  border-top: 1px solid var(--mist08);
  padding: 16px 24px;
  gap: 12px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--ghost); padding: 8px 0; border-bottom: 1px solid var(--mist04); }
.mobile-menu a:last-child { border-bottom: none; }

/* HERO */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(0,255,255,0.05) 0%, transparent 70%);
}

.hero-overline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  padding: 5px 12px;
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -1px;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--ghost);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* SECTION */
.section { padding: 80px 0; }
.section-alt { background: var(--black); }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--ghost);
  max-width: 600px;
  line-height: 1.6;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.card {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--mist12); box-shadow: 4px 4px 0 rgba(0,0,0,0.15); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.8);
}

.card-body { padding: 24px; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  margin-bottom: 10px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}

.card-excerpt {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  border-bottom: 1px solid rgba(0,137,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.card-link:hover { color: var(--white); border-color: var(--white); }

/* ARTICLE LAYOUT */
.article-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--mist08);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--whisper);
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a { color: var(--ghost); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: var(--mist12); }

.article-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-intro {
  font-size: 18px;
  color: var(--ghost);
  max-width: 720px;
  line-height: 1.7;
}

.article-img-hero {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--mist08);
  margin-top: 40px;
  filter: brightness(0.8) saturate(0.75);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 60px 0;
  align-items: start;
}

.article-content 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-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 16px 20px;
  color: var(--ghost);
  font-size: 16px;
  line-height: 1.75;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--white); font-weight: 500; }

.article-content a {
  color: var(--signal);
  border-bottom: 1px solid rgba(0,137,255,0.3);
  transition: color 0.2s;
}

.article-content a:hover { color: var(--white); }

.article-content .note {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--ghost);
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-box h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--cyan);
  margin-bottom: 16px;
}

.sidebar-box ul { list-style: none; }
.sidebar-box li { border-bottom: 1px solid var(--mist04); padding: 8px 0; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { font-size: 14px; color: var(--ghost); transition: color 0.2s; }
.sidebar-box a:hover { color: var(--white); }

/* TIPS SECTION */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.tip-card {
  background: var(--black);
  border: 1px solid var(--mist08);
  border-radius: 4px;
  padding: 28px;
}

.tip-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 400;
  color: rgba(0,255,255,0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.tip-card h3 { font-size: 18px; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.tip-card p { font-size: 14px; color: var(--ghost); line-height: 1.6; }

/* CONTACT FORM */
.contact-section {
  padding: 80px 0;
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p { font-size: 16px; color: var(--ghost); line-height: 1.7; margin-bottom: 24px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-detail span {
  font-size: 14px;
  color: var(--ghost);
}

.contact-detail strong { color: var(--white); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--whisper);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: var(--font-mono);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--white);
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--whisper); }

.form-field input:focus,
.form-field textarea:focus { border-color: var(--signal); }

.form-field textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--white);
  color: #111;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.btn-submit:hover { opacity: 0.88; }

/* FOOTER */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--mist08);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--whisper);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ghost); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--mist06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--whisper); }
.footer-bottom a { color: var(--ghost); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 680px;
  background: var(--black);
  border: 1px solid var(--mist12);
  border-radius: 4px;
  padding: 24px 28px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: none;
}

.cookie-banner p { font-size: 14px; color: var(--ghost); line-height: 1.6; margin-bottom: 16px; }
.cookie-banner a { color: var(--signal); }

.cookie-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-cookie-accept {
  background: var(--white);
  color: #111;
  border: none;
  border-radius: 4px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-cookie-accept:hover { opacity: 0.88; }

.btn-cookie-reject {
  background: transparent;
  color: var(--ghost);
  border: 1px solid var(--charcoal);
  border-radius: 4px;
  padding: 9px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-cookie-reject:hover { border-color: var(--mist12); color: var(--white); }

/* PAGES */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--mist08);
}

.page-h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
}

.page-content {
  padding: 60px 0;
  max-width: 800px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin: 40px 0 12px;
}

.page-content p { font-size: 16px; color: var(--ghost); line-height: 1.75; margin-bottom: 14px; }
.page-content ul { margin: 12px 0 12px 20px; color: var(--ghost); font-size: 16px; line-height: 1.75; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--signal); }
.page-content strong { color: var(--white); font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-contact { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 70px 0 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; }
}
