/* ============================================================
   MailFlow — Public Pages CSS
   Light theme · Unique gradients
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #6C63FF;
  --primary-dark:   #5A52E0;
  --secondary:      #4ECDC4;
  --accent:         #FF6584;
  --accent-green:   #43E97B;
  --grad-primary:   linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%);
  --grad-warm:      linear-gradient(135deg, #FF6584 0%, #FFB347 100%);
  --grad-cool:      linear-gradient(135deg, #43E97B 0%, #38F9D7 100%);
  --grad-purple:    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg:             #F8F9FE;
  --bg-alt:         #EEF0FB;
  --white:          #FFFFFF;
  --text:           #2D3748;
  --text-light:     #4A5568;
  --muted:          #718096;
  --border:         #E2E8F0;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 20px rgba(108,99,255,.12);
  --shadow-lg:      0 10px 40px rgba(108,99,255,.18);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────────────── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px;  margin: 0 auto; padding: 0 24px; }
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all .25s; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 4px 15px rgba(108,99,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,99,255,.45); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white {
  background: #fff; color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--text);
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 900;
}
.brand-text span { color: var(--primary); }
.navbar-menu { display: flex; align-items: center; gap: 8px; }
.navbar-menu a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-light);
  transition: all .2s;
}
.navbar-menu a:hover { color: var(--primary); background: var(--bg-alt); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px; transition: all .3s;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0F0C29 0%, #302B63 50%, #24243e 100%);
  padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(108,99,255,.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(78,205,196,.2) 0%, transparent 50%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,99,255,.2); border: 1px solid rgba(108,99,255,.4);
  color: #A8A4FF; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-badge::before { content: '✦'; color: #6C63FF; }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.hero h1 .grad-text {
  background: var(--grad-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { color: rgba(255,255,255,.8); }
.hero-stat .num { font-size: 28px; font-weight: 800; color: #fff; display: block; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,.5); }
.hero-visual { position: relative; }
.hero-mockup {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.mockup-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mockup-bar span { width: 12px; height: 12px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FEBC2E; }
.mockup-bar span:nth-child(3) { background: #28C840; }
.mockup-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.mockup-stat {
  background: rgba(255,255,255,.1); border-radius: 10px; padding: 14px;
  text-align: center; color: #fff;
}
.mockup-stat .val { font-size: 22px; font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mockup-stat .lbl { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 2px; }
.mockup-chart { background: rgba(255,255,255,.07); border-radius: 10px; padding: 14px; height: 80px; display: flex; align-items: flex-end; gap: 6px; }
.mockup-chart .bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad-primary); opacity: .8; }
.float-badge {
  position: absolute; background: #fff; border-radius: var(--radius-md);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.float-badge-1 { bottom: -16px; left: -30px; }
.float-badge-2 { top: -16px; right: -20px; }
.float-badge .fb-icon { font-size: 24px; }
.float-badge .fb-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.float-badge .fb-text span { font-size: 12px; color: var(--muted); }

/* ── Gradient text utility ───────────────────────────────────── */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(135deg, #0F0C29, #302B63); color: #fff; }
.section-header { margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
  background: rgba(108,99,255,.1); padding: 4px 12px; border-radius: 20px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--text); line-height: 1.2; }
.section-title.light { color: #fff; }
.section-subtitle { font-size: 17px; color: var(--muted); margin-top: 12px; max-width: 560px; }
.section-subtitle.light { color: rgba(255,255,255,.7); }

/* ── Feature Cards ───────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--border);
  transition: all .3s; cursor: default;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(108,99,255,.2); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.icon-purple  { background: rgba(108,99,255,.12); }
.icon-teal    { background: rgba(78,205,196,.12);  }
.icon-pink    { background: rgba(255,101,132,.12); }
.icon-green   { background: rgba(67,233,123,.12);  }
.icon-orange  { background: rgba(255,179,71,.12);  }
.icon-blue    { background: rgba(100,181,246,.12); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Pricing Cards ───────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 2px solid var(--border);
  transition: all .3s; position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,99,255,.1), var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary); color: #fff;
  padding: 4px 18px; border-radius: 20px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-plan { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.pricing-price { margin-bottom: 8px; }
.pricing-price .amount { font-size: 48px; font-weight: 900; color: var(--text); }
.pricing-price .period { font-size: 14px; color: var(--muted); }
.pricing-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.pricing-features { margin: 24px 0; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-light); padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--accent-green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '✕'; color: var(--border); }

/* ── Steps ───────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.step {
  text-align: center; position: relative;
  background: var(--white); border-radius: var(--radius-md);
  padding: 36px 24px; border: 1px solid var(--border);
  transition: all .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(108,99,255,.2); }
.step:not(:last-child)::after {
  content: '→'; position: absolute;
  top: 50%; right: -20px; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); z-index: 1;
}
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(108,99,255,.35);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: #F6BC00; font-size: 18px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--text-light); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.author-name  { font-weight: 700; font-size: 14px; }
.author-title { font-size: 12px; color: var(--muted); }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-section {
  background: var(--grad-primary); padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.cta-inner p  { font-size: 18px; opacity: .85; margin-bottom: 32px; }

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar { background: var(--white); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #0F0C29, #302B63);
  padding: 60px 0; color: #fff; text-align: center;
}
.page-header h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-header p  { font-size: 17px; color: rgba(255,255,255,.7); }
.page-breadcrumb { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.5); }
.page-breadcrumb a { color: rgba(255,255,255,.7); }
.page-breadcrumb a:hover { color: #fff; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  font-family: var(--font);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,.15); }
.form-control::placeholder { color: #A0AEC0; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 12px; color: #E53E3E; margin-top: 4px; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 16px; border: 1px solid transparent;
}
.alert-icon { font-size: 18px; flex-shrink: 0; }
.alert-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 20px; color: inherit; opacity: .6; padding: 0 4px; }
.alert-success { background: #F0FFF4; border-color: #9AE6B4; color: #276749; }
.alert-error   { background: #FFF5F5; border-color: #FEB2B2; color: #9B2C2C; }
.alert-warning { background: #FFFBEB; border-color: #FAD173; color: #744210; }
.alert-info    { background: #EBF8FF; border-color: #90CDF4; color: #2A69AC; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: #0F0C29; color: rgba(255,255,255,.7); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand .logo-text span { color: var(--secondary); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.7); transition: all .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-item {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px;
  color: var(--text); user-select: none;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon { font-size: 20px; color: var(--primary); transition: transform .3s; font-weight: 300; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* ── Blog ────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; transition: all .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 180px; background: var(--grad-primary); position: relative; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 8px; display: block; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p  { font-size: 14px; color: var(--muted); line-height: 1.6; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--white); border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--border); }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(108,99,255,.1); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-item p  { font-size: 14px; color: var(--muted); }
.contact-form { background: var(--white); border-radius: var(--radius-md); padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }

/* ── Prose (legal pages) ─────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p  { font-size: 15px; color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.prose ul { margin-left: 20px; margin-bottom: 14px; list-style: disc; }
.prose ul li { font-size: 15px; color: var(--text-light); margin-bottom: 6px; line-height: 1.7; }
.prose a { color: var(--primary); }
.legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; padding: 8px 14px; background: var(--bg-alt); border-radius: 6px; display: inline-block; }

/* ── Status Page ─────────────────────────────────────────────── */
.status-overall { padding: 24px 28px; border-radius: var(--radius-md); margin-bottom: 32px; display: flex; align-items: center; gap: 16px; font-size: 20px; font-weight: 700; }
.status-overall.operational { background: #F0FFF4; color: #276749; border: 1px solid #9AE6B4; }
.status-overall.degraded { background: #FFFBEB; color: #744210; }
.status-overall.outage { background: #FFF5F5; color: #9B2C2C; }
.status-indicator { width: 14px; height: 14px; border-radius: 50%; }
.operational .status-indicator { background: #48BB78; box-shadow: 0 0 0 4px rgba(72,187,120,.2); }
.degraded    .status-indicator { background: #F6AD55; }
.outage      .status-indicator { background: #FC8181; }
.status-items { display: grid; gap: 10px; }
.status-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.status-item span { font-size: 15px; font-weight: 500; }
.status-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.tag-op { background: #F0FFF4; color: #276749; }
.tag-deg { background: #FFFBEB; color: #744210; }
.tag-out { background: #FFF5F5; color: #9B2C2C; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner  { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-stats  { justify-content: center; }
  .hero-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .navbar-menu, .navbar-actions { display: none; }
  .navbar-toggle { display: block; }
  .navbar-menu.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px; box-shadow: var(--shadow-md); z-index: 999; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp .6s ease forwards; }
.fade-in-up-2 { animation: fadeInUp .6s .15s ease both; }
.fade-in-up-3 { animation: fadeInUp .6s .3s ease both; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: float 3s ease-in-out infinite; }

@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:.4; } }

/* ── Mockup chart bars — grow from bottom on page load ───────── */
@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: .85; }
}
.mockup-chart .bar {
  transform-origin: bottom;
  animation: barGrow .5s ease forwards;
  opacity: 0;
}
.mockup-chart .bar:nth-child(1)  { animation-delay: .30s; }
.mockup-chart .bar:nth-child(2)  { animation-delay: .35s; }
.mockup-chart .bar:nth-child(3)  { animation-delay: .40s; }
.mockup-chart .bar:nth-child(4)  { animation-delay: .45s; }
.mockup-chart .bar:nth-child(5)  { animation-delay: .50s; }
.mockup-chart .bar:nth-child(6)  { animation-delay: .55s; }
.mockup-chart .bar:nth-child(7)  { animation-delay: .60s; }
.mockup-chart .bar:nth-child(8)  { animation-delay: .65s; }
.mockup-chart .bar:nth-child(9)  { animation-delay: .70s; }
.mockup-chart .bar:nth-child(10) { animation-delay: .75s; }
.mockup-chart .bar:nth-child(11) { animation-delay: .80s; }
.mockup-chart .bar:nth-child(12) { animation-delay: .85s; }
.mockup-chart .bar:nth-child(13) { animation-delay: .90s; }
.mockup-chart .bar:nth-child(14) { animation-delay: .95s; }

/* ── Mockup stats — pop in ───────────────────────────────────── */
@keyframes statPop {
  from { opacity: 0; transform: scale(.82) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);   }
}
.mockup-stat { animation: statPop .45s ease forwards; opacity: 0; }
.mockup-stat:nth-child(1) { animation-delay: .50s; }
.mockup-stat:nth-child(2) { animation-delay: .65s; }
.mockup-stat:nth-child(3) { animation-delay: .80s; }

/* ── Hero stats — slide up with stagger ──────────────────────── */
@keyframes heroStatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-stats .hero-stat { animation: heroStatIn .5s ease forwards; opacity: 0; }
.hero-stats .hero-stat:nth-child(1) { animation-delay: .70s; }
.hero-stats .hero-stat:nth-child(2) { animation-delay: .85s; }
.hero-stats .hero-stat:nth-child(3) { animation-delay: 1.0s; }

/* ── Trusted-by brands — fade slide in ───────────────────────── */
@keyframes brandIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brand-item {
  animation: brandIn .4s ease forwards;
  opacity: 0;
}
.brand-item:nth-child(1) { animation-delay: .1s; }
.brand-item:nth-child(2) { animation-delay: .2s; }
.brand-item:nth-child(3) { animation-delay: .3s; }
.brand-item:nth-child(4) { animation-delay: .4s; }
.brand-item:nth-child(5) { animation-delay: .5s; }

/* ── Section header children stagger (when parent gets .visible) */
.section-header .section-label,
.section-header .section-badge {
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.section-header.visible .section-label,
.section-header.visible .section-badge { opacity: 1; transform: translateY(0); }

.section-header .section-title {
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s .1s ease, transform .45s .1s ease;
}
.section-header.visible .section-title { opacity: 1; transform: translateY(0); }

.section-header .section-subtitle {
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s .2s ease, transform .4s .2s ease;
}
.section-header.visible .section-subtitle { opacity: 1; transform: translateY(0); }

/* ── Feature card icon bounce on hover ───────────────────────── */
.feature-card:hover .feature-icon { animation: iconBounce .4s ease; }
@keyframes iconBounce {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-6px); }
  70%     { transform: translateY(-3px); }
}

/* ── Step number pulse on hover ──────────────────────────────── */
.step:hover .step-num { animation: stepPulse .4s ease; }
@keyframes stepPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}

/* ── Pricing card shimmer on hover ───────────────────────────── */
.pricing-card:not(.featured):not(.pricing-featured):hover {
  border-color: rgba(108,99,255,.3);
}

/* ============================================================
   Extended Styles & Animations — Phase 2
   ============================================================ */

/* ── Missing class aliases (backward-compat) ─────────────────── */
.section-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
  background: rgba(108,99,255,.1); padding: 4px 12px; border-radius: 20px;
}

/* FAQ – pages use .faq-q / .faq-a / .faq-arrow */
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px;
  color: var(--text); user-select: none;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-arrow { font-size: 11px; color: var(--primary); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  font-size: 15px; color: var(--text-light); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* Pricing – pages use .pricing-name / .pricing-featured / .pricing-grid-full */
.pricing-name {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,99,255,.1), var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-grid-full {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; align-items: start;
}

/* CTA – about.php uses .cta-banner / .cta-content */
.cta-banner {
  background: var(--grad-primary); padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta-content h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.cta-content p  { font-size: 18px; opacity: .85; margin-bottom: 32px; }

/* ── Navbar scrolled state & active link ─────────────────────── */
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.14); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.navbar-menu a.active { color: var(--primary); background: rgba(108,99,255,.08); font-weight: 600; }

/* ── Hero animated background orbs ──────────────────────────── */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none; z-index: 0;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0,   0)   scale(1);    }
  33%       { transform: translate(40px,-30px) scale(1.08); }
  66%       { transform: translate(-25px,18px) scale(.93); }
}
.hero-orb-1 { width: 420px; height: 420px; background: rgba(108,99,255,.35); top: -120px; left: -100px; animation: orbDrift 13s ease-in-out infinite; }
.hero-orb-2 { width: 320px; height: 320px; background: rgba(78,205,196,.28); bottom: -80px; right:  80px; animation: orbDrift 10s ease-in-out infinite reverse; animation-delay: -4s; }
.hero-orb-3 { width: 220px; height: 220px; background: rgba(255,101,132,.22); top: 35%; right: -60px; animation: orbDrift 15s ease-in-out infinite; animation-delay: -8s; }

/* ── Float badges animation ───────────────────────────────────── */
@keyframes floatBadge { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.float-badge-1 { animation: floatBadge 3.5s ease-in-out infinite; }
.float-badge-2 { animation: floatBadge 4s   ease-in-out infinite; animation-delay: -2s; }

/* ── Page header — animated radial overlays ───────────────────── */
.page-header { position: relative; overflow: hidden; }
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(108,99,255,.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(78,205,196,.30) 0%, transparent 50%);
  animation: phBg 8s ease-in-out infinite alternate;
}
@keyframes phBg {
  from { opacity: .7; transform: scale(1);    }
  to   { opacity: 1;  transform: scale(1.06); }
}
.page-header .container { position: relative; z-index: 1; }

/* ── Decorative grid pattern overlay on dark sections ────────── */
.section-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 40px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 40px);
}

/* ── Shimmer on featured pricing card ────────────────────────── */
@keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
.pricing-card.featured::after,
.pricing-card.pricing-featured::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.09) 50%, transparent 60%);
  background-size: 200% 100%; animation: shimmer 3s linear infinite;
}

/* ── Scroll reveal — CSS transitions triggered by JS observer ─── */
.animate-in,
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.animate-in.visible,
.reveal.visible    { opacity: 1; transform: translateY(0); }

.animate-in.from-left,
.reveal.from-left  { transform: translateX(-28px); }

.animate-in.from-right,
.reveal.from-right { transform: translateX(28px); }

.animate-in.from-left.visible,  .reveal.from-left.visible,
.animate-in.from-right.visible, .reveal.from-right.visible { transform: translateX(0); }

/* Stagger delay utilities */
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }
.d5 { transition-delay: .50s; }

/* ── Animated underline on section titles ────────────────────── */
.section-title { position: relative; display: inline-block; }

/* Hero stat nums animated by GSAP counter — no CSS animation needed */

/* ── SVG draw path (line animation) ─────────────────────────── */
@keyframes svgDraw { from{stroke-dashoffset:1000;} to{stroke-dashoffset:0;} }
.svg-line-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: svgDraw 1.8s ease forwards; }

/* ── Pulsing dot (status page) ───────────────────────────────── */
@keyframes pulseRing { 0%{transform:scale(.9);box-shadow:0 0 0 0 rgba(72,187,120,.5);} 70%{transform:scale(1);box-shadow:0 0 0 8px rgba(72,187,120,0);} 100%{transform:scale(.9);} }
.operational .status-indicator { animation: pulseRing 2s ease-in-out infinite; }

/* ── Blog page classes ───────────────────────────────────────── */
.blog-img {
  height: 200px; position: relative; overflow: hidden;
  background: var(--grad-primary);
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, rgba(108,99,255,.12), rgba(78,205,196,.12));
  display: flex; align-items: center; justify-content: center; font-size: 44px;
}
.blog-img-placeholder::after { content: '✉'; }
.blog-date { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.blog-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.blog-read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s; }
.blog-read-more:hover { gap: 8px; color: var(--primary-dark); }

/* ── Contact page classes ────────────────────────────────────── */
.contact-info {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; border: 1px solid var(--border);
}
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-md);
  padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}

/* ── Card (reused by status, pricing table, etc.) ────────────── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h2 { font-size: 16px; font-weight: 700; margin: 0; color: var(--text); }
.card-body { padding: 20px; }

/* ── Two-column feature layout (features.php) ────────────────── */
.feat-col-text { }
.feat-col-visual {
  background: linear-gradient(135deg, rgba(108,99,255,.07), rgba(78,205,196,.07));
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; min-height: 280px;
}

/* features-split: two-col layout with SVG illustration */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.features-split-text { }
.features-split-visual {
  background: linear-gradient(135deg, rgba(108,99,255,.06) 0%, rgba(78,205,196,.06) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid rgba(108,99,255,.1);
  transition: box-shadow .3s ease;
}
.features-split-visual:hover {
  box-shadow: 0 8px 32px rgba(108,99,255,.12);
}
.features-split-visual svg {
  filter: drop-shadow(0 4px 16px rgba(108,99,255,.1));
}
.split-order-1 { order: 1; }
.split-order-2 { order: 2; }

/* feature-item rows inside features-split-text */
.feature-items { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.feature-item:hover { background: rgba(108,99,255,.05); }
.feature-item-icon {
  font-size: 20px; min-width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(108,99,255,.08);
  border-radius: 8px; flex-shrink: 0;
}
.feature-item-title { font-weight: 600; margin-bottom: 2px; font-size: 15px; }
.feature-item-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (max-width: 768px) {
  .features-split { grid-template-columns: 1fr; gap: 32px; }
  .split-order-1 { order: unset; }
  .split-order-2 { order: unset; }
  .features-split-visual { padding: 24px; }
}

/* ── Grid stagger delays (nth-child so cards animate in sequence) */
.features-grid    .feature-card:nth-child(2),
.steps-grid       .step:nth-child(2),
.pricing-grid     .pricing-card:nth-child(2),
.pricing-grid-full .pricing-card:nth-child(2),
.testimonials-grid .testimonial-card:nth-child(2),
.blog-grid        .blog-card:nth-child(2)        { transition-delay: .10s; }

.features-grid    .feature-card:nth-child(3),
.steps-grid       .step:nth-child(3),
.pricing-grid     .pricing-card:nth-child(3),
.pricing-grid-full .pricing-card:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(3),
.blog-grid        .blog-card:nth-child(3)        { transition-delay: .20s; }

.features-grid    .feature-card:nth-child(4),
.steps-grid       .step:nth-child(4),
.blog-grid        .blog-card:nth-child(4)        { transition-delay: .30s; }

.features-grid    .feature-card:nth-child(5),
.blog-grid        .blog-card:nth-child(5)        { transition-delay: .40s; }

.features-grid    .feature-card:nth-child(6),
.blog-grid        .blog-card:nth-child(6)        { transition-delay: .50s; }

/* ── Contact form two-col row ─────────────────────────────────── */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Responsive fixes for new classes ────────────────────────── */
@media (max-width: 900px) {
  .pricing-card.pricing-featured { transform: scale(1); }
  .hero-orb-1 { width: 260px; height: 260px; }
  .hero-orb-2 { display: none; }
  .hero-orb-3 { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .feat-col-visual { min-height: 160px; font-size: 56px; padding: 24px; }
}
@media (max-width: 640px) {
  .form-row-2col { grid-template-columns: 1fr; }
  .contact-info  { padding: 20px; }
  .contact-form-wrap { padding: 20px; }
}
