@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --brand-950: #182a59;
  --brand-900: #203a7b;
  --brand-800: #2a4f9f;
  --brand-700: #3f66b8;
  --brand-100: #e8effd;
  --surface-0: #f4f6fb;
  --surface-1: #ecf0f8;
  --surface-2: #e2e9f6;
  --ink-900: #1b2847;
  --ink-700: #4a5877;
  --ink-500: #6e7b97;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: var(--ink-900);
  background:
    radial-gradient(1200px 600px at 95% -10%, rgba(42, 79, 159, 0.15), transparent 60%),
    radial-gradient(1000px 520px at -10% 5%, rgba(32, 58, 123, 0.12), transparent 55%),
    linear-gradient(180deg, var(--surface-0) 0%, #f7f9fd 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

main > section {
  position: relative;
}

/* Navigation */
header,
nav {
  border: 0 !important;
}

.sticky.top-0 {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(31, 63, 143, 0.12) !important;
  box-shadow: 0 10px 28px rgba(20, 42, 88, 0.08) !important;
}

nav a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.09em !important;
  color: var(--ink-700) !important;
  transition: color 180ms ease, opacity 180ms ease;
}

nav a:hover {
  color: var(--brand-900) !important;
}

nav a.border-b-2,
nav a.border-b {
  color: var(--brand-900) !important;
  border-color: var(--brand-900) !important;
}

nav img[alt='Ameer Global Logo'] {
  width: 190px !important;
  height: auto !important;
}

@media (min-width: 768px) {
  nav img[alt='Ameer Global Logo'] {
    width: 275px !important;
  }
}

.site-nav-shell {
  min-height: 88px;
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-nav-links {
  background: rgba(237, 243, 255, 0.88);
  border: 1px solid rgba(31, 63, 143, 0.14);
  border-radius: 999px;
  padding: 0.28rem;
  gap: 0.18rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.52rem 1.05rem;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em !important;
  color: rgba(27, 40, 71, 0.75) !important;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav-link:hover {
  color: var(--brand-900) !important;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
}

.site-nav-link-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
  box-shadow: 0 8px 18px rgba(31, 63, 143, 0.28);
}

.site-nav-link-active:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
}

.site-nav-cta {
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
}

@media (max-width: 767px) {
  .site-nav-shell {
    min-height: 78px;
  }

  .site-nav-right {
    gap: 0;
  }
}

/* Typography */
h1,
h2,
h3,
.font-display,
.font-headline {
  font-family: 'DM Serif Display', serif !important;
  color: var(--brand-950) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.1;
}

p,
li,
span,
label,
input,
textarea,
button,
a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Keep icon font from being overridden by global typography */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.font-bold {
  font-weight: 600 !important;
}

/* Scale down oversized generated headings */
.text-9xl {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem) !important;
}

.text-8xl {
  font-size: clamp(2.2rem, 6vw, 4.2rem) !important;
}

.text-7xl {
  font-size: clamp(2rem, 5.5vw, 3.7rem) !important;
}

.text-6xl {
  font-size: clamp(1.85rem, 4.8vw, 3.15rem) !important;
}

.text-5xl {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem) !important;
}

.text-xl {
  font-size: 1.03rem !important;
}

/* Hero treatment */
.home-page .hero-premium {
  min-height: min(94vh, 920px) !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.home-page .hero-premium .absolute.inset-0 {
  position: absolute;
  overflow: hidden;
}

.hero-premium-shell {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-terminal-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(88%) contrast(95%);
}

.hero-premium-overlay {
  background:
    linear-gradient(180deg, rgba(7, 16, 34, 0.18) 0%, rgba(7, 16, 34, 0.42) 100%);
}

.hero-premium-shade {
  background: linear-gradient(90deg, rgba(6, 14, 29, 0.84) 0%, rgba(8, 17, 36, 0.58) 54%, rgba(8, 17, 36, 0) 100%);
}

.hero-premium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(201, 216, 248, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(229, 238, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-premium-title {
  margin: 0;
  max-width: 10ch;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(3.6rem, 7vw, 6.9rem);
  font-weight: 600 !important;
  line-height: 0.92;
  letter-spacing: -0.045em !important;
  color: #f7fbff !important;
  text-shadow: 0 16px 40px rgba(8, 18, 40, 0.34);
}

.hero-premium-title span {
  display: block;
  color: #d9e4fa !important;
}

.hero-premium-copy {
  max-width: 39rem;
  margin: 1.6rem 0 2.3rem;
  color: rgba(236, 243, 255, 0.88) !important;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem) !important;
  line-height: 1.8;
}

.hero-premium-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin-top: 4.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(214, 226, 249, 0.18);
}

.hero-metric-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(178, 197, 233, 0.72);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-premium-metrics strong {
  display: block;
  color: #eef4ff;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}

.home-page .hero-premium .bg-white\/10 {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(205, 221, 249, 0.28) !important;
  box-shadow: none !important;
}

.home-page .hero-premium .bg-primary:hover,
.home-page .hero-premium .bg-secondary:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(24, 46, 97, 0.2);
}

@media (max-width: 900px) {
  .hero-premium-shade {
    width: 100% !important;
    background: linear-gradient(180deg, rgba(7, 16, 34, 0.22) 0%, rgba(7, 16, 34, 0.74) 100%);
  }

  .hero-premium-title {
    max-width: 12ch;
  }

  .hero-premium-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
  }
}

/* Buttons */
.bg-primary,
.bg-secondary {
  border-radius: 0.7rem !important;
  border: 1px solid transparent;
  color: #f3f7ff !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(24, 46, 97, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.bg-primary {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800)) !important;
}

.bg-secondary {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700)) !important;
}

.bg-primary:hover,
.bg-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 43, 92, 0.26);
}

.bg-white\/10 {
  background: rgba(29, 58, 124, 0.36) !important;
  border: 1px solid rgba(174, 198, 248, 0.45) !important;
  color: #edf3ff !important;
  box-shadow: 0 10px 26px rgba(13, 28, 60, 0.26) !important;
}

/* Card + section refinement */
.shadow-2xl,
.hover\:shadow-2xl:hover,
.shadow-\[0_40px_100px_rgba\(0\,0\,0\,0\.08\)\] {
  box-shadow: 0 14px 36px rgba(25, 45, 95, 0.13) !important;
}

.rounded-xl {
  border-radius: 1rem !important;
}

.bg-surface,
.bg-surface-container-low,
.bg-surface-container-lowest,
.bg-surface-container-high,
.bg-\[\#f5f4f0\] {
  background-color: transparent !important;
}

main > section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(232, 239, 253, 0.55), rgba(244, 247, 253, 0.5)) !important;
}

main > section:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.9), rgba(238, 243, 252, 0.56)) !important;
}

main > section {
  opacity: 0;
  transform: translateY(22px);
  animation: sectionReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

main > section:nth-of-type(1) {
  animation-delay: 80ms;
}

main > section:nth-of-type(2) {
  animation-delay: 160ms;
}

main > section:nth-of-type(3) {
  animation-delay: 240ms;
}

main > section:nth-of-type(4) {
  animation-delay: 320ms;
}

main > section:nth-of-type(5) {
  animation-delay: 400ms;
}

/* Reduce decorative noise */
.heritage-watermark,
.heritage-ghost {
  opacity: 0.02 !important;
}

/* Inputs */
input,
textarea {
  border-radius: 0.45rem !important;
  border-color: rgba(38, 63, 133, 0.22) !important;
}

input:focus,
textarea:focus {
  border-color: var(--brand-900) !important;
  box-shadow: 0 0 0 3px rgba(38, 63, 133, 0.14) !important;
}

/* Micro-interactions */
a,
button,
.group,
img {
  transition: all 200ms ease;
}

.group:hover img {
  transform: scale(1.03) translateY(-2px);
}

/* Progressive entrance animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer cleanup */
footer {
  border-top: 1px solid rgba(24, 42, 89, 0.12) !important;
}

footer a,
footer p,
footer span {
  color: var(--ink-700) !important;
}

/* Products hero readability reset */
body .label-md,
body .text-on-surface-variant {
  color: var(--ink-700) !important;
}
