:root {
  --ink: #202833;
  --ink-soft: #526174;
  --paper: #ffffff;
  --surface: #f4f7fa;
  --surface-2: #e9f0f6;
  --line: #d7e1ea;
  --blue: #1387e8;
  --blue-deep: #0e5fa8;
  --navy: #121b28;
  --success: #0e5fa8;
  --shadow: 0 22px 60px rgba(17, 23, 42, .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;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 7px 12px; border-radius: 999px;
  color: #0e5fa8; background: #e7f3fd; font-size: .8rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221,227,238,.85);
}
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 330px; height: 64px; object-fit: contain; object-position: left center; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; color: #2c3347; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-cta { padding: 11px 17px; border-radius: 12px; background: var(--ink); color: white !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative; overflow: hidden; padding: 96px 0 82px;
  background:
    radial-gradient(circle at 85% 14%, rgba(19,135,232,.18), transparent 28%),
    radial-gradient(circle at 12% 12%, rgba(14,95,168,.14), transparent 32%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -180px 38%; height: 360px;
  background: linear-gradient(135deg, rgba(14,95,168,.22), rgba(19,135,232,.17));
  transform: rotate(-8deg); border-radius: 80px;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.hero h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { background: linear-gradient(90deg, var(--blue-deep), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 680px; margin: 0 0 30px; color: var(--ink-soft); font-size: 1.16rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 13px; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); box-shadow: 0 12px 30px rgba(19,135,232,.25); }
.btn-secondary { background: white; border-color: var(--line); }
.btn-dark { background: var(--ink); color: white; }

.hero-panel {
  position: relative; padding: 26px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95);
  border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.panel-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--ink-soft); }
.status { padding: 7px 10px; border-radius: 999px; color: var(--success); background: #e7fbf4; font-size: .8rem; font-weight: 800; }
.product-stack { display: grid; gap: 12px; }
.product-mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.product-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #e5f2fd, #f0f5fa); font-weight: 900; color: var(--blue); }
.product-mini strong { display: block; }
.product-mini small { color: var(--ink-soft); }
.product-mini b { font-size: .75rem; color: #526078; }

.section { padding: 92px 0; }
.section-muted { background: var(--surface); }
.section-dark { color: white; background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2, .page-hero h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
.section-head p { max-width: 600px; margin: 0; color: var(--ink-soft); }
.section-dark .section-head p { color: #b9c1d2; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 26px rgba(17,23,42,.05); }
.card h3 { margin: 12px 0 8px; font-size: 1.28rem; }
.card p { margin: 0; color: var(--ink-soft); }
.icon-chip { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); font-weight: 900; }

.product-card { overflow: hidden; padding: 0; }
.product-card .visual { min-height: 180px; padding: 28px; display: flex; align-items: end; color: white; background: linear-gradient(135deg, #202833, #0e5fa8 62%, #1387e8); }
.product-card .visual.alt { background: linear-gradient(135deg, #121b28, #0e5fa8, #1387e8); }
.product-card .visual.soft { color: var(--ink); background: linear-gradient(135deg, #eaf4fd, #f4f7fa); }
.product-card .body { padding: 26px; }
.product-card .tag { display: inline-block; padding: 5px 9px; margin-bottom: 10px; border-radius: 999px; background: #eef1f7; color: #536079; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.steps { counter-reset: steps; display: grid; gap: 14px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); }
.step::before { content: counter(steps); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); font-weight: 900; }
.step h3 { margin: 2px 0 4px; }
.step p { margin: 0; color: #b9c1d2; }

.quote { padding: 34px; border-radius: 24px; background: linear-gradient(135deg, #eaf4fd, #f4f7fa); }
.quote p { margin: 0; font-size: 1.45rem; line-height: 1.4; font-weight: 750; }

.cta-band { padding: 42px; border-radius: 28px; color: white; background: linear-gradient(115deg, #121b28, #0e5fa8 60%, #1387e8); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.cta-band p { margin: 0; color: #d7daea; }

.page-hero { padding: 82px 0 58px; background: linear-gradient(180deg, #fafbff, #f2f5fa); }
.page-hero p { max-width: 760px; color: var(--ink-soft); font-size: 1.14rem; }
.prose h2 { margin-top: 2.2em; font-size: 1.65rem; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #414a60; }
.prose ul { padding-left: 1.2rem; }

.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.contact-card { padding: 30px; border-radius: 22px; color: white; background: var(--navy); }
.contact-card p { color: #c2cada; }
.contact-list { display: grid; gap: 15px; margin-top: 24px; }
.contact-list div { padding: 16px; border-radius: 15px; background: rgba(255,255,255,.07); }
.form-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: block; margin-bottom: 7px; font-weight: 750; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid #cfd6e3; border-radius: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 160px; resize: vertical; }
.field { margin-bottom: 16px; }
.form-note { color: var(--ink-soft); font-size: .88rem; }

.site-footer { padding: 58px 0 24px; color: #c8cfdd; background: #0b1020; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; }
.footer-logo { width: min(100%, 390px); height: auto; margin-bottom: 16px; display: block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.site-footer h3 { color: white; font-size: 1rem; }
.site-footer a { display: block; margin: 8px 0; color: #c8cfdd; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }

.notice { padding: 14px 16px; border-radius: 12px; background: #fff8df; color: #6b5511; border: 1px solid #f1df98; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 78px; left: 0; right: 0; display: none; padding: 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(17,23,42,.08); }
  .nav-links.open { display: grid; }
  .nav-cta { text-align: center; }
  .hero-grid, .grid-3, .form-wrap { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta-band { display: block; }
  .cta-band .actions { margin-top: 22px; }
}

@media (max-width: 580px) {
  .container, .narrow { width: min(100% - 28px, var(--max)); }
  .brand img { width: 235px; height: 50px; object-fit: contain; }
  .navbar { min-height: 70px; }
  .nav-links { top: 70px; }
  .hero { padding: 60px 0 64px; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 68px 0; }
  .field-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .cta-band { padding: 28px; }
}

.hero::before {
  content: ""; position: absolute; right: 3%; top: 11%; width: min(36vw, 470px); aspect-ratio: 1.55;
  background: url("../images/opp-works-mark.png") center/contain no-repeat; opacity: .035; filter: saturate(.7); pointer-events: none;
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
@media (max-width: 580px) { .hero::before { width: 78vw; right: -22%; top: 8%; } }


/* Opp Works master-logo sizing — v4 */
.brand { overflow: visible; }
.brand img { max-width: 100%; flex-shrink: 0; }
@media (max-width: 1180px) {
  .brand img { width: 270px; height: 56px; }
}
@media (max-width: 760px) {
  .brand img { width: 220px; height: 48px; }
  .footer-logo { width: min(100%, 320px); }
}
