:root {
  --ink-950: #081426;
  --ink-900: #0d1d33;
  --ink-800: #122642;
  --ink-700: #1d375b;
  --paper-100: #eff5ff;
  --paper-200: #d7e2f4;
  --gold-500: #d4aa63;
  --gold-400: #e7c78d;
  --gold-300: #f5ddaf;
  --mint-400: #93c9be;
  --max-width: 1180px;
  --shadow-lg: 0 20px 60px rgba(2, 11, 22, 0.38);
  --shadow-md: 0 12px 30px rgba(2, 11, 22, 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(140deg, var(--ink-950) 0%, #091a2f 38%, #0f2441 100%);
  color: var(--paper-100);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
  z-index: -3;
}

.bg-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -2;
}

.bg-glow-left {
  left: -220px;
  top: -80px;
  background: rgba(147, 201, 190, 0.2);
}

.bg-glow-right {
  right: -220px;
  top: 260px;
  background: rgba(212, 170, 99, 0.2);
}

a {
  color: inherit;
}

.site-header {
  max-width: var(--max-width);
  margin: 18px auto 0;
  padding: 14px 20px;
  border: 1px solid rgba(215, 226, 244, 0.14);
  border-radius: 18px;
  background: rgba(13, 29, 51, 0.76);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: sticky;
  top: 12px;
  z-index: 10;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 99, 0.5);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 14px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(239, 245, 255, 0.84);
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-300);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(215, 226, 244, 0.2);
  border-radius: 12px;
  background: rgba(13, 29, 51, 0.65);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper-100);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.section {
  margin-top: 56px;
}

.hero {
  margin-top: 44px;
  padding: 56px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(13, 29, 51, 0.93) 8%, rgba(16, 36, 63, 0.86) 100%);
  border: 1px solid rgba(215, 226, 244, 0.16);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(212, 170, 99, 0.2), transparent 46%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: var(--gold-300);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  margin-top: 14px;
  max-width: 780px;
  font-size: clamp(2rem, 3.9vw, 3.9rem);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 720px;
  line-height: 1.75;
  color: rgba(239, 245, 255, 0.82);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: #16243d;
  box-shadow: 0 10px 24px rgba(212, 170, 99, 0.36);
}

.btn-ghost,
.btn-nav {
  border-color: rgba(215, 226, 244, 0.3);
  color: var(--paper-100);
  background: rgba(13, 29, 51, 0.3);
}

.btn-nav {
  padding: 9px 14px;
}

.stat-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  border: 1px solid rgba(215, 226, 244, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(8, 20, 38, 0.6);
}

.stat-card p {
  margin: 0;
  color: rgba(239, 245, 255, 0.73);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-card h3 {
  margin-top: 12px;
  color: var(--gold-300);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.vertical-grid,
.flow-grid,
.blog-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel,
.flow-step,
.blog-card {
  border-radius: 20px;
  border: 1px solid rgba(215, 226, 244, 0.14);
  background: linear-gradient(155deg, rgba(13, 29, 51, 0.88), rgba(10, 22, 40, 0.85));
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.panel h3,
.flow-step h3,
.blog-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.panel p,
.flow-step p,
.blog-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(239, 245, 255, 0.82);
}

.panel ul,
.tech-layout ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(239, 245, 255, 0.88);
  line-height: 1.65;
}

.panel li + li,
.tech-layout li + li {
  margin-top: 8px;
}

.flow-step {
  position: relative;
}

.flow-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 99, 0.46);
  color: var(--gold-300);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 16px;
}

.panel-contrast {
  background: linear-gradient(160deg, rgba(13, 29, 51, 0.78), rgba(21, 58, 96, 0.75));
  border-color: rgba(147, 201, 190, 0.32);
}

.panel-contrast .btn {
  margin-top: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--mint-400);
  font-weight: 700;
}

.blog-card a {
  margin-top: auto;
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}

.cta {
  border-radius: 26px;
  border: 1px solid rgba(212, 170, 99, 0.38);
  background: linear-gradient(140deg, rgba(13, 29, 51, 0.78), rgba(16, 35, 59, 0.91));
  padding: 42px;
  text-align: center;
}

.cta h2 {
  max-width: 720px;
  margin: 0 auto;
}

.cta p {
  margin: 12px auto 0;
  max-width: 720px;
  color: rgba(239, 245, 255, 0.82);
  line-height: 1.7;
}

.cta .hero-actions {
  justify-content: center;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto 26px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(239, 245, 255, 0.7);
  font-size: 13px;
}

.site-footer a {
  color: var(--gold-300);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 1100px) {
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vertical-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    margin-inline: 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    border: 1px solid rgba(215, 226, 244, 0.18);
    border-radius: 16px;
    padding: 14px;
    background: rgba(13, 29, 51, 0.95);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .btn-nav {
    text-align: center;
  }

  .hero {
    padding: 34px 22px;
  }

  .stat-grid,
  .vertical-grid,
  .blog-grid,
  .flow-grid,
  .tech-layout {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 30px 20px;
    text-align: left;
  }

  .cta .hero-actions {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }
}

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