/* OpTheory - Approved Cobalt / Copper Brand System2
   Background refined to a cooler off-white and copper reserved for structural accents.
*/
:root {
  --bg: #EBF2FF;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFD;
  --ink: #334155;
  --muted: #667586;
  --line: #D5DFE9;
  --cobalt: #0D47A1;
  --cobalt-deep: #08377F;
  --cobalt-mid: #4A7FE2;
  --cobalt-soft: #E8EEF5;
  --copper: #B87333;
  --copper-soft: #F3E7DC;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(51,65,85,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(235,242,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-weight: 850; letter-spacing: -.045em; font-size: 1.4rem; color: var(--ink);
}
.brand span { color: var(--cobalt); font-weight: 520; }

.brand-logo {
  display: block;
  width: 320px;
  height: auto;
}

@media (max-width: 560px) {
  .brand-logo {
    width: 230px;
  }
}

.nav-links { display: flex; gap: 28px; align-items: center; font-size: .95rem; color: #526171; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px;
  background: var(--copper); transition: .2s ease;
}
.nav-links a:hover { color: var(--cobalt); }
.nav-links a:hover::after { right: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 21px; border-radius: 999px;
  border: 1px solid var(--cobalt); font-weight: 750; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13,71,161,.14); }
.btn-primary { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-secondary { color: var(--cobalt); border-color: #B7C9DE; background: rgba(255,255,255,.72); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 100px 0 78px;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 57%, #EBF2FF 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; width: 650px; height: 650px; right: -110px; top: -170px;
  opacity: .20; transform: rotate(-8deg);
  background-image:
    linear-gradient(rgba(13,71,161,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,71,161,.24) 1px, transparent 1px),
    linear-gradient(35deg, transparent 48%, rgba(13,71,161,.26) 49%, rgba(13,71,161,.26) 50%, transparent 51%);
  background-size: 28px 28px, 28px 28px, 90px 90px;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 58px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; font-weight: 850;
  color: var(--cobalt-mid); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--copper); border-radius: 99px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.25rem); line-height: .95; letter-spacing: -.062em;
  margin: 0 0 28px; max-width: 860px; color: #2F3B48;
}
.hero p { font-size: clamp(1.05rem,2vw,1.28rem); color: var(--muted); max-width: 720px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel {
  background: rgba(255,255,255,.90); border: 1px solid #C8D6E5; border-top: 3px solid var(--cobalt);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.hero-panel h3 { margin: 0 0 12px; font-size: 1.08rem; color: #33404D; }
.hero-panel p { font-size: .98rem; margin: 0; color: var(--muted); }
.hero-panel ul { list-style: none; padding: 0; margin: 22px 0 0; }
.hero-panel li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 650; color: #485768; }
.hero-panel li::before { content: "•"; color: var(--copper); margin-right: 9px; }

/* Sections */
.section { padding: 84px 0; background: var(--bg); }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 52px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(2.1rem,4vw,3.6rem); line-height: 1.02; letter-spacing: -.045em;
  margin: 0; color: #32404D;
}
.section-head h2::before {
  content: ""; display: block; width: 44px; height: 3px; margin-bottom: 18px;
  background: var(--copper); border-radius: 99px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 4px 0 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 8px 24px rgba(39,52,66,.035); transition: .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: #B9CBE0; box-shadow: 0 14px 32px rgba(13,71,161,.07); }
.section-alt .card { background: #F8FAFD; }
.card .num { font-size: .77rem; font-weight: 850; letter-spacing: .12em; color: var(--cobalt-mid); }
.card h3 { font-size: 1.2rem; line-height: 1.2; margin: 14px 0 10px; color: #34414E; }
.card p { margin: 0; color: var(--muted); }

.system-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.system-pill {
  padding: 18px; border-radius: 14px; border: 1px solid #CBD7E3; background: #F9FBFD;
  font-weight: 700; color: #465565; box-shadow: inset 3px 0 0 var(--cobalt-mid);
}

/* Flagship Blueprint block */
.offer {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cobalt-deep) 0%, var(--cobalt) 62%, #1A5EB7 100%);
  color: #fff; border-radius: 28px; padding: 50px;
  display: grid; grid-template-columns: 1fr .82fr; gap: 48px; align-items: center;
  box-shadow: 0 20px 50px rgba(13,71,161,.18);
}
.offer::before {
  content: ""; position: absolute; inset: 0; opacity: .11;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(255,255,255,.5) 1px,transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.offer > * { position: relative; z-index: 1; }
.offer .eyebrow { color: #BFD0F2; }
.offer .eyebrow::before { background: var(--copper); }
.offer h2 { font-size: clamp(2.4rem,5vw,4.5rem); letter-spacing: -.055em; line-height: .97; margin: 0 0 20px; }
.offer p { color: #D8E4F3; margin: 0; }
.offer-box {
  border: 1px solid rgba(255,255,255,.31); border-radius: 18px; padding: 27px;
  background: rgba(5,40,94,.34); box-shadow: inset 3px 0 0 var(--copper);
}
.offer-box strong { display: block; font-size: 1.15rem; margin-bottom: 10px; }
.offer .btn-primary { background: #F8FAFC; color: var(--cobalt-deep); border-color: #F8FAFC; margin-top: 22px; }

/* Process */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 850; color: var(--cobalt-mid); }
.step h3 { margin: 0 0 6px; color: #34414E; }
.step p { margin: 0; color: var(--muted); }

/* CTA */
.cta { padding: 92px 0; background: var(--bg); }
.cta-box {
  background: linear-gradient(135deg,#EBF2FF 0%,#F9FBFD 78%);
  border: 1px solid #C9D6E4; border-radius: 28px; padding: 56px; text-align: center;
  box-shadow: inset 0 3px 0 rgba(74,127,226,.82);
}
.cta-box h2 {
  font-size: clamp(2.2rem,5vw,4rem); letter-spacing: -.05em; line-height: 1;
  margin: 0 auto 18px; max-width: 800px; color: #32404D;
}
.cta-box p { color: var(--muted); max-width: 650px; margin: 0 auto 28px; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; background: var(--bg); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--cobalt); }

/* Interior pages */
.page-hero {
  position: relative; overflow: hidden; padding: 82px 0 54px;
  background: linear-gradient(120deg,var(--bg) 0%,#EBF2FF 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; width: 420px; height: 250px; right: 8%; top: -30px; opacity: .11;
  background-image: linear-gradient(rgba(13,71,161,.55) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(13,71,161,.55) 1px,transparent 1px);
  background-size: 22px 22px; transform: rotate(-7deg); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.8rem,6vw,5.15rem); line-height: .97; letter-spacing: -.055em; margin: 0 0 20px; color: #2F3B48; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 760px; }

.content { max-width: 820px; }
.content h2 { font-size: 2rem; letter-spacing: -.03em; margin-top: 48px; color: #33414E; }
.content h2::before { content: ""; display: block; width: 34px; height: 2px; background: var(--copper); margin-bottom: 12px; }
.content h3 { margin-top: 30px; color: #374552; }
.content p,.content li { color: var(--muted); }
.legal { padding-bottom: 80px; }
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; color: var(--cobalt); }
.notice {
  padding: 16px 18px; border: 1px solid #CDD8E4; background: #F9FBFD;
  border-radius: 12px; color: var(--muted); font-size: .95rem; margin: 24px 0;
  box-shadow: inset 3px 0 0 var(--cobalt-mid);
}
.kicker { font-size: 1.12rem; font-weight: 750; color: #536476; }

@media(max-width:900px) {
  .nav { min-height: 96px; }
  .hero-grid,.section-head,.offer { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: repeat(2,1fr); }
  .hero { padding-top: 64px; }
  .hero::after { right: -280px; opacity: .15; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 18px 20px; display: none;
    flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .nav .btn.nav-cta { display: none; }
}
@media(max-width:560px) {
  .container { width: min(calc(100% - 28px),var(--max)); }
  .hero h1 { font-size: 3.25rem; }
  .system-grid { grid-template-columns: 1fr; }
  .offer,.cta-box { padding: 30px; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-row { flex-direction: column; }
}
