/* ============================================================
   BrightRevision — Feature Pages Shared CSS
   ============================================================ */

:root {
  --green:     #1D9E75;
  --green-d:   #0F6E56;
  --green-l:   #E1F5EE;
  --green-xl:  #F0FAF6;
  --ink:       #0E1A14;
  --ink-mid:   #2D3B34;
  --muted:     #607068;
  --hint:      #9AADA3;
  --bg:        #F7F9F8;
  --white:     #FFFFFF;
  --border:    rgba(15,30,20,0.09);
  --shadow-sm: 0 1px 3px rgba(14,26,20,.07);
  --shadow-md: 0 4px 20px rgba(14,26,20,.10);
  --shadow-lg: 0 12px 48px rgba(14,26,20,.14);
  --radius:    12px;
  --radius-lg: 20px;
  --blue:      #3B82F6;
  --blue-l:    #EFF6FF;
  --purple:    #7C3AED;
  --purple-l:  #F5F3FF;
  --coral:     #F43F5E;
  --coral-l:   #FFF1F2;
  --amber:     #F59E0B;
  --amber-l:   #FFFBEB;
}

[data-theme="dark"] {
  --ink:       #E8F0ED;
  --ink-mid:   #C5D3CD;
  --muted:     #9AADA3;
  --hint:      #6B7D75;
  --bg:        #111816;
  --white:     #1A2220;
  --green-l:   #0D2E24;
  --green-xl:  #0A2019;
  --border:    rgba(255,255,255,0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.5);
  --blue-l:    #1E2D4A;
  --purple-l:  #25193A;
  --coral-l:   #2D1520;
  --amber-l:   #2A1F04;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
}
[data-theme="dark"] nav { background: rgba(17,24,22,0.9); }

.nav-logo img { height: 32px; width: auto; }
.logo-light { display: block; }
.logo-dark  { display: none; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark  { display: block !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-btn {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.nav-links a:hover, .nav-links button.nav-btn:hover {
  background: var(--green-xl);
  color: var(--green-d);
}
.nav-links a.active { color: var(--green); font-weight: 600; }

/* Dropdown */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  z-index: 300;
}
[data-theme="dark"] .nav-dropdown-menu { background: #1e2c28; }
.nav-dropdown-menu.open { display: block; }

.nav-dropdown-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hint);
  padding: 8px 12px 4px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background .12s;
}
.nav-dropdown-item:hover { background: var(--green-xl); }
.nav-dropdown-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.nav-dropdown-item .label { font-weight: 600; font-size: 13px; }
.nav-dropdown-item .desc  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Nav buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: inherit;
}
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,158,117,.35); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--green-xl); color: var(--green-d); border-color: var(--green-l); }

/* ── Feature hero ───────────────────────────────────────────── */
.feature-hero {
  padding: 80px 5vw 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.feature-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.feature-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ── Screen mockup ──────────────────────────────────────────── */
.mockup-wrap {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 5vw;
}
.mockup-browser {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-url {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--hint);
  margin: 0 8px;
}
.mockup-body { padding: 24px; min-height: 320px; }

/* Mobile mockup */
.mockup-phone {
  width: 220px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  margin: 0 auto;
}
.mockup-phone-inner {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  min-height: 380px;
  padding: 16px;
}

/* ── Content sections ───────────────────────────────────────── */
.section {
  padding: 64px 5vw;
}
.section-alt { background: var(--green-xl); }
[data-theme="dark"] .section-alt { background: rgba(29,158,117,.06); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-body {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Grid cards ─────────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feat-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Split rows ─────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse { direction: ltr; }
}

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.stat-item {
  background: var(--white);
  padding: 28px 24px;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 5vw;
  text-align: center;
  background: var(--green);
}
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1rem; }
.btn-white { background: #fff; color: var(--green-d); font-weight: 700; }
.btn-white:hover { background: var(--green-l); transform: translateY(-2px); }

/* ── Testimonial / quote ────────────────────────────────────── */
.quote-block {
  background: var(--green-l);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
[data-theme="dark"] .quote-block { background: rgba(29,158,117,.1); }
.quote-block p { font-size: 1rem; color: var(--ink); font-style: italic; line-height: 1.7; }
.quote-block .attr { font-size: 13px; color: var(--muted); margin-top: 10px; font-style: normal; font-weight: 600; }

/* ── Checklist ──────────────────────────────────────────────── */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.checklist li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--green-l);
  color: var(--green-d);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 5vw;
  text-align: center;
}
footer p { font-size: 13px; color: var(--hint); }
footer a { color: var(--green); text-decoration: none; font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .stats-strip { grid-template-columns: 1fr; }
  .feat-grid   { grid-template-columns: 1fr; }
  .feature-hero { padding: 48px 5vw 40px; }
}
