:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe4f0;
  --primary: #0c56d0;
  --primary-dark: #083b93;
  --accent: #00b8ff;
  --danger: #e11d48;
  --shadow: 0 18px 55px rgba(15, 23, 42, .10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 184, 255, .16), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

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

a:hover { color: var(--primary); }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
}

.skip-link:focus { top: 14px; }

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

.site-header {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  background: #0f172a;
  color: #dbeafe;
  font-size: .9rem;
}

.topbar-inner,
.brand-row,
.breaking-inner,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar p { margin: 8px 0; }

.topbar-links {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.topbar-links a { color: #eff6ff; }

.brand-row { padding: 22px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(12, 86, 208, .28);
  font-size: .95rem;
  letter-spacing: -.02em;
}

.brand-text {
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #334155;
}

.primary-nav a.active,
.primary-nav a:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.breaking {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.breaking-inner { padding: 12px 0; }

.breaking strong {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ticker {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  font-weight: 700;
  color: #334155;
}

.ticker::-webkit-scrollbar { display: none; }
.ticker a { white-space: nowrap; }

.hero { padding: clamp(36px, 6vw, 72px) 0 36px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.spotlight-card,
.post-card,
.widget {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(219, 228, 240, .88);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(260px, .88fr) 1fr;
  min-height: 430px;
}

.media {
  display: block;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.media-feature {
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,.88), transparent 10rem),
    linear-gradient(135deg, #0f172a 0%, #0c56d0 48%, #00b8ff 100%);
}

.device-shape {
  position: absolute;
  inset: 56px 22% 48px;
  border: 10px solid rgba(255,255,255,.75);
  border-radius: 34px;
  transform: rotate(-8deg);
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 22px 50px rgba(0,0,0,.28);
}

.device-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 52px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255,255,255,.65);
}

.hero-copy {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--primary);
  background: rgba(12, 86, 208, .08);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 16px 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.07em;
}

h2 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.hero-copy p,
.post-card p,
.widget p,
.site-footer p { color: var(--muted); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.spotlight-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(238,243,251,.96));
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.mini-list li { border-top: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 1px solid var(--line); }
.mini-list a {
  display: block;
  padding: 14px 0;
  font-weight: 800;
}

.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(12,86,208,.22);
}

.content-area { padding: 16px 0 64px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 { margin: 12px 0 0; }

.posts {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.thumb {
  display: grid;
  place-items: center;
  min-height: 148px;
  border-radius: 18px;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 1000;
  letter-spacing: -.08em;
  overflow: hidden;
  position: relative;
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.thumb::before { width: 120px; height: 120px; right: -44px; top: -34px; }
.thumb::after { width: 80px; height: 80px; left: -26px; bottom: -26px; }
.thumb span { position: relative; z-index: 1; }

.thumb-purple { background: linear-gradient(135deg, #5b21b6, #a855f7); }
.thumb-green { background: linear-gradient(135deg, #047857, #34d399); }
.thumb-blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.thumb-orange { background: linear-gradient(135deg, #c2410c, #fb923c); }
.thumb-red { background: linear-gradient(135deg, #be123c, #f43f5e); }
.thumb-silver { background: linear-gradient(135deg, #334155, #94a3b8); }
.thumb-dark { background: linear-gradient(135deg, #020617, #334155); }
.thumb-glass { background: linear-gradient(135deg, #0891b2, #e0f2fe); }

.sidebar {
  position: sticky;
  top: 142px;
  display: grid;
  gap: 18px;
}

.widget {
  border-radius: var(--radius-md);
  padding: 22px;
}

.widget h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

form { display: grid; gap: 10px; }

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(12, 86, 208, .12);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  background: var(--surface-2);
  color: #334155;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
}

.newsletter {
  background: linear-gradient(160deg, #0f172a, #0c56d0);
  color: #fff;
}

.newsletter h2,
.newsletter p { color: #fff; }
.newsletter p { opacity: .82; }
.newsletter input { border-color: rgba(255,255,255,.35); }
.newsletter button { background: #fff; color: var(--primary-dark); box-shadow: none; }

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 44px 0 26px;
}

.footer-grid {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 28px;
}

.footer-grid > div { max-width: 560px; }
.footer-brand .brand-text { color: #fff; font-size: 1.8rem; }
.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
  font-weight: 800;
}
.footer-grid nav a { color: #dbeafe; }
.copyright { padding-top: 22px; color: #94a3b8; }
.copyright p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(3, 1fr); }
  .widget { min-width: 0; }
}

@media (max-width: 760px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 0; padding: 8px 0; }
  .topbar p { margin: 0; }
  .topbar-links { margin-top: 4px; }
  .brand-row { padding: 16px 0; }
  .menu-toggle { display: inline-block; }
  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { border-radius: 12px; }
  .breaking-inner { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hero-card { grid-template-columns: 1fr; }
  .media { min-height: 260px; }
  .device-shape { inset: 44px 28% 40px; }
  .post-card { grid-template-columns: 1fr; }
  .thumb { min-height: 180px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-grid nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 22px, var(--max)); }
  h1 { font-size: 2.05rem; }
  .hero-copy, .spotlight-card, .widget { padding: 20px; }
  .post-card { padding: 14px; }
}
