:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #edf3fb;
  --ink: #0b1526;
  --muted: #5c687a;
  --line: #dbe3ef;
  --brand: #2563eb;
  --brand-2: #0891b2;
  --accent: #84cc16;
  --nav: rgba(246, 248, 252, 0.9);
  --shadow: 0 18px 48px rgba(15, 35, 65, 0.1);
  --radius: 20px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0d1a2c;
  --surface-2: #12243b;
  --ink: #ecf4ff;
  --muted: #9fb0c5;
  --line: #203751;
  --brand: #60a5fa;
  --brand-2: #22d3ee;
  --accent: #a3e635;
  --nav: rgba(7, 17, 31, 0.9);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(8, 145, 178, 0.12), transparent 24rem);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: var(--nav);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: 1.26rem;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--ink);
}

.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-button { display: none; }

.hero {
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.035em; }

h1 {
  max-width: 800px;
  margin: 20px 0;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(145deg, #0b1c33, #0b3b59);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
}

.hero-visual::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(34,211,238,.7), rgba(34,211,238,0));
}

.hero-visual::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(132,204,22,.5), rgba(132,204,22,0));
}

.visual-window {
  position: absolute;
  inset: 54px 34px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(7, 17, 31, 0.72);
  color: #eef8ff;
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; }
.dot:nth-child(2) { background: #22d3ee; }
.dot:nth-child(3) { background: #a3e635; }

.visual-content {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.signal {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
}

.signal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(96,165,250,.28), rgba(34,211,238,.12));
  font-weight: 900;
}

.signal strong { display: block; font-size: 1.02rem; }
.signal small { color: #9fb9ce; }

.trend-line {
  height: 82px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, transparent 0 25%, rgba(96,165,250,.2) 25% 33%, transparent 33% 49%, rgba(34,211,238,.25) 49% 58%, transparent 58%),
    rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}

.trend-line::after {
  content: "";
  position: absolute;
  left: 10%; right: 8%; top: 54%;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #a3e635);
  transform: skewY(-9deg);
  box-shadow: 0 0 18px #22d3ee;
}

.trust-strip {
  padding: 20px 0 66px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.trust-item strong { display: block; margin-bottom: 2px; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.section { padding: 72px 0; }
.section.alt { background: color-mix(in srgb, var(--surface-2) 74%, transparent); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.featured {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-art,
.card-art {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background:
    linear-gradient(130deg, rgba(37,99,235,.92), rgba(8,145,178,.86)),
    #2563eb;
}

.feature-art::before,
.card-art::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -50px;
  top: -45px;
  border: 35px solid rgba(255,255,255,.13);
  border-radius: 50%;
}

.feature-art::after,
.card-art::after {
  content: "AI + Excel";
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: white;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.06em;
}

.feature-copy { padding: clamp(28px, 5vw, 54px); }
.feature-copy h3 { margin: 16px 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.feature-copy p { color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 340px);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.search-bar input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15,35,65,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card[hidden] { display: none; }

.card-art { min-height: 180px; }
.card-art::after { left: 22px; bottom: 18px; font-size: 2rem; content: "Power BI"; }
.card-art.fabric { background: linear-gradient(130deg, #7c3aed, #2563eb); }
.card-art.fabric::after { content: "Fabric"; }
.card-art.career { background: linear-gradient(130deg, #0f766e, #0891b2); }
.card-art.career::after { content: "Career"; }

.card-copy { padding: 22px; }
.card-copy h3 { margin: 12px 0; font-size: 1.35rem; }
.card-copy p { color: var(--muted); font-size: .95rem; }

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
}

.empty-state.visible { display: block; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.topic {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
}

.topic strong { display: block; margin: 18px 0 5px; }
.topic span { color: var(--muted); font-size: .9rem; }

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 38px;
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 90% 20%, rgba(34,211,238,.25), transparent 18rem),
    linear-gradient(135deg, #07111f, #0b3453);
}

.newsletter h2 { margin: 10px 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.newsletter p { color: #b8c9da; }

.newsletter-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 10px;
  color: white;
  background: transparent;
}

.newsletter-form input::placeholder { color: #a9bdcf; }

.page-hero { padding: 70px 0 46px; }
.page-hero h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero p { max-width: 740px; color: var(--muted); font-size: 1.12rem; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.prose,
.form-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.prose { padding: clamp(24px, 5vw, 56px); }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.prose h3 { margin-top: 1.7em; font-size: 1.25rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 78%, var(--muted)); }
.prose a { color: var(--brand); }
.prose img { border-radius: 16px; }
.prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--surface-2);
}

.callout {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
}

.article-head { padding: 70px 0 38px; }
.article-head h1 { max-width: 920px; margin-bottom: 20px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.article-summary { max-width: 780px; color: var(--muted); font-size: 1.18rem; }
.article-head .meta { margin-top: 24px; }

.side-card { position: sticky; top: 98px; padding: 24px; }
.side-card h3 { margin-top: 0; }
.side-card ul { margin: 0; padding-left: 20px; }
.side-card a { color: var(--muted); text-decoration: none; }
.side-card a:hover { color: var(--brand); }

.form-card { padding: clamp(24px, 5vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent); }

.site-footer {
  margin-top: 70px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr .65fr;
  gap: 40px;
}

.footer-about { max-width: 500px; color: var(--muted); }
.footer-col strong { display: block; margin-bottom: 12px; }
.footer-col a { display: block; width: fit-content; margin: 7px 0; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .featured,
  .newsletter,
  .content-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { gap: 22px; }
  .side-card { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-wrap { min-height: 68px; }
  .menu-button { display: inline-grid; margin-left: auto; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 34px; }
  .hero-visual { min-height: 320px; }
  .visual-window { inset: 32px 20px; }
  .visual-content { padding: 22px; }
  .trust-grid,
  .card-grid,
  .topic-grid,
  .footer-grid,
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .section { padding: 52px 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .feature-art { min-height: 230px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-height: 46px; }
  .footer-bottom { flex-direction: column; }
}

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