/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #093388;
  --primary-light: #1a4db5;
  --primary-dark: #061f55;
  --primary-glow: rgba(9,51,136,0.18);
  --hero-bg: #07091a;
  --hero-fg: #f5f7ff;
  --hero-muted: #8e9abf;
  --background: #ffffff;
  --surface: #f4f6fb;
  --surface-elevated: #ffffff;
  --foreground: #0d1124;
  --muted: #6b7497;
  --border: #e2e7f5;
  --destructive: #e03c3c;
  --radius: 0.75rem;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(9,51,136,0.08), 0 1px 2px rgba(9,51,136,0.04);
  --shadow-md: 0 4px 16px rgba(9,51,136,0.12), 0 2px 6px rgba(9,51,136,0.06);
  --shadow-glow: 0 0 40px rgba(9,51,136,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
  .section { padding: 7rem 3rem; }
}

/* ===== TYPOGRAPHY ===== */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--foreground);
}

.heading-hero {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--hero-fg);
}

.text-gradient {
  background: linear-gradient(135deg, #4a7fff 0%, var(--primary) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(9,51,136,0.35);
}

.btn-primary:hover { box-shadow: 0 6px 24px rgba(9,51,136,0.45); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(245,247,255,0.25);
  color: var(--hero-fg);
}

.btn-outline:hover { background: rgba(245,247,255,0.07); }

/* ===== CARDS ===== */
.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 9, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,247,255,0.08);
  height: 66px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hero-muted);
  transition: color 0.18s;
}

.nav-links a:hover { color: var(--hero-fg); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.55rem 1.25rem;
  border-radius: 0.6rem;
  box-shadow: 0 3px 12px rgba(9,51,136,0.4);
}

.nav-cta:hover { opacity: 0.88; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hero-fg);
  padding: 0.25rem;
}

#mobile-menu {
  display: none;
  background: var(--hero-bg);
  position: fixed;
  top: 66px; left: 0; right: 0;
  z-index: 99;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(245,247,255,0.08);
  flex-direction: column;
  gap: 1rem;
}

#mobile-menu a {
  color: var(--hero-muted);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 0.25rem 0;
}

#mobile-menu a:hover { color: var(--hero-fg); }

#mobile-menu .btn-primary {
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none !important; }
  .nav-toggle { display: flex; align-items: center; }
}

/* ===== HERO ===== */
#hero {
  background: var(--hero-bg);
  padding: 9rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Clean bottom border instead of fading shadow */
  border-bottom: 2px solid rgba(9,51,136,0.35);
}

#hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(9,51,136,0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* hero::after REMOVED — no more fading shadow at the bottom */

.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hero-muted);
  font-size: 0.875rem;
}

.hero-badge svg { color: #4a7fff; }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ===== PROBLEM SECTION ===== */
#problem { background: var(--surface); }
#problem .grid-3 { display: grid; gap: 1.5rem; }

@media (min-width: 768px) {
  #problem .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  padding: 2rem;
  text-align: center;
}

.icon-wrap {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}

.icon-wrap.danger { background: rgba(224,60,60,0.1); }
.icon-wrap.danger svg { color: var(--destructive); }
.icon-wrap.primary { background: var(--primary-glow); }
.icon-wrap.primary svg { color: var(--primary); }

/* ===== SOLUTION ===== */
#solution .grid-2 {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  #solution .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.checkpoints { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.checkpoint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkpoint svg { color: var(--primary); margin-top: 0.15rem; flex-shrink: 0; }
.checkpoint span { font-weight: 500; }

.client-cards { display: flex; flex-direction: column; gap: 1rem; }

.client-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: var(--primary-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.client-name { font-weight: 600; font-size: 0.9rem; }
.client-meta { color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

/* ===== FEATURES ===== */
#features { background: var(--surface); }

.grid-3 { display: grid; gap: 1.5rem; }

@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature-card { padding: 2rem; }

/* ===== HOW IT WORKS ===== */
#how-it-works .grid-3-steps {
  display: grid;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  #how-it-works .grid-3-steps { grid-template-columns: repeat(3, 1fr); }
}

.step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

/* ===== EXAMPLES ===== */
#examples { background: var(--surface); }

.example-mockup {
  max-width: 400px;
  margin: 0 auto;
}

.mockup-section {
  border-radius: 0.875rem;
  padding: 1rem 1.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

/* ===== PRICING ===== */
#pricing .pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  #pricing .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

.pricing-card { padding: 2rem; position: relative; }
.pricing-card.popular {
  background: var(--hero-bg);
  border: 2px solid var(--primary);
  color: var(--hero-fg);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.pricing-name { font-weight: 700; font-size: 1.2rem; }
.pricing-desc { font-size: 0.875rem; margin-top: 0.25rem; color: var(--muted); }
.pricing-card.popular .pricing-desc { color: var(--hero-muted); }
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 1.5rem 0 2rem;
  color: var(--foreground);
}
.pricing-card.popular .pricing-price { color: #4a7fff; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.pricing-feature svg { color: var(--primary); flex-shrink: 0; }
.pricing-card.popular .pricing-feature span { color: var(--hero-fg); }

.pricing-btn {
  display: block;
  text-align: center;
  font-weight: 600;
  padding: 0.875rem;
  border-radius: 0.875rem;
  margin-top: 2rem;
  transition: opacity 0.18s, transform 0.18s;
}

.pricing-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.pricing-btn-primary { background: var(--primary); color: #fff; }
.pricing-btn-dark { background: var(--foreground); color: #fff; }

/* ===== CTA ===== */
#cta {
  background: var(--hero-bg);
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(9,51,136,0.28) 0%, transparent 70%);
  pointer-events: none;
}

#cta .inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

/* ===== FOOTER ===== */
footer {
  background: var(--hero-bg);
  border-top: 1px solid rgba(245,247,255,0.07);
  padding: 3.5rem 1.5rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hero-fg);
}

.footer-brand-text span { color: #4a7fff; }

.footer-desc {
  color: var(--hero-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-heading { color: var(--hero-fg); font-weight: 600; margin-bottom: 1rem; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: var(--hero-muted);
  font-size: 0.875rem;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--hero-fg); }

.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--hero-muted);
  font-size: 0.875rem;
  transition: color 0.18s;
}
.footer-contact-item:hover { color: var(--hero-fg); }
.footer-contact-item svg { color: #4a7fff; flex-shrink: 0; }

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,247,255,0.07);
  text-align: center;
  color: var(--hero-muted);
  font-size: 0.78rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-header p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; line-height: 1.65; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.22,.68,0,1.2), transform 0.6s cubic-bezier(.22,.68,0,1.2);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ===== SVG ICONS ===== */
svg { display: inline-block; vertical-align: middle; }

/* ===== MISC ===== */
.text-muted { color: var(--muted); }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
