@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;650;750;800;900&display=swap");

:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --night: #08111f;
  --cyan: #12b5cb;
  --green: #1f9d55;
  --gold: #d89b2b;
  --rose: #c2416b;
  --shadow: 0 18px 60px rgba(16, 24, 40, .12);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lift: 0 22px 54px rgba(16, 24, 40, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 44%, #ffffff 100%);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(217, 226, 236, .8);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(16, 24, 40, .04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--night), var(--cyan));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #344054;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  padding: 110px 6vw 72px;
  overflow: hidden;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, .96) 0%, rgba(8, 17, 31, .74) 48%, rgba(8, 17, 31, .28) 100%),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  color: white;
  font-size: clamp(42px, 7vw, 82px);
  max-width: 920px;
}

h2 { font-size: clamp(30px, 4vw, 52px); }

h3 { font-size: 23px; }

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: #e4e7ec;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 181, 203, .24);
}

.button.primary {
  color: #061019;
  background: var(--cyan);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
}

.section,
.newsletter {
  padding: 76px 6vw;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(280px, 1fr);
  gap: 54px;
  align-items: start;
  background: var(--soft);
}

.intro p:last-child {
  margin: 0;
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: #344054;
  background: white;
  font-weight: 750;
  cursor: pointer;
}

.filter.active {
  color: white;
  border-color: var(--night);
  background: var(--night);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 181, 203, .45);
  box-shadow: var(--shadow-lift);
}

.article-card img {
  height: 230px;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.article-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.article-body {
  padding: 24px;
}

.article-body h3 a:hover { color: var(--cyan); }

.article-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tag {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.categories {
  background: #101828;
  color: white;
}

.categories p { color: #cbd5e1; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.category-tile {
  min-height: 260px;
  padding: 28px;
  background: #101828;
}

.category-tile:hover { background: #14233a; }

.category-tile span {
  color: var(--gold);
  font-weight: 900;
}

.category-tile h3 {
  margin: 28px 0 14px;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 520px);
  gap: 36px;
  align-items: center;
  background: #f7fbf7;
}

.signup {
  padding: 26px;
  border: 1px solid #cce4d3;
  border-radius: 8px;
  background: white;
}

.signup label {
  display: block;
  margin-bottom: 12px;
  font-weight: 850;
}

.signup div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}

.commerce-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 42px 6vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff8eb;
}

.commerce-strip h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.commerce-strip p:last-child {
  margin-bottom: 0;
}

.commerce-hero {
  display: grid;
  min-height: 430px;
  align-items: end;
  padding: 96px 6vw 64px;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, .94), rgba(8, 17, 31, .58)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.commerce-hero div {
  width: min(850px, 100%);
}

.commerce-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.commerce-hero p {
  max-width: 720px;
  color: #e4e7ec;
  font-size: 19px;
}

.affiliate-notice {
  margin: 28px 6vw 0;
  padding: 18px 20px;
  border: 1px solid #f1c36d;
  border-radius: 8px;
  color: #694b13;
  background: #fff7e6;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 181, 203, .45);
  box-shadow: var(--shadow-lift);
}

.product-card img {
  height: 240px;
  object-fit: cover;
  background: #f8fafc;
  transition: transform .35s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.product-body p,
.product-body ul {
  margin: 0;
}

.product-body ul {
  padding-left: 18px;
  color: #475467;
  line-height: 1.7;
}

.affiliate-link {
  width: 100%;
  margin-top: 6px;
}

.product-card .affiliate-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card .affiliate-link {
  position: static;
}

.product-card .product-body,
.product-card img {
  position: relative;
  z-index: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 6vw;
  color: #cbd5e1;
  background: #08111f;
}

.site-footer p { margin-bottom: 0; color: #98a2b3; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover { color: white; }

.article-page main {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 48px;
  align-items: start;
  padding: 56px 6vw 76px;
}

.article-hero {
  grid-column: 1 / -1;
  padding: 0;
}

.article-hero img {
  height: min(46vw, 430px);
  object-fit: cover;
  border-radius: 8px;
}

.article-content h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
}

.article-content h2 {
  margin-top: 42px;
  font-size: 30px;
  line-height: 1.14;
}

.article-content p,
.article-content li {
  color: #475467;
  font-size: 18px;
  line-height: 1.8;
}

.article-content a {
  color: #067a8b;
  font-weight: 800;
}

.article-note,
.affiliate-panel,
.article-gallery {
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, .92);
  box-shadow: var(--shadow-soft);
}

.article-note,
.affiliate-panel {
  padding: 24px;
}

.article-note h2,
.affiliate-panel h2 {
  margin-top: 0;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.article-gallery figure {
  margin: 0;
}

.article-gallery img {
  height: 260px;
  object-fit: cover;
}

.article-gallery figcaption {
  padding: 14px 16px;
  color: #475467;
  font-size: 15px;
  line-height: 1.5;
}

.affiliate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.affiliate-item {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  padding: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.affiliate-item:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 181, 203, .48);
  box-shadow: var(--shadow-lift);
}

.affiliate-thumb {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, #f8fafc, #eef7fb);
}

.affiliate-item strong {
  display: block;
  padding: 0 16px;
  font-size: 18px;
  line-height: 1.25;
}

.affiliate-item p {
  padding: 0 16px;
  margin: 0;
  font-size: 15px;
}

.affiliate-item .button {
  position: static;
  z-index: 2;
  width: calc(100% - 32px);
  margin: 6px 16px 0;
}

.affiliate-item .button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}


.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 30px;
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 96px;
}

.side-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.side-box + .side-box { margin-top: 18px; }

.side-box h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.side-box ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.legal-page main {
  width: min(860px, 88vw);
  margin: 0 auto;
  padding: 70px 0;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 62px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 28px;
}

.legal-page p,
.legal-page li {
  color: #475467;
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6vw 24px;
    border-bottom: 1px solid var(--line);
    background: white;
  }

  .site-nav.open { display: flex; }

  .intro,
  .newsletter,
  .commerce-strip,
  .article-page main {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .product-grid,
  .category-grid,
  .article-gallery,
  .affiliate-list {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar { position: static; }
}

@media (max-width: 560px) {
  .hero {
    min-height: 590px;
    padding-top: 86px;
  }

  .hero-actions,
  .signup div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
