/* ===== CSS VARIABLES ===== */
:root {
  --blue: #4F8EF7;
  --violet: #9B6EF3;
  --pink: #C084FC;
  --light-blue: #A5C8FF;
  --bg: #F7F5FF;
  --white: #ffffff;
  --text: #1E1B4B;
  --muted: #6B7280;
  --border: rgba(155, 110, 243, 0.12);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

nav.scrolled {
  background: rgba(247, 245, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo img { height: 70px; width: auto; display: block; }

.logo span { font-weight: 300; opacity: 0.7; }

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
  color: white !important;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  opacity: 1 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(79, 142, 247, 0.48) !important;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--violet); }

/* ===== COMMON TEXT ===== */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

h2.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.body-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #C026D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: textShimmer 5s ease infinite;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===== AVATAR ===== */
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.9rem; }
.author-title { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }

/* ===== CTA CARD ===== */
.cta-card {
  background: linear-gradient(135deg, var(--blue), var(--violet) 55%, var(--pink));
  border-radius: 28px;
  padding: 4rem;
  color: white;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 32px 80px rgba(79,142,247,0.32);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 60%);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.cta-card p {
  opacity: 0.88;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: white;
  color: var(--violet);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== FOOTER (shared base) ===== */
footer {
  background: #1E1B4B;
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 6% 2.5rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--light-blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-logo img { height: 70px; width: auto; display: block; }

.footer-tagline {
  font-size: 0.82rem;
  opacity: 0.5;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.35;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: white;
  transform: translateY(-2px);
}

.footer-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-partner-logo {
  height: 72px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-partner-logo:hover {
  opacity: 1;
}

/* ===== VISUAL GRADIENT BLOCK ===== */
.visual-gradient {
  border-radius: 24px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue), var(--violet) 55%, var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(79,142,247,0.22);
}
.visual-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 25% 35%, rgba(255,255,255,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 72% 65%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.visual-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
}

/* ===== CONTACT MODAL ===== */
#contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.55);
  backdrop-filter: blur(6px);
}

.contact-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 24px 80px rgba(79, 142, 247, 0.18), 0 8px 32px rgba(155, 110, 243, 0.14);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.contact-modal-close:hover { color: var(--text); background: var(--bg); }

.contact-modal-header { margin-bottom: 1.8rem; }
.contact-modal-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.3rem;
}

.contact-form-group { margin-bottom: 1.1rem; }
.contact-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--violet);
  margin-bottom: 0.4rem;
}
.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(155, 110, 243, 0.15);
}

.contact-modal-error {
  background: #FEF2F2;
  color: #DC2626;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-modal-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.contact-modal-submit:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.contact-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-modal-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-modal-success h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.contact-modal-success p  { color: var(--muted); margin-top: 0.4rem; }
