@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--body);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 24px;
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-badge {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-image {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 480px;
  object-fit: cover;
  width: 100%;
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 48px;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}

.article-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
  margin-bottom: 20px;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  display: inline-block;
  transition: border-color 0.15s;
}

.article-card-link:hover {
  border-color: var(--ink);
}

/* Article Page */
.article-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-header .hero-badge {
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.72px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.article-body {
  padding: 64px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 8px;
}

.article-content .article-image {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
  object-fit: cover;
}

.article-content figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 32px;
}

.article-content .info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.article-content .info-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content .step-list {
  list-style: none;
  padding-left: 0;
  counter-reset: steps;
}

.article-content .step-list li {
  counter-increment: steps;
  padding-left: 36px;
  position: relative;
  margin-bottom: 16px;
}

.article-content .step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-card li:last-child {
  border-bottom: none;
}

.sidebar-card a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 10px 0;
  transition: color 0.15s;
}

.sidebar-card a:hover {
  color: var(--ink);
}

.sidebar-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

/* Contact Form */
.contact-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input {
  height: 44px;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  display: none;
}

.form-message.success {
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b3ddd0;
  display: block;
}

.form-message.error {
  background: #fceef1;
  color: var(--semantic-error);
  border: 1px solid #f0b8c4;
  display: block;
}

/* About section on index */
.about-strip {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-strip-text h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.about-strip-text p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 12px;
}

.about-strip-img {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Page header (for about, privacy, terms) */
.page-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}

.page-body {
  padding: 64px 0 80px;
  max-width: 760px;
}

.page-body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 20px;
}

.page-body ul, .page-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.page-body li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 8px;
}

.page-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
}

/* Footer */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 12px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas-soft);
  flex: 1;
  min-width: 200px;
}

#cookie-banner a {
  color: var(--canvas);
  border-bottom: 1px solid rgba(247,247,244,0.4);
}

.cookie-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.4);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* Disclaimer */
.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 56px;
    letter-spacing: -1.5px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
  }

  .about-strip-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-strip-img {
    height: 240px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .article-header h1 {
    font-size: 32px;
  }
}
