:root {
  color-scheme: light;
  --bg: #f7f9ff;
  --bg-soft: #eef4ff;
  --text: #111827;
  --muted: #5b6475;
  --line: rgba(17, 24, 39, 0.12);
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --blue: #4f7cff;
  --cyan: #12b8d7;
  --pink: #ea4aaa;
  --green: #16b981;
  --orange: #f59e0b;
  --shadow: 0 24px 80px rgba(56, 68, 103, 0.18);
  --radius: 8px;
  --max: 1180px;
  --font-sans: "Google Sans", "Product Sans", "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(18, 184, 215, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(234, 74, 170, 0.16), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 42%, #f4fff9 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, rgba(120, 167, 255, 0.08), rgba(73, 230, 255, 0.04), rgba(255, 122, 217, 0.08));
  opacity: 0.72;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
  color: #111827;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: var(--text);
  color: #ffffff;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.nav-shell,
.section,
.intro-band,
.site-footer,
.page-hero,
.article-shell {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-weight: 590;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(79, 124, 255, 0.18));
}

.brand-wordmark {
  display: inline-flex;
  gap: 0.08rem;
  align-items: baseline;
  font-size: 1.08rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-nwave {
  color: #111318;
  font-weight: 590;
}

.brand-cloud {
  color: #7a8190;
  font-weight: 400;
}

.brand-divider {
  width: 1px;
  height: 1.35rem;
  background: var(--line);
}

.brand-section {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  width: min(100% - 1.5rem, 1400px);
  min-height: 68svh;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: auto 8% 9% 8%;
  z-index: -1;
  height: 44%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 52%, rgba(18, 184, 215, 0.34), transparent 36%),
    radial-gradient(circle at 74% 42%, rgba(234, 74, 170, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(79, 124, 255, 0.18), rgba(22, 185, 129, 0.14));
  filter: blur(36px);
  content: "";
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  max-width: 980px;
  margin: 0 auto 1.2rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 1.02;
}

.hero-lede,
.page-hero p,
.article-description {
  max-width: 760px;
  margin-inline: auto;
  color: #3f485a;
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #4f65a2;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 560;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: #111318;
  background: #111318;
  color: #ffffff;
}

.button-primary:hover {
  border-color: #050608;
  background: #050608;
  box-shadow: 0 16px 34px rgba(17, 19, 24, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.hero-panel,
.glass-panel,
.article-card,
.ai-summary,
.article-side {
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 820px);
  margin: 1rem auto 0;
  overflow: hidden;
  text-align: left;
}

.hero-panel div {
  padding: 1rem;
}

.hero-panel div + div {
  border-left: 1px solid var(--line);
}

.hero-panel span,
.article-card-top,
.article-meta,
.article-side span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel strong {
  display: block;
  margin-top: 0.2rem;
  font-weight: 590;
}

.section {
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.intro-band h2,
.split-section h2,
.glass-panel h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.section-heading p,
.intro-band p,
.split-section p,
.glass-panel p {
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.article-card {
  position: relative;
  display: grid;
  min-height: 280px;
  overflow: hidden;
  padding: 1.25rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom right, black, transparent 74%);
}

.article-card:hover {
  border-color: rgba(79, 124, 255, 0.2);
  box-shadow: 0 22px 62px rgba(56, 68, 103, 0.14);
  transform: translateY(-2px);
}

.article-card > * {
  position: relative;
  z-index: 1;
}

.article-card.featured {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 255, 0.8)),
    radial-gradient(circle at 16% 20%, rgba(18, 184, 215, 0.22), transparent 18rem);
}

.article-card-top,
.article-card-footer,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  justify-content: space-between;
}

.article-card h2 {
  margin: 1.3rem 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 520;
  line-height: 1.14;
}

.article-card p {
  color: var(--muted);
}

.article-card-footer {
  align-self: end;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  color: #315fdc;
  font-weight: 560;
}

.text-link:hover {
  color: #111827;
}

.intro-band {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.4rem) 0;
}

.page-hero,
.article-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}

.split-section {
  display: grid;
  gap: 1.2rem;
}

.glass-panel {
  padding: 1.25rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  content: "";
}

.article-shell {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #315fdc;
  font-weight: 560;
}

.article-meta {
  justify-content: center;
  margin: 1.4rem auto 0;
}

.ai-summary {
  max-width: 820px;
  margin: 2rem auto 0;
  padding: 1.2rem;
  text-align: left;
}

.ai-summary h2 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 650;
}

.ai-summary p {
  margin: 0;
  color: var(--muted);
}

.article-layout {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.article-side {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.article-side a {
  color: #315fdc;
  font-weight: 560;
}

.article-content {
  max-width: 780px;
  font-size: 1.05rem;
}

.article-content h2 {
  margin: 2.4rem 0 0.85rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
}

.article-content h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.22rem;
  font-weight: 590;
}

.article-content p,
.article-content li {
  color: #3f485a;
}

.article-content a {
  color: #315fdc;
  font-weight: 560;
}

.article-content ul {
  padding-left: 1.2rem;
}

.article-content li + li {
  margin-top: 0.45rem;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.site-footer p {
  max-width: 520px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  align-items: center;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .nav-shell,
  .section,
  .intro-band,
  .site-footer,
  .page-hero,
  .article-shell {
    width: min(100% - 1rem, var(--max));
  }

  .nav-links.is-open {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    top: calc(100% + 0.5rem);
    display: grid;
    gap: 0.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open a {
    padding: 0.7rem 0.8rem;
  }

  .brand-section,
  .brand-divider {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 761px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 880px) {
  .intro-band,
  .split-section,
  .article-layout,
  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  }

  .article-side {
    position: sticky;
    top: 96px;
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
