:root {
  --ink: #07182c;
  --navy: #0d2744;
  --navy-2: #14385d;
  --cyan: #28a9e0;
  --cyan-soft: #dff5ff;
  --orange: #ff9d2e;
  --coral: #fa4d59;
  --paper: #f7fbfe;
  --white: #ffffff;
  --muted: #5d6b79;
  --line: #d9e5ee;
  --shadow: 0 20px 55px rgba(7, 24, 44, .12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 24, 44, .95);
  color: white;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--coral), var(--orange)); position: relative; box-shadow: 0 8px 24px rgba(250,77,89,.3); }
.brand-mark::after { content: ""; position: absolute; width: 13px; height: 13px; border: 3px solid white; border-left-color: transparent; border-radius: 50%; top: 9px; left: 9px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .96rem; letter-spacing: .04em; }
.brand-copy span { color: #8bdcff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: #d9e9f6; font-weight: 650; font-size: .93rem; }
.nav-links a:hover, .nav-links a:focus { color: white; }
.nav-cta, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; }
.nav-cta, .button.primary { color: #fff; background: linear-gradient(100deg, var(--coral), var(--orange)); box-shadow: 0 8px 28px rgba(250,77,89,.24); }
.button.secondary { border: 1px solid #8aa0b5; color: var(--navy); background: transparent; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.28); color: white; background: transparent; border-radius: 10px; padding: 8px 10px; font: inherit; }

.hero { background: radial-gradient(circle at 83% 20%, rgba(40,169,224,.22), transparent 25%), linear-gradient(140deg, #07182c 0%, #102f51 100%); color: white; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 64px; align-items: center; min-height: 570px; padding-block: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #8bdcff; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--orange); }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.03em; }
h1 { margin: 18px 0 22px; font-size: clamp(2.6rem, 5.5vw, 5.4rem); max-width: 820px; }
.hero h1 em { color: #8bdcff; font-style: normal; }
.hero-lead { color: #c6d8e7; font-size: 1.16rem; max-width: 670px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .button.secondary { color: white; border-color: rgba(255,255,255,.5); }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: #a8c0d3; font-size: .86rem; }
.trust-row span { display: flex; gap: 7px; align-items: center; }
.trust-row i { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }

.automation-map { position: relative; min-height: 410px; }
.map-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 155px; height: 155px; border-radius: 36px; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, #173b63, #0a2038); border: 1px solid rgba(139,220,255,.5); box-shadow: 0 0 0 20px rgba(40,169,224,.06), 0 30px 70px rgba(0,0,0,.28); }
.map-core b { font-size: 2.4rem; color: #8bdcff; }
.map-core span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #bcd0e0; }
.map-node { position: absolute; width: 142px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); border-radius: 16px; color: white; box-shadow: 0 16px 35px rgba(0,0,0,.16); }
.map-node small { color: #8bdcff; display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.map-node strong { display: block; margin-top: 3px; }
.map-node.one { top: 25px; left: 5px; }
.map-node.two { top: 55px; right: 0; }
.map-node.three { bottom: 38px; left: 0; }
.map-node.four { bottom: 18px; right: 12px; }
.map-line { position: absolute; left: 50%; top: 50%; width: 310px; height: 310px; transform: translate(-50%,-50%); border: 1px dashed rgba(139,220,255,.28); border-radius: 50%; animation: spin 28s linear infinite; }
.map-line::before, .map-line::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.map-line::before { top: 24px; left: 52px; }
.map-line::after { bottom: 19px; right: 58px; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; } }

.section { padding-block: 86px; }
.section.white { background: white; }
.section.dark { background: var(--ink); color: white; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); max-width: 750px; }
.section-head p { color: var(--muted); max-width: 500px; }
.dark .section-head p { color: #aec2d4; }
.text-link { color: var(--navy-2); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.topic { min-height: 190px; padding: 28px; border-right: 1px solid var(--line); text-decoration: none; transition: .2s ease; }
.topic:last-child { border-right: 0; }
.topic:hover { background: var(--cyan-soft); transform: translateY(-3px); }
.topic-number { color: var(--cyan); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.topic h3 { margin: 32px 0 8px; font-size: 1.25rem; }
.topic p { color: var(--muted); margin: 0; font-size: .91rem; }

.featured { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--navy); color: white; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.featured-copy { padding: 52px; }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--cyan-soft); color: #086c97; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.featured .tag { background: rgba(139,220,255,.13); color: #9fe2ff; }
.featured h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 16px 0; }
.featured p { color: #c2d5e5; }
.featured a { color: white; font-weight: 850; text-underline-offset: 5px; }
.featured-visual { position: relative; display: grid; place-content: center; min-height: 390px; background: linear-gradient(145deg, #0c4165, #1b7aa5); overflow: hidden; }
.score-card { width: min(78%, 330px); background: rgba(255,255,255,.96); color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 28px 60px rgba(0,0,0,.28); transform: rotate(3deg); }
.score-card strong { font-size: 3.8rem; letter-spacing: -.06em; }
.score-card small { display: block; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.bar { height: 9px; border-radius: 10px; background: #e4edf3; margin: 18px 0 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--coral), var(--orange)); border-radius: inherit; }
.mini-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-decoration: none; transition: .2s ease; display: flex; flex-direction: column; min-height: 330px; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.article-card h3 { font-size: 1.42rem; margin: 18px 0 12px; }
.article-card p { color: var(--muted); }
.article-card .meta { margin-top: auto; padding-top: 20px; color: #718393; font-size: .82rem; font-weight: 700; }

.newsletter { display: grid; grid-template-columns: 1fr .9fr; gap: 40px; align-items: center; background: linear-gradient(120deg, var(--cyan-soft), #fff4e7); border: 1px solid #b9e4f6; padding: 44px; border-radius: 26px; }
.newsletter h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3vw, 3rem); }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter input { min-height: 50px; min-width: 0; flex: 1; border: 1px solid #a9becd; border-radius: 12px; padding: 0 15px; font: inherit; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 8px; }

.site-footer { background: #061525; color: #b9cddd; padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, .8fr); gap: 48px; }
.footer-grid h3 { color: white; font-size: 1rem; }
.footer-grid a { color: #b9cddd; display: block; margin: 8px 0; text-decoration: none; }
.footer-grid a:hover { color: white; }
.footer-note { border-top: 1px solid rgba(255,255,255,.11); margin-top: 38px; padding-top: 22px; font-size: .82rem; color: #8299ac; }

.article-hero { background: linear-gradient(145deg, #07182c, #123a61); color: white; padding: 68px 0 62px; }
.breadcrumbs { color: #9fc6dc; font-size: .86rem; margin-bottom: 25px; }
.breadcrumbs a { color: inherit; }
.article-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); max-width: 960px; }
.article-deck { max-width: 800px; color: #c6d8e7; font-size: 1.18rem; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: #b9ccdc; font-size: .9rem; }
.byline img, .author-avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #49b9e8; }
.byline img { object-fit: cover; }
.author-avatar { display: grid; place-content: center; flex: 0 0 auto; background: linear-gradient(135deg, #134773, #28a9e0); color: white; font-weight: 900; letter-spacing: .04em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 70px; align-items: start; padding-block: 65px 95px; }
.prose { font-size: 1.08rem; }
.prose h2 { margin: 2.4em 0 .65em; font-size: 2rem; }
.prose h3 { margin: 1.9em 0 .55em; font-size: 1.35rem; }
.prose p, .prose li { color: #25394b; }
.prose a { color: #087cae; font-weight: 700; }
.prose blockquote { margin: 32px 0; padding: 24px 28px; border-left: 5px solid var(--orange); background: #fff5e9; border-radius: 0 16px 16px 0; font-size: 1.2rem; font-weight: 700; }
.prose .callout { margin: 34px 0; padding: 26px; background: var(--cyan-soft); border: 1px solid #a9dcef; border-radius: 18px; }
.prose .steps { counter-reset: steps; padding: 0; list-style: none; }
.prose .steps li { position: relative; padding: 0 0 25px 54px; }
.prose .steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -2px; width: 35px; height: 35px; border-radius: 11px; background: var(--navy); color: white; display: grid; place-content: center; font-weight: 900; }
.side-card { position: sticky; top: 100px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.side-card h3 { margin-top: 0; }
.side-card a { display: block; color: #34526a; margin: 11px 0; font-size: .9rem; }
.page-hero { background: #e8f6fd; padding: 70px 0; }
.page-hero h1 { color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.7rem); }
.page-content { max-width: 800px; padding-block: 62px 90px; }

@media (max-width: 900px) {
  .hero-grid, .featured, .newsletter, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 15px; }
  .automation-map { min-height: 390px; max-width: 520px; width: 100%; margin-inline: auto; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic:nth-child(2) { border-right: 0; }
  .topic:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .article-layout { gap: 20px; }
  .side-card { position: static; }
}

@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; inset: 64px 0 auto; background: #07182c; padding: 22px; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hero-grid { min-height: auto; padding-block: 58px 45px; }
  .automation-map { transform: scale(.88); margin-block: -20px; }
  .section { padding-block: 60px; }
  .section-head { display: block; }
  .topic-grid, .cards { grid-template-columns: 1fr; }
  .topic { border-right: 0; border-bottom: 1px solid var(--line); }
  .topic:last-child { border-bottom: 0; }
  .featured-copy, .newsletter { padding: 30px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
