@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

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;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

/* TOP NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav__logo span { color: var(--primary); }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav__links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--body);
  transition: color 0.15s ease;
}

.site-nav__links a:hover { color: var(--ink); }

.site-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.site-nav__mobile {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
}

.site-nav__mobile.is-open { display: block; }

.site-nav__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

/* HERO */
.hero {
  padding: 80px 0;
  background: var(--canvas);
}

.hero__badge {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__image {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero__image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section__title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section__lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 640px;
  margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.card__body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
}

.card--image .card__img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.card--image .card__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.card__link:hover { color: var(--primary-active); }

/* ARTICLE CARDS */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card__img {
  height: 220px;
  overflow: hidden;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card__img img { transform: scale(1.02); }

.article-card__body {
  padding: 24px;
}

.article-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
}

.article-card__meta {
  font-size: 13px;
  color: var(--muted);
}

/* ARTICLE PAGE */
.article-hero {
  padding: 48px 0 0;
}

.article-hero__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-hero__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-hero__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.article-hero__image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-hero__image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.article-body li { margin-bottom: 6px; }

.article-body a { color: var(--primary); }
.article-body a:hover { color: var(--primary-active); }

.article-body .note-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

.article-body .tools-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-body .tools-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
}

.article-body .tools-table td {
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  color: var(--body);
  vertical-align: top;
}

.article-body .tools-table tr:nth-child(even) td {
  background: var(--canvas-soft);
}

/* PAGE CONTENT (about, privacy, terms) */
.page-hero {
  padding: 60px 0 32px;
}

.page-hero__title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.9px;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 16px;
  color: var(--body);
}

.page-body {
  max-width: 760px;
  padding: 32px 0 80px;
}

.page-body h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 36px 0 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}

.page-body h2:first-of-type { border-top: none; padding-top: 0; }

.page-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 16px;
}

.page-body ul {
  margin: 0 0 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}

/* CONTACT FORM */
.contact-section { padding: 80px 0; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info__title {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 24px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--body);
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s ease;
  outline: none;
}

.form-group textarea {
  height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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;
  font-family: inherit;
  transition: background 0.15s ease;
  width: 100%;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
}

.form-message--success {
  background: #e8f5f0;
  color: var(--success);
  border: 1px solid #b8ddd3;
}

/* TOOLS LIST */
.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.tool-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px;
}

.tool-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.tool-item__desc {
  font-size: 13px;
  color: var(--body);
  line-height: 1.4;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--body); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  z-index: 999;
  padding: 16px 24px;
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-text a { color: #e6e5e0; text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-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;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand__name span { color: var(--primary); }

.footer-brand__tagline {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 240px;
}

.footer-col__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.footer-col__links 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__copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-bottom__links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom__links a:hover { color: var(--ink); }

/* RELATED ARTICLES */
.related-articles { padding: 64px 0; border-top: 1px solid var(--hairline); }

.related-articles__title {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 48px 0;
}

.about-grid__img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.about-grid__img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero__title { font-size: 44px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .site-nav__hamburger { display: flex; }
  .hero { padding: 48px 0; }
  .hero__title { font-size: 32px; letter-spacing: -0.5px; }
  .hero__subtitle { font-size: 16px; }
  .section { padding: 56px 0; }
  .section__title { font-size: 28px; }
  .cards-grid, .cards-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-hero__title { font-size: 30px; }
  .tools-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
