:root {
  --navy-950: #080D18;
  --navy-900: #0B1220;
  --navy-800: #131B2E;
  --navy-700: #1B2540;
  --line: #26314B;
  --gold: #C9A961;
  --gold-soft: #E4CD91;
  --text-hi: #F2F3F7;
  --text-mid: #AEB6C7;
  --text-dim: #7A8699;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, Segoe UI, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.22, .68, 0, 1);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text-mid);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--text-hi);
  margin: 0;
  font-weight: 500
}

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

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

::selection {
  background: var(--gold);
  color: var(--navy-950)
}

.container {
  max-width: 1200px
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  padding: .65rem 1.5rem;
  transition: all .25s var(--ease)
}

.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy-950)
}

.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-950);
  transform: translateY(-2px)
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold)
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-950)
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text-hi)
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold)
}

/* ---------- Navbar ---------- */
#mainNav {
  background: rgba(8, 13, 24, .7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
  padding: 1.1rem 0;
}

#mainNav.scrolled {
  border-color: var(--line);
  padding: .7rem 0;
  background: rgba(8, 13, 24, .92)
}

.brand-word {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text-hi);
  letter-spacing: .2px
}

.fw-400 {
  font-weight: 400;
  color: var(--text-mid)
}

.nav-link {
  color: var(--text-mid);
  font-size: .93rem;
  font-weight: 500;
  padding: .5rem 1rem !important
}

.nav-link:hover {
  color: var(--gold)
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 169, 97, .14), transparent 60%),
    var(--navy-900);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../images/pattern.svg');
  background-size: 240px 240px;
  opacity: .5;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative
}

.eyebrow {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 1rem
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.5px
}

.hero-title em {
  font-style: italic;
  color: var(--gold)
}

.hero-lead {
  margin: 1.4rem 0 1.8rem;
  font-size: 1.08rem;
  max-width: 520px;
  color: var(--text-mid)
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.8rem
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: .82rem;
  color: var(--text-dim)
}

.hero-trust i {
  color: var(--gold);
  margin-right: .4rem
}

/* Portfolio widget card */
.portfolio-widget {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}

.pw-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .6rem
}

.pw-label {
  font-size: .78rem;
  color: var(--text-dim);
  text-transform: none
}

.pw-value {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--text-hi);
  margin-top: .2rem
}

.pw-badge {
  background: rgba(52, 211, 153, .12);
  color: #34D399;
  font-size: .85rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px
}

.pw-chart {
  width: 100%;
  height: 96px;
  margin: .6rem 0 1rem
}

.pw-rows {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  border-top: 1px solid var(--line);
  padding-top: .9rem
}

.pw-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-mid)
}

.pw-row i {
  font-size: .6rem;
  margin-right: .4rem
}

/* ---------- Trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  background: var(--navy-950)
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--text-dim);
  font-size: .85rem
}

.trust-row span:first-child {
  color: var(--text-hi);
  font-weight: 600
}

/* ---------- Sections ---------- */
.section {
  padding: 6.5rem 0
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2
}

.section-text {
  color: var(--text-mid);
  font-size: 1.02rem
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px)
}

.service-card i {
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: .6rem
}

.service-card p {
  font-size: .9rem;
  color: var(--text-dim);
  margin: 0
}

/* ---------- Stats ---------- */
.stats-section {
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--gold)
}

.stat-label {
  color: var(--text-dim);
  font-size: .88rem;
  margin-top: .3rem
}

/* ---------- Process ---------- */
.process-card {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  height: 100%
}

.process-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem
}

.process-card h3 {
  font-size: 1.08rem;
  margin-bottom: .5rem
}

.process-card p {
  font-size: .9rem;
  color: var(--text-dim);
  margin: 0
}

/* ---------- Reviews ---------- */
.reviews-section {
  background: var(--navy-950)
}

.review-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%
}

.review-stars {
  color: var(--gold);
  font-size: .85rem;
  margin-bottom: 1rem;
  letter-spacing: 2px
}

.review-card p {
  color: var(--text-mid);
  font-size: .95rem;
  font-style: italic
}

.review-author {
  margin-top: 1.3rem;
  font-weight: 600;
  color: var(--text-hi);
  font-size: .9rem
}

.review-author span {
  display: block;
  font-weight: 400;
  color: var(--text-dim);
  font-size: .8rem;
  margin-top: .15rem
}

/* ---------- Plans ---------- */
.plan-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  height: 100%;
  position: relative
}

.plan-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 169, 97, .08), var(--navy-800))
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 2.2rem;
  background: var(--gold);
  color: var(--navy-950);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px
}

.plan-card h3 {
  font-size: 1.3rem;
  margin-bottom: .3rem
}

.plan-desc {
  color: var(--text-dim);
  font-size: .85rem;
  margin-bottom: 1.2rem
}

.plan-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--text-hi);
  margin-bottom: 1.4rem
}

.plan-price span {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text-dim);
  font-weight: 400
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: .9rem;
  color: var(--text-mid)
}

.plan-list i {
  color: var(--gold);
  margin-right: .5rem
}

/* ---------- CTA / contact ---------- */
.cta-section {
  position: relative;
  padding: 6.5rem 0;
  background: var(--navy-950);
  overflow: hidden
}

.cta-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem
}

.cta-text {
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 2.5rem
}

.contact-form {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left
}

.form-label {
  color: var(--text-mid);
  font-size: .85rem;
  margin-bottom: .35rem
}

.form-control,
.form-select {
  background: var(--navy-900);
  border: 1px solid var(--line);
  color: var(--text-hi);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .92rem;
}

.form-control:focus,
.form-select:focus {
  background: var(--navy-900);
  border-color: var(--gold);
  color: var(--text-hi);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, .18);
}

.form-note {
  font-size: .82rem;
  color: var(--gold);
  margin-top: .7rem;
  min-height: 1.2em
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  padding: 5rem 0 2rem;
  font-size: .88rem
}

.footer h4 {
  font-family: var(--sans);
  color: var(--text-hi);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1rem
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.footer ul a {
  color: var(--text-dim)
}

.footer ul a:hover {
  color: var(--gold)
}

.footer-text {
  color: var(--text-dim);
  font-size: .85rem
}

.social-row {
  display: flex;
  gap: .8rem;
  margin-top: 1rem
}

.social-row a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid)
}

.social-row a:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.6rem;
  color: var(--text-dim);
  font-size: .8rem
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-950);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 999;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

#backToTop:hover {
  background: var(--gold-soft)
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0)
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  #backToTop {
    transition: opacity .2s
  }
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width:991.98px) {
  .hero {
    padding: 8rem 0 4rem
  }

  .section {
    padding: 4.5rem 0
  }

  .trust-row {
    justify-content: flex-start
  }
}