/* Forward Forge Financial — landing */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2"),
       url("../fonts/source-sans-3.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-semibold.woff2") format("woff2"),
       url("../fonts/barlow-condensed-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-bold.woff2") format("woff2"),
       url("../fonts/barlow-condensed-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-extrabold.woff2") format("woff2"),
       url("../fonts/barlow-condensed-extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c51a14;
  --red-bright: #e23d2c;
  --blue: #1e4f9e;
  --blue-bright: #3d7ad6;
  --ink: #16181d;
  --ink-muted: #4e5560;
  --snow: #f4f5f7;
  --soft-gray: #e6e8ed;
  --slate: #12151b;
  --slate-2: #1c2129;
  --slate-3: #262c36;
  --hero: #0b0d11;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 18, 24, 0.08);
  --max: 1120px;
  --header-h: 72px;
}

html[data-theme="light"] {
  --bg: var(--soft-gray);
  --bg-elev: #f7f8fa;
  --text: var(--ink);
  --muted: var(--ink-muted);
  --line: rgba(22, 24, 29, 0.1);
  --card-border: rgba(22, 24, 29, 0.08);
  --focus: var(--blue);
}

html[data-theme="dark"] {
  --bg: var(--slate);
  --bg-elev: var(--slate-2);
  --text: #f2f3f5;
  --muted: #a7aeb8;
  --line: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.08);
  --focus: var(--blue-bright);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--snow);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* Top brand hairline: red → white → blue */
.brand-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--red) 0%, #f4f5f7 50%, var(--blue) 100%);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header sits on the dark hero */
.site-header {
  background: var(--hero);
  color: #f2f3f5;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f2f3f5;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-name span {
  color: var(--red-bright);
  margin-left: 0.4em;
}

.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f3f5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.theme-toggle:focus-visible,
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.theme-toggle .icon-sun,
html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 50% 55% at 20% 45%, rgba(197, 26, 20, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 55% at 80% 50%, rgba(30, 79, 158, 0.18), transparent 60%),
    var(--hero);
  color: #f2f3f5;
  padding: 32px 0 88px;
  text-align: center;
}

.hero-logo {
  width: min(420px, 78vw);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 10px;
}

.hero h1 .financial {
  display: block;
  color: var(--red-bright);
  font-size: 0.62em;
  letter-spacing: 0.18em;
  margin-top: 0.22em;
}

.rule {
  width: 140px;
  height: 3px;
  margin: 18px auto 22px;
  border: 0;
  background: linear-gradient(90deg, var(--red), #f4f5f7, var(--blue));
}

.tagline {
  max-width: 36em;
  margin: 0 auto 22px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #c5cad3;
  line-height: 1.5;
}

.pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e8eaee;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--red) 0%, #9a1a2a 50%, var(--blue) 100%);
  background-size: 140% 100%;
  background-position: 0 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 79, 158, 0.28);
}

.btn-primary:hover {
  background-position: 100% 0;
}

/* Sections */
main {
  background: var(--bg);
}

.section {
  padding: 80px 0;
}

.section h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-align: center;
}

.lede {
  text-align: center;
  color: var(--muted);
  max-width: 38em;
  margin: 0 auto 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
}

.card:nth-child(1)::before {
  background: var(--red);
}

.card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.card:nth-child(3)::before {
  background: var(--blue);
}

.card-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 12px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Interest */
.interest {
  padding-bottom: 96px;
  padding-top: 8px;
}

.interest-panel {
  background: var(--bg-elev);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.interest-panel h2 {
  margin-bottom: 10px;
}

.interest-panel p {
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 24px;
}

.interest-panel a.mail {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.interest-panel a.mail:hover {
  color: var(--blue);
}

html[data-theme="dark"] .interest-panel a.mail:hover {
  color: var(--blue-bright);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.copyright {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.disclaimer {
  max-width: 46em;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .brand-name .short-hide {
    display: none;
  }

  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  body {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .theme-toggle,
  .btn-primary {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
