/* ============================================
   BejaFly — Global Styles
   Theme: Blue (#0B3D91) + Green (#00C897)
   Text: Black (#111) + White (#fff)
   Curves, segments, Brevo-inspired
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --blue: #0B3D91;
  --blue-dark: #072B6A;
  --blue-light: #1A5BC4;
  --green: #00C897;
  --green-dark: #00A67A;
  --green-light: #33F0BF;
  --black: #111111;
  --white: #ffffff;
  --gray-50: #F8FAFB;
  --gray-100: #EEF2F6;
  --gray-200: #D9E1EA;
  --gray-300: #B4C1D1;
  --gray-400: #8A9BB5;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  --gradient-hero: linear-gradient(160deg, #061E47 0%, var(--blue) 40%, #0A5C6B 80%, var(--green) 100%);
  --gradient-card: linear-gradient(180deg, rgba(11,61,145,0.03) 0%, rgba(0,200,151,0.05) 100%);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(11,61,145,0.08);
  --shadow-md: 0 4px 20px rgba(11,61,145,0.10);
  --shadow-lg: 0 12px 40px rgba(11,61,145,0.14);
  --shadow-xl: 0 24px 60px rgba(11,61,145,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ---- UTILITY ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p { color: var(--gray-600); font-size: 1.05rem; }
.lead { font-size: 1.2rem; color: var(--gray-500); max-width: 640px; margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,200,151,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }

/* ---- SECTION LABEL ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,151,0.1);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  z-index: 1001;
}
.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.navbar-logo img {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

/* on hero (transparent bg) links are white */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.8); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--white); }
.navbar:not(.scrolled) .nav-links a.active { color: var(--white); }
.navbar:not(.scrolled) .navbar-logo { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn-sm { padding: 10px 26px; }
.navbar:not(.scrolled) .nav-cta .btn-secondary { border-color: rgba(255,255,255,0.4); color: var(--white); }
.navbar:not(.scrolled) .nav-cta .btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--black);
  border-radius: 4px;
  transition: var(--transition);
}
.navbar:not(.scrolled) .hamburger span { background: var(--white); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--black);
}
.mobile-menu .btn { margin-top: 12px; }

/* ============================================
   CURVED SECTION DIVIDERS
   ============================================ */
.curve-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.curve-divider svg {
  width: 100%;
  height: auto;
  display: block;
}
.curve-top { margin-top: -1px; }
.curve-bottom { margin-bottom: -1px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,151,0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,151,0.1) 0%, transparent 70%);
  bottom: 100px;
  left: -100px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--green-light); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.2rem; margin-bottom: 36px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-cta .subtext { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 16px; width: 100%; }
.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-visual-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.hero-visual-card .metric-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.metric-box {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.metric-box .number { font-family: var(--font-heading); font-size: 2rem; color: var(--green-light); font-weight: 700; }
.metric-box .label { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 4px; }
.hero-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 16px 0;
}
.hero-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  transition: 0.6s ease;
}
.hero-bar:nth-child(1) { height: 40%; background: rgba(0,200,151,0.3); }
.hero-bar:nth-child(2) { height: 60%; background: rgba(0,200,151,0.45); }
.hero-bar:nth-child(3) { height: 45%; background: rgba(0,200,151,0.35); }
.hero-bar:nth-child(4) { height: 80%; background: rgba(0,200,151,0.6); }
.hero-bar:nth-child(5) { height: 70%; background: rgba(0,200,151,0.5); }
.hero-bar:nth-child(6) { height: 95%; background: var(--green); }
.hero-bar:nth-child(7) { height: 85%; background: rgba(0,200,151,0.55); }

/* Floating shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  animation: floatAnim 6s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   FEATURES / CARDS
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-icon.blue { background: rgba(11,61,145,0.08); color: var(--blue); }
.feature-icon.green { background: rgba(0,200,151,0.1); color: var(--green-dark); }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--gradient-primary);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
}
.stat-item .stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  counter-reset: step-counter;
}
.step-card {
  text-align: center;
  position: relative;
  counter-increment: step-counter;
}
.step-card::before {
  content: counter(step-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gray-100);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.step-card h3 { margin-bottom: 12px; color: var(--blue); }
.step-card p { font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 1rem; color: var(--gray-600); margin-bottom: 24px; line-height: 1.8; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-author .name { font-weight: 600; color: var(--black); font-size: 0.95rem; }
.testimonial-author .role { font-size: 0.82rem; color: var(--gray-400); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--gradient-hero);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,151,0.12) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.cta-section h2 { color: var(--white); margin-bottom: 20px; position: relative; z-index: 2; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 36px; position: relative; z-index: 2; }
.cta-section .btn { position: relative; z-index: 2; }

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  transition: var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-card.featured .pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 6px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pricing-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.pricing-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.pricing-desc { font-size: 0.9rem; color: var(--gray-400); margin-bottom: 24px; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}
.pricing-price .currency { font-size: 1.4rem; font-weight: 600; color: var(--black); }
.pricing-price .amount { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 700; color: var(--black); line-height: 1; }
.pricing-price .period { font-size: 0.9rem; color: var(--gray-400); }
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--green); font-weight: 700; font-size: 1.1rem; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ============================================
   INTEGRATIONS
   ============================================ */
.integrations-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}
.integration-tile {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  font-weight: 500;
  font-size: 1rem;
}
.integration-tile:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.integration-tile .tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 56px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0,200,151,0.1);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: 4px; color: var(--black); }
.contact-info-item p { font-size: 0.92rem; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--black);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: var(--transition);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,200,151,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-dark);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 0.92rem; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--green-light); padding-left: 6px; }
.footer-bottom {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}
.footer-credits { text-align: right; }
.footer-credits span { display: block; line-height: 1.6; }
.footer-credits a { color: var(--green-light); }
.footer-credits a:hover { text-decoration: underline; }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,151,0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}
.page-header h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }

/* ============================================
   RESOURCE CARDS
   ============================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.resource-thumb {
  height: 200px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--blue);
  position: relative;
  overflow: hidden;
}
.resource-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
}
.resource-body { padding: 28px; }
.resource-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.resource-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.resource-card p { font-size: 0.9rem; }
.resource-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
  transition: var(--transition);
}
.resource-card .read-more:hover { color: var(--green); gap: 10px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 780px; margin: 56px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--black);
  text-align: left;
}
.faq-question .faq-icon {
  font-size: 1.4rem;
  color: var(--green);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}
.faq-answer p { font-size: 0.95rem; }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal-content h2 { font-size: 1.6rem; margin: 48px 0 16px; color: var(--blue); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { list-style: disc; margin-bottom: 8px; color: var(--gray-600); font-size: 0.95rem; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid, .pricing-grid, .testimonials-wrapper, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 70px 0; }
  .features-grid, .steps-grid, .testimonials-wrapper, .resource-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-credits { text-align: center; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DASHBOARD APP STYLES
   ============================================ */

/* Dashboard layout */
.app-layout { display: flex; min-height: calc(100vh - 80px); }

.sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  padding: 12px 0;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-nav { list-style: none; }
.sidebar-section {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar-nav a:hover { background: var(--gray-50); color: var(--black); }
.sidebar-nav a.active {
  color: var(--blue);
  background: rgba(11,61,145,0.04);
  border-left-color: var(--blue);
  font-weight: 600;
}
.sidebar-nav a .nav-icon { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.sidebar-nav a.active .nav-icon { opacity: 1; }

.main-content { flex: 1; padding: 32px 40px; min-width: 0; background: var(--gray-50); }

/* Dashboard top bar (scrolled state always) */
.navbar.dashboard-nav { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); box-shadow: var(--shadow-sm); }
.navbar.dashboard-nav .nav-links a { color: var(--gray-600); }
.navbar.dashboard-nav .nav-links a:hover { color: var(--blue); }
.navbar.dashboard-nav .navbar-logo { color: var(--black); }

/* Page header inside dashboard */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-header h1 { font-size: 1.8rem; font-family: var(--font-heading); }

/* Stat cards */
.stats-dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-dash-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-dash-card:hover { box-shadow: var(--shadow-md); }
.stat-dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gray-200);
  border-radius: 4px 0 0 4px;
}
.stat-dash-card.s-green::before { background: var(--green); }
.stat-dash-card.s-blue::before { background: var(--blue-light); }
.stat-dash-card.s-red::before { background: #EF4444; }
.stat-dash-label { font-size: 0.85rem; color: var(--gray-400); font-weight: 500; margin-bottom: 4px; }
.stat-dash-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1.1; }
.stat-dash-pct { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }

/* Dashboard cards */
.dash-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.dash-card:hover { box-shadow: var(--shadow-sm); }
.dash-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; }

/* Dashboard table */
.dash-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--white);
}
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.dash-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-50);
  font-size: 0.88rem;
  vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: var(--gray-50); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-weight: 600;
  font-size: 0.72rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-green { background: rgba(0,200,151,0.12); color: var(--green-dark); }
.badge-blue { background: rgba(11,61,145,0.08); color: var(--blue); }
.badge-red { background: rgba(239,68,68,0.1); color: #DC2626; }
.badge-yellow { background: rgba(245,158,11,0.12); color: #B45309; }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }
.badge-purple { background: rgba(139,92,246,0.1); color: #7C3AED; }

/* Alerts */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  border: 1px solid;
  position: relative;
}
.alert-success { background: rgba(0,200,151,0.08); border-color: rgba(0,200,151,0.2); color: var(--green-dark); }
.alert-error { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); color: #DC2626; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #B45309; }
.alert-info { background: rgba(11,61,145,0.05); border-color: rgba(11,61,145,0.1); color: var(--blue); }
.alert-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.4; color: inherit; }
.alert-close:hover { opacity: 0.8; }

/* Forms in dashboard context */
.dash-form-label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 6px; color: var(--black); }
.dash-form-input,
.dash-form-select,
.dash-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}
.dash-form-input:focus, .dash-form-select:focus, .dash-form-textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,200,151,0.1);
  outline: none;
}
.dash-form-textarea { resize: vertical; min-height: 120px; }
.form-error { color: #DC2626; font-size: 0.78rem; margin-top: 4px; }
.form-hint { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }

/* Usage bar */
.usage-wrap { margin-bottom: 24px; }
.usage-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray-400); margin-bottom: 6px; }
.usage-track { height: 6px; background: var(--gray-100); border-radius: 6px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--green); border-radius: 6px; transition: width 0.5s ease; }
.usage-fill.warn { background: #F59E0B; }
.usage-fill.danger { background: #EF4444; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-title { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* Copy block */
.copy-block {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.copy-block code {
  flex: 1; background: none; border: none; padding: 0;
  font-family: 'DM Sans', monospace; font-size: 0.82rem;
  word-break: break-all; color: var(--black);
}
.copy-btn { background: none; border: none; cursor: pointer; color: var(--gray-400); transition: var(--transition); }
.copy-btn:hover { color: var(--green); }

/* DNS records */
.dns-record { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
.dns-type { font-weight: 600; font-size: 0.7rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.dns-host { font-size: 0.82rem; font-weight: 500; }
.dns-val { font-size: 0.78rem; color: var(--gray-500); word-break: break-all; margin-top: 4px; background: var(--white); border: 1px solid var(--gray-100); padding: 6px 10px; border-radius: 6px; }

/* Verify dots */
.verify-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.verify-dot.verified { background: var(--green); }
.verify-dot.pending { background: #F59E0B; }
.verify-dot.failed { background: #EF4444; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; top: 0; left: 9px; width: 2px; height: 100%; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gray-200); z-index: 1;
}
.timeline-item.delivered .timeline-dot { border-color: var(--green); background: rgba(0,200,151,0.1); }
.timeline-item.opened .timeline-dot { border-color: var(--blue-light); background: rgba(11,61,145,0.06); }
.timeline-item.clicked .timeline-dot { border-color: #8B5CF6; background: rgba(139,92,246,0.08); }
.timeline-item.bounced .timeline-dot, .timeline-item.failed .timeline-dot { border-color: #EF4444; background: rgba(239,68,68,0.06); }
.timeline-event { font-weight: 600; font-size: 0.88rem; }
.timeline-time { font-size: 0.78rem; color: var(--gray-400); }

/* Editor */
.editor-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: calc(100vh - 280px); min-height: 300px; }
.editor-panel { display: flex; flex-direction: column; border: 1px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.editor-panel-header { background: var(--gray-50); padding: 8px 16px; border-bottom: 1px solid var(--gray-100); font-weight: 600; font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center; }
.editor-panel-body { flex: 1; overflow: auto; }
.editor-panel-body textarea { width: 100%; height: 100%; border: none; resize: none; padding: 12px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.7; background: var(--white); }
.editor-panel-body textarea:focus { outline: none; }
.preview-frame { width: 100%; height: 100%; border: none; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  color: var(--gray-500); transition: var(--transition);
}
.pagination a:hover { background: var(--gray-50); color: var(--black); border-color: var(--gray-300); }
.pagination .active { background: var(--gradient-primary); color: var(--white); border-color: transparent; }
.pagination .disabled { opacity: 0.3; pointer-events: none; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.25; }
.empty-state h3 { color: var(--gray-500); margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { font-size: 0.9rem; color: var(--gray-400); max-width: 380px; margin: 0 auto 20px; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 50; display: none; padding: 6px 0;
}
.dropdown-menu.open { display: block; }
.dropdown-item { display: block; padding: 10px 18px; font-size: 0.88rem; color: var(--black); transition: var(--transition); }
.dropdown-item:hover { background: var(--gray-50); color: var(--blue); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* Spinner */
.spinner { width: 20px; height: 20px; border: 2px solid var(--gray-200); border-top-color: var(--green); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive dashboard */
@media (max-width: 768px) {
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; top: 0; border-right: none; border-bottom: 1px solid var(--gray-100); padding: 4px 0; }
  .sidebar-nav { display: flex; overflow-x: auto; }
  .sidebar-section { display: none; }
  .sidebar-nav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 10px 16px; font-size: 0.82rem; }
  .sidebar-nav a.active { border-left: none; border-bottom-color: var(--blue); }
  .main-content { padding: 20px 16px; }
  .editor-wrapper { grid-template-columns: 1fr; height: auto; }
  .editor-panel { min-height: 260px; }
}
