/* Reliacore.ai — modern energy-tech marketing site.
   Brand colours sampled from the logo; type: Manrope (SIL OFL), self-hosted. */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --navy: #1C223D;        /* wordmark navy */
  --navy-deep: #171E37;   /* shield navy */
  --navy-ink: #121831;    /* footer navy */
  --red: #CD1C21;         /* shield / .ai red */
  --red-dark: #A9161B;    /* hover */
  --grey: #65686E;        /* tagline grey */
  --grey-light: #C9CDD8;
  --tint: #F4F5F8;
  --border: #E3E5EB;
  --white: #FFFFFF;
  --text: #1C223D;
  --muted: #5B5F69;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 18px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(23,30,55,.05), 0 8px 28px rgba(23,30,55,.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; font-weight: 450;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.025em; font-weight: 800; color: inherit; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font); font-weight: 700; font-size: .95rem; letter-spacing: -0.005em;
  padding: .9em 1.45em; border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn .arrow { display: inline-block; transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-glow { box-shadow: 0 8px 24px -6px rgba(205,28,33,.55); }
.btn-ghost-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--white); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.btn-sm { padding: .7em 1.15em; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(23,30,55,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { width: 172px; height: auto; }
.site-nav ul { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-size: .93rem; font-weight: 700; color: var(--navy); text-decoration: none; padding: 6px 0; transition: color .15s; }
.site-nav a:not(.btn):hover { color: var(--red); }
.nav-cta-item { margin-left: 10px; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(205,28,33,.22), transparent 60%),
    radial-gradient(800px 600px at 0% 110%, rgba(64,80,140,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #222B4C 100%);
}
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #E6E8EF;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(205,28,33,.22); flex: none; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 2.9vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 26px; }
.hero-lead { font-size: 1.15rem; line-height: 1.6; color: #C9CDD8; max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; margin: 0 0 28px; }
.visual-frame { padding: 12px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.plate { width: 100%; border-radius: 14px; }
.plate-lines * { stroke: #FFFFFF; stroke-opacity: .58; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plate-lines .dash { stroke-dasharray: 5 7; stroke-opacity: .3; }
.plate-red * { stroke: #FF3B40; stroke-width: 2.2; }
.plate-red .pump { stroke: #FF3B40; stroke-width: 3.2; }
.plate-red .halo1 { stroke-opacity: .6; }
.plate-red .halo2 { stroke-opacity: .28; }
.visual-card {
  position: absolute; left: 28px; right: 28px; bottom: -36px;
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--white); color: var(--navy); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45);
  font-weight: 700; font-size: .98rem; line-height: 1.4;
}

/* Sections */
.section { position: relative; padding: 112px 0; }
.section-tint { background: var(--tint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.9rem); color: var(--navy-deep); }
.section-head-left { margin-left: 0; text-align: left; }
.section h2 { color: var(--navy-deep); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split-head h2 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.85rem); margin-bottom: 22px; }
.muted { color: var(--muted); font-size: 1.08rem; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 44px; box-shadow: var(--shadow); color: #3A3F4C; }
.panel p:last-child { margin-bottom: 0; }
.signoff { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.signoff img { width: 44px; height: auto; }
.signoff p { margin: 0; line-height: 1.2; }
.signoff-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.02em; }
.signoff-name span { color: var(--red); }
.signoff-tag { color: var(--grey); font-weight: 600; font-size: .95rem; }

.split-story { align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.story-lead { font-size: 1.3rem; line-height: 1.5; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.prose strong { color: var(--red); font-weight: 800; }
.prose .emph { margin-top: 1.6em; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy-deep); font-weight: 800; font-size: 1.15rem; line-height: 1.45; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(6, 1fr); }
.cards-5 .card { grid-column: span 2; }
.cards-5 .card:nth-child(n+4) { grid-column: span 3; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23,30,55,.05), 0 16px 36px rgba(23,30,55,.11); }
.card h3 { font-size: 1.15rem; letter-spacing: -0.015em; color: var(--navy-deep); margin: 20px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(205,28,33,.08); border: 1px solid rgba(205,28,33,.18); }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Dark section */
.section-dark { color: var(--white); overflow: hidden; background: linear-gradient(180deg, var(--navy-ink) 0%, var(--navy-deep) 100%); }
.section-dark .dark-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 420px at 12% 0%, rgba(205,28,33,.16), transparent 65%); }
.section-dark .container { position: relative; }
.section-dark .section-head h2 { color: var(--white); }
.section-dark .eyebrow { color: #FF6B70; }
.section-dark .eyebrow::before { background: #FF6B70; }
.card-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }
.card-dark:hover { border-color: rgba(255,255,255,.26); box-shadow: none; }
.card-dark h3 { color: var(--white); }
.card-dark p { color: #B9BECC; }
.card-dark .icon-tile { background: rgba(205,28,33,.16); border-color: rgba(205,28,33,.4); }
.card-dark .icon-tile svg { stroke: #FF5A5F; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow); }
.step-num { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .08em; color: var(--red); padding: 6px 10px; border-radius: 999px; background: rgba(205,28,33,.08); }
.step h3 { font-size: 1.3rem; color: var(--navy-deep); margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); }

.closing-panel {
  position: relative; overflow: hidden; margin-top: 72px; padding: 56px 60px; border-radius: 22px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(205,28,33,.28), transparent 65%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  box-shadow: 0 30px 60px -28px rgba(23,30,55,.6);
}
.closing-pre { color: #C9CDD8; font-weight: 600; margin-bottom: 12px; }
.closing-panel h2 { color: var(--white) !important; font-size: clamp(1.7rem, 1rem + 1.9vw, 2.5rem); max-width: 24ch; }

/* Footer */
.site-footer { background: var(--navy-ink); color: var(--grey-light); border-top: 3px solid var(--red); }
.footer-top { padding: 88px 0 72px; }
.footer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.footer-brandblock img { width: 190px; height: auto; margin-bottom: 28px; }
.footer-statement { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--white); margin-bottom: 16px; }
.footer-sub { color: #AEB3C2; max-width: 44ch; margin: 0; }
.contact-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 40px; }
.contact-card h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.contact-card p { color: #AEB3C2; margin-bottom: 26px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; font-size: .88rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: rgba(255,255,255,.09); }
@media (max-width: 640px) { .footer-bottom::before { left: 20px; right: 20px; } }
.footer-bottom p { margin: 0; color: #8C92A4; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #AEB3C2; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; padding-bottom: 96px; }
  .hero-visual { max-width: 720px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .cards-5 .card, .cards-5 .card:nth-child(n+4) { grid-column: auto; }
  .cards-5 .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 0; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; position: relative; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, background-color .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(23,30,55,.08); display: none; }
  .no-js .site-nav { position: static; display: block; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav li + li { border-top: 1px solid var(--border); }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; }
  .nav-cta-item { margin: 12px 0 0; border-top: 0 !important; }
  .nav-cta-item .btn { width: 100%; }
  .split, .footer-cta { grid-template-columns: 1fr; gap: 40px; }
  .sticky { position: static; }
  .steps { grid-template-columns: 1fr; }
  .closing-panel { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .brand img { width: 148px; }
  .hero-inner { padding-top: 48px; padding-bottom: 84px; gap: 44px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .visual-frame { padding: 8px; border-radius: 16px; }
  .visual-card { left: 12px; right: 12px; bottom: -34px; padding: 12px 14px; font-size: .9rem; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .cards-4, .cards-5 { grid-template-columns: 1fr; }
  .cards-5 .card:last-child { grid-column: auto; }
  .panel { padding: 28px 24px; }
  .closing-panel { padding: 36px 24px; }
  .contact-card { padding: 28px 24px; }
  .contact-actions .btn { flex: 1 1 auto; }
  .footer-top { padding: 64px 0 52px; }
}
