:root {
  color-scheme: light;
  --ink: #0a1b31;
  --ink-soft: #425067;
  --navy: #082a55;
  --navy-deep: #061a34;
  --green: #0eaa55;
  --green-bright: #18c96b;
  --mint: #dcf7e8;
  --cream: #fbfaf5;
  --paper: #ffffff;
  --line: #dce5df;
  --shadow: 0 24px 70px rgba(7, 35, 68, 0.13);
  --radius: 1.4rem;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .7rem;
  background: var(--navy-deep);
  color: white;
  transition: top .2s ease;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(8, 42, 85, .08);
  background: rgba(251, 250, 245, .9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.8rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 215px; height: auto; }

.menu-toggle {
  display: none;
  border: 0;
  border-radius: .75rem;
  padding: .55rem .75rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  padding: .55rem .8rem;
  border-radius: .65rem;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--mint); color: var(--navy); }
.site-nav .nav-cta { margin-left: .3rem; background: var(--navy); color: white; }
.site-nav .nav-cta:hover { background: var(--green); color: white; }

.shell { width: min(calc(100% - 2rem), var(--max)); margin: auto; }
.narrow { width: min(calc(100% - 2rem), 780px); margin: auto; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 83% 17%, rgba(24, 201, 107, .22), transparent 20rem),
    radial-gradient(circle at 8% 76%, rgba(8, 42, 85, .1), transparent 24rem),
    var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 26rem;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 42, 85, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(14, 170, 85, .04), 0 0 0 7rem rgba(8, 42, 85, .03);
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 840px; margin-bottom: 1.4rem; font-size: clamp(3.2rem, 7.8vw, 6.7rem); }
.hero h1 span, .accent { color: var(--green); }
.lede { max-width: 670px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.1rem; border-radius: .82rem; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(7, 35, 68, .07); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7, 35, 68, .13); }
.button.primary { border-color: var(--navy); background: var(--navy); color: white; }
.button.primary:hover { border-color: var(--green); background: var(--green); }
.button.ghost { background: transparent; box-shadow: none; }

.forge-card { position: relative; min-height: 380px; padding: 2rem; border: 1px solid rgba(255,255,255,.15); border-radius: 2rem; background: linear-gradient(145deg, var(--navy-deep), #0b3768); color: white; box-shadow: var(--shadow); }
.forge-card::before { content: ""; position: absolute; inset: 1.1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.3rem; }
.forge-mark { position: absolute; left: 50%; top: 46%; width: 48%; transform: translate(-50%, -50%); filter: drop-shadow(0 20px 35px rgba(0,0,0,.28)); }
.spark { position: absolute; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 22px rgba(24,201,107,.8); }
.spark.one { left: 18%; top: 23%; }
.spark.two { right: 19%; top: 31%; width: .35rem; height: .35rem; }
.spark.three { right: 28%; bottom: 20%; width: .72rem; height: .72rem; }
.forge-note { position: absolute; left: 2rem; bottom: 1.7rem; color: #c9d9e8; font-size: .88rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy-deep); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-head h2 { max-width: 700px; margin-bottom: 0; font-size: clamp(2.1rem, 5vw, 4rem); }
.section-head p { max-width: 480px; margin: 0; color: var(--ink-soft); }
.dark .section-head p { color: #b8c9d9; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { position: relative; overflow: hidden; min-height: 400px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 30px rgba(7, 35, 68, .06); }
.card:hover .app-symbol { transform: rotate(-3deg) scale(1.04); }
.app-symbol { width: 4.8rem; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 3.4rem; border-radius: 1.25rem; transition: transform .25s ease; }
.app-symbol svg { width: 64%; height: 64%; }
.hopstart { background: #e6f5df; color: #247340; }
.batchwell { background: #e7f4f8; color: #126a78; }
.balentra { background: #ebeafd; color: #4b4bbb; }
.tag { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; background: #edf2ef; color: var(--ink-soft); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { margin: .9rem 0 .55rem; font-size: 1.7rem; }
.card p { color: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: var(--navy); font-weight: 850; text-decoration: none; }
.text-link:hover { color: var(--green); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
.number { color: var(--green-bright); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.principle h3 { margin: 2rem 0 .65rem; font-size: 1.35rem; }
.principle p { margin: 0; color: #b8c9d9; }

.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 2rem; background: var(--mint); }
.cta-panel h2 { margin-bottom: .7rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.cta-panel p { margin: 0; color: var(--ink-soft); }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 3.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 20%, rgba(24,201,107,.18), transparent 24rem); }
.page-hero h1 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(2.8rem, 7vw, 5.7rem); }
.page-hero .lede { max-width: 760px; }

.product-hero { display: grid; grid-template-columns: 1fr .7fr; gap: 4rem; align-items: center; }
.product-art { min-height: 330px; display: grid; place-items: center; border-radius: 2rem; }
.product-art .app-symbol { width: min(52%, 220px); margin: 0; border-radius: 2.5rem; box-shadow: 0 24px 60px rgba(7,35,68,.15); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.feature h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.support-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.support-nav { position: sticky; top: 6.5rem; display: grid; gap: .5rem; }
.support-nav a { padding: .75rem 1rem; border-radius: .75rem; background: var(--paper); color: var(--ink-soft); font-weight: 750; text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.support-nav a:hover { color: var(--green); }
.faq { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.faq h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.faq p { margin: 0; color: var(--ink-soft); }

.prose { padding: 4rem 0 6rem; }
.prose h2 { margin-top: 3rem; font-size: 1.75rem; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--green); font-weight: 700; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--green); border-radius: .5rem; background: var(--mint); }

.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.contact-card { padding: 2rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper); }
.contact-card p { color: var(--ink-soft); }
.contact-card a { color: var(--green); font-weight: 850; }

.site-footer { padding: 3.5rem 0; border-top: 1px solid rgba(255,255,255,.1); background: var(--navy-deep); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(2,.6fr); gap: 2rem; }
.footer-brand img { width: 190px; filter: drop-shadow(0 0 0 transparent); }
.footer-brand strong { display: block; margin-bottom: .65rem; font-size: 1.35rem; letter-spacing: -.02em; }
.footer-brand p { max-width: 360px; color: #a9bdd1; }
.footer-col h2 { margin-bottom: .85rem; color: #d7e3ee; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-col a { display: block; margin: .45rem 0; color: #a9bdd1; text-decoration: none; }
.footer-col a:hover { color: var(--green-bright); }
.fine-print { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: #7890a7; font-size: .82rem; }
.not-found { min-height: 100vh; display: grid; place-items: center; }

@media (max-width: 900px) {
  .hero-grid, .product-hero, .support-grid { grid-template-columns: 1fr; }
  .cards, .feature-grid, .principles { grid-template-columns: 1fr 1fr; }
  .forge-card { min-height: 330px; }
  .support-nav { position: static; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); display: none; flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav .nav-cta { margin-left: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 1rem; }
  .cards, .feature-grid, .principles, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .support-nav { grid-template-columns: 1fr; }
  .brand img { width: 185px; }
  .hero { padding-top: 4rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
