@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0077B6;
    --primary-dark: #005c8f;
    --secondary: #90E0EF;
    --ink: #0f172a;
    --muted: #536070;
    --line: #dbe7ef;
    --bg: #f7fbfd;
    --white: #ffffff;
    --soft: #eaf8fc;
    --dark: #06283d;
    --shadow: 0 18px 45px rgba(0, 55, 89, 0.12);
    --radius: 24px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 850px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: white; padding: 8px 12px; z-index: 99; }
.skip-link:focus { left: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(219,231,239,0.9);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--primary), #00a8e8); box-shadow: 0 10px 24px rgba(0,119,182,0.25); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { text-decoration: none; padding: 10px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 0.92rem; transition: 0.25s ease; }
.main-nav a:hover, .main-nav a.active { background: var(--soft); color: var(--primary-dark); }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 4px; }

.hero { padding: 74px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr); gap: 56px; align-items: center; }
.hero-copy h1, .page-hero h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.07em; margin: 12px 0 22px; }
.hero-copy p, .page-hero p { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); background: var(--soft); border: 1px solid #c9eef6; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 12px 26px rgba(0,119,182,0.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--primary-dark); border-color: var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { background: white; border: 1px solid var(--line); padding: 9px 12px; border-radius: 14px; font-weight: 800; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img, .rounded-img { border-radius: 34px; box-shadow: var(--shadow); object-fit: cover; }
.hero-media::before { content: ''; position: absolute; inset: -24px -24px auto auto; width: 180px; height: 180px; background: var(--secondary); border-radius: 50%; z-index: -1; opacity: .8; }
.floating-card, .stat-card { position: absolute; left: -22px; bottom: 28px; max-width: 260px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: 18px; }
.floating-card strong, .stat-card strong { display: block; font-size: 1.1rem; }
.floating-card span, .stat-card span { color: var(--muted); font-size: .94rem; }

.section { padding: 72px 0; }
.alt-section { background: white; }
.section-heading { margin-bottom: 32px; text-align: center; }
.section-heading h2, .calculator-card h2, .feature-panel h2, .sticky-note h2, .prose h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -0.05em; margin: 12px 0; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.split-heading { display: grid; grid-template-columns: 1fr 0.8fr; gap: 36px; text-align: left; align-items: end; }
.left { text-align: left; }
.card-grid { display: grid; gap: 20px; }
.five-grid { grid-template-columns: repeat(5, 1fr); }
.four-grid { grid-template-columns: repeat(4, 1fr); }
.three-grid { grid-template-columns: repeat(3, 1fr); }
.topic-card, .deep-card, .industry-card, .blog-card, .feature-panel, .sticky-note, .calculator-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 10px 28px rgba(0, 45, 73, 0.06);
}
.topic-card svg, .industry-card svg { width: 34px; height: 34px; color: var(--primary); margin-bottom: 10px; }
.topic-card h3, .deep-card h2, .industry-card h2, .blog-card h2 { margin: 6px 0 10px; line-height: 1.15; letter-spacing: -0.03em; }
.topic-card p, .deep-card p, .industry-card p, .blog-card p, .feature-panel p, .sticky-note p { color: var(--muted); }
.topic-card a, .blog-card a, .text-link { color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.topic-card a:hover, .blog-card a:hover, .text-link:hover { text-decoration: underline; }

.z-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: center; }
.z-layout.reverse { grid-template-columns: 1.05fr .95fr; }
.image-stack { position: relative; }
.image-stack img { border-radius: 34px; box-shadow: var(--shadow); object-fit: cover; }
.stat-card { right: -18px; left: auto; bottom: -18px; }
.check-list { padding: 0; list-style: none; display: grid; gap: 12px; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 34px; color: var(--muted); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--secondary); color: var(--dark); border-radius: 50%; display: grid; place-items: center; font-weight: 900; line-height: 1; }

.calculator-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, white, #eefbff); }
.planner { display: grid; gap: 14px; }
.planner label { display: grid; gap: 7px; font-weight: 800; }
.planner input, .planner select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; font: inherit; background: white; color: var(--ink); }
.planner output { display: block; background: var(--dark); color: white; padding: 16px; border-radius: 18px; font-weight: 700; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-panel { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.dark-panel { background: var(--dark); color: white; }
.dark-panel p { color: #d7edf4; }
.text-link.light { color: var(--secondary); }
.cta-band { padding: 48px 0; }
.cta-inner { background: linear-gradient(135deg, var(--primary), #00a8e8); color: white; border-radius: 34px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cta-inner h2 { margin: 0; letter-spacing: -0.04em; line-height: 1.1; }
.cta-inner .btn-primary { background: white; color: var(--primary-dark); }

.page-hero { padding: 86px 0 56px; background: radial-gradient(circle at top right, var(--secondary), transparent 28%), linear-gradient(180deg, white, var(--bg)); }
.compact-hero { padding-bottom: 42px; }
.comparison-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.sticky-note { position: sticky; top: 96px; background: var(--dark); color: white; }
.sticky-note p { color: #d6edf4; }
.comparison-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-table { width: 100%; border-collapse: collapse; background: white; min-width: 700px; }
.comparison-table th, .comparison-table td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table th { background: var(--soft); color: var(--primary-dark); }
.step-list { display: grid; gap: 14px; margin-top: 24px; }
.step-list div { display: flex; gap: 14px; align-items: center; background: white; border: 1px solid var(--line); padding: 14px; border-radius: 18px; }
.step-list strong { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; }
.industry-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.industry-list .section-heading { grid-row: span 2; margin: 0; align-self: center; }
.industry-list article { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 12px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--muted); }
.industry-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.industry-card { grid-column: span 2; }
.industry-card:nth-child(4), .industry-card:nth-child(5) { grid-column: span 3; }
.industry-card strong { display: block; margin-top: 16px; }
.industry-card span { color: var(--muted); }
.dual-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dual-images img { height: 420px; width: 100%; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.blog-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.blog-card { overflow: hidden; }
.blog-card img { width: calc(100% + 48px); height: 180px; object-fit: cover; margin: -24px -24px 18px; }
.featured-post { grid-row: span 3; background: linear-gradient(135deg, var(--dark), #07476a); color: white; display: flex; flex-direction: column; justify-content: flex-start; min-height: 560px; padding: 0; }
.featured-post img { width: 100%; height: 310px; object-fit: cover; margin: 0; }
.featured-post div { padding: 24px; margin-top: auto; }
.featured-post p { color: #d7edf4; }
.featured-post a { color: var(--secondary); }
.blog-card span { color: var(--primary-dark); font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.featured-post span { color: var(--secondary); }
.prose p { color: var(--muted); font-size: 1.05rem; }
.contact-simple a { color: var(--primary-dark); font-weight: 900; }

.site-footer { background: var(--dark); color: white; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand { margin-bottom: 14px; }
.site-footer p { color: #c9e0e8; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--secondary); }
.site-footer a { display: block; color: white; text-decoration: none; margin: 8px 0; }
.site-footer a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .five-grid { grid-template-columns: repeat(3, 1fr); }
    .four-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .z-layout, .z-layout.reverse, .calculator-card, .comparison-layout { grid-template-columns: 1fr; }
    .sticky-note { position: static; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .main-nav.open { display: flex; }
    .main-nav a { border-radius: 14px; }
    .split-heading, .editorial-grid, .footer-grid, .footer-bottom, .blog-grid, .industry-list { grid-template-columns: 1fr; }
    .three-grid, .five-grid, .four-grid { grid-template-columns: 1fr; }
    .industry-cards { grid-template-columns: 1fr; }
    .industry-card, .industry-card:nth-child(4), .industry-card:nth-child(5) { grid-column: auto; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .floating-card, .stat-card { position: static; margin: -28px 18px 0; }
    .hero { padding-top: 46px; }
    .section { padding: 54px 0; }
    .featured-post { min-height: auto; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, var(--container)); }
    .hero-copy h1, .page-hero h1 { font-size: 2.45rem; }
    .hero-actions, .trust-row { flex-direction: column; }
    .btn { width: 100%; }
    .dual-images { grid-template-columns: 1fr; }
    .dual-images img { height: 300px; }
    .blog-card img { height: 165px; }
    .featured-post img { height: 220px; }
    .topic-card, .deep-card, .industry-card, .blog-card, .feature-panel, .sticky-note, .calculator-card { padding: 20px; }
    .featured-post { padding: 0; }
    .featured-post div { padding: 20px; }
}