:root {
  --bg-0: #faf8f2;
  --navy: #04264d;
  --navy-soft: #0f3a66;
  --gold: #c8a12b;
  --gold-light: #c8a12b;
  --gold-deep: #8a6518;
  --cream: #0c1f38;
  --ice: #3f6ea8;
  --text-dim: rgba(12, 31, 56, .64);
  --text-faint: rgba(12, 31, 56, .42);
  --glass-bg: #ffffff;
  --glass-border: rgba(4, 38, 77, .10);
  --ease: cubic-bezier(.16, .84, .44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(4, 38, 77, .07), transparent 60%),
    radial-gradient(ellipse 900px 700px at 90% 10%, rgba(200, 161, 43, .10), transparent 55%),
    radial-gradient(ellipse 1100px 800px at 50% 120%, rgba(4, 38, 77, .06), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.font-display {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- background layers ---------- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 161, 43, .16) 0%, transparent 65%);
  will-change: transform;
  opacity: 0;
  transition: opacity .4s ease;
}

@media (pointer:coarse) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- layout shell ---------- */
main,
header,
footer {
  position: relative;
  z-index: 3;
}

section {
  padding: 160px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width:720px) {
  section {
    padding: 110px 20px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 18px;
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200, 161, 43, .6);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 161, 43, .55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(200, 161, 43, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(200, 161, 43, 0);
  }
}

/* ---------- header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 40px;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(250, 248, 242, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--glass-border);
  padding: 6px 40px;
  box-shadow: 0 1px 24px rgba(4, 38, 77, .06);
}

@media (max-width:720px) {
  header {
    padding: 9px 20px;
  }

  header.scrolled {
    padding: 4px 20px;
  }
}

.brand {
  display: flex;
  align-self: flex-start;
  margin-bottom: -36px;
  transition: margin-bottom .4s var(--ease);
}

.brand svg {
  height: 64px;
  width: auto;
  display: block;
  transition: height .4s var(--ease);
}

header.scrolled .brand {
  margin-bottom: 0;
}

header.scrolled .brand svg {
  height: 48px;
}

nav ul {
  display: flex;
  gap: 38px;
}

nav a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}

nav a:hover {
  color: var(--cream);
}

nav a:hover::after {
  width: 100%;
}

@media (max-width:780px) {
  nav {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, #e8ca72, var(--gold));
  color: #241a04;
  box-shadow: 0 8px 24px -8px rgba(200, 161, 43, .55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(200, 161, 43, .7);
}

.btn-ghost {
  background: rgba(4, 38, 77, .04);
  border-color: rgba(4, 38, 77, .16);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(4, 38, 77, .08);
  border-color: rgba(4, 38, 77, .3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 24px 60px;
  overflow: hidden;
}

.hero-watermark {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  opacity: .14;
  z-index: 0;
  pointer-events: none;
  animation: spin-slow 90s linear infinite;
}

.hero-watermark svg {
  width: 100%;
  height: 100%;
}

@keyframes spin-slow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(32px, 5.8vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

.hero h1 .line-gold {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 55%, var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 42px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .6;
  pointer-events: none;
  animation: cue-bob 2.6s ease-in-out infinite;
  transition: opacity .5s ease;
}

.scroll-cue.hidden {
  opacity: 0;
}

@keyframes cue-bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

.scroll-cue span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border-radius: 12px;
  border: 1.5px solid rgba(4, 38, 77, .28);
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    top: 6px;
  }

  60% {
    opacity: 0;
    top: 16px;
  }

  61% {
    opacity: 0;
    top: 6px;
  }

  100% {
    opacity: 1;
    top: 6px;
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- section heads ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width:900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(4, 38, 77, .18);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .6;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 161, 43, .4);
  background: #fdf9ee;
  box-shadow: 0 16px 36px -16px rgba(4, 38, 77, .22);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 161, 43, .14);
  color: var(--gold-deep);
  margin-bottom: 22px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 14.8px;
  line-height: 1.65;
}

.card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
}

/* ---------- credibility ---------- */
.credibility {
  padding-top: 40px;
  padding-bottom: 40px;
}

.cred-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 40px -20px rgba(4, 38, 77, .2);
}

.cred-panel .quote-mark {
  font-family: 'Plus Jakarta Sans';
  font-size: 64px;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
  margin-bottom: 8px;
}

.cred-panel p.statement {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 500;
  max-width: 760px;
  margin: 0 auto 30px;
  font-family: 'Plus Jakarta Sans';
  letter-spacing: -.01em;
  color: var(--cream);
}

.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(200, 161, 43, .35);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

@media (max-width:600px) {
  .cred-panel {
    padding: 40px 24px;
  }
}

/* ---------- contact ---------- */
.contact-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 52px;
  display: grid;
  gap: 20px;
  box-shadow: 0 14px 40px -20px rgba(4, 38, 77, .2);
}

@media (max-width:600px) {
  .contact-panel {
    padding: 30px 22px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width:600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.field input,
.field textarea {
  background: #faf8f2;
  border: 1px solid rgba(4, 38, 77, .14);
  border-radius: 11px;
  padding: 13px 16px;
  color: var(--cream);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .3s ease, background .3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-right: auto;
}

.success-msg {
  text-align: center;
  padding: 30px 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.success-msg.show {
  display: flex;
}

.success-msg .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 161, 43, .14);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-msg h3 {
  font-size: 19px;
}

.success-msg p {
  color: var(--text-dim);
  font-size: 14.5px;
}

.form-fields {
  display: contents;
}

form.sent .form-fields,
form.sent .contact-submit {
  display: none;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.foot-brand svg {
  width: 16px;
  height: auto;
}

footer .foot-right {
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer .foot-right a:hover {
  color: var(--gold-deep);
}

@media (max-width:600px) {
  footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

::selection {
  background: rgba(200, 161, 43, .35);
  color: var(--cream);
}
