/* ============================================================
   DoXScribe — Global Styles
   Color palette:
     Navy:   #1B3A5C
     Blue:   #0077CC
     Light:  #F0F6FF
     BG:     #FFFFFF / #F8FAFC
     Text:   #1A1A2E / #4A5568
============================================================ */

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

:root {
  --navy:      #1B3A5C;
  --navy-dark: #0F2540;
  --blue:      #0077CC;
  --blue-lt:   #1A8FE3;
  --teal:      #00A896;
  --light-bg:  #F0F6FF;
  --bg:        #F8FAFC;
  --white:     #FFFFFF;
  --text:      #1A1A2E;
  --muted:     #4A5568;
  --border:    #D1DCE8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius:    8px;
  --radius-lg: 16px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-lt); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--muted); line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--light-bg);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title { margin-bottom: 12px; }
.section-sub   { max-width: 600px; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,119,204,.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--light-bg);
  color: var(--blue);
  transform: translateY(-1px);
}

.btn-lg { padding: 15px 32px; font-size: 1.0625rem; }

/* ── Nav ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.nav-logo span { color: var(--blue); }

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

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: .9375rem;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 60%, #1D5296 100%);
  color: white;
  padding: 100px 0 90px;
  overflow: hidden;
  position: relative;
}

.hero::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.03'%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");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #93C5FD;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.15);
}

.hero h1 { color: white; margin-bottom: 20px; }
.hero h1 em { color: #60A5FA; font-style: normal; }

.hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}
.trust-item svg { color: #60A5FA; flex-shrink: 0; }

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  padding: 28px;
  width: 100%;
  max-width: 420px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.doc-preview {
  background: rgba(0,0,0,.25);
  border-radius: var(--radius);
  padding: 16px;
  font-size: .8rem;
  font-family: monospace;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.doc-preview-line { margin-bottom: 6px; display: flex; gap: 8px; }
.doc-tag { color: #60A5FA; font-weight: 600; }
.doc-val { color: #A7F3D0; }

.extraction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .8rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,.8);
}
.extraction-badge {
  background: rgba(34,197,94,.15);
  color: #4ADE80;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ── Stats ── */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--blue); }
.stat-label { font-size: .875rem; color: var(--muted); font-weight: 500; }

/* ── Generic section ── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: var(--navy);
  color: white;
}
.section-dark h2 { color: white; }
.section-dark p  { color: rgba(255,255,255,.75); }
.section-dark .section-label { background: rgba(255,255,255,.12); color: #93C5FD; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--light-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.feature-card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.feature-card p  { font-size: .9375rem; }

/* ── How it Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  z-index: 0;
}

.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.step h3 { margin-bottom: 10px; }
.step p   { font-size: .9375rem; max-width: 240px; margin: 0 auto; }

/* ── Two-col split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > *:first-child { order: 2; }
.split.reverse > *:last-child  { order: 1; }

.split-visual {
  background: linear-gradient(135deg, var(--light-bg), #DBEAFE);
  border-radius: var(--radius-lg);
  padding: 40px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.check-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  color: var(--muted);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,119,204,.08), var(--shadow-lg);
  transform: scale(1.03);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier { font-size: .875rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: super; }
.pricing-period { font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.pricing-desc { font-size: .9375rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--muted); }
.pricing-features .icon-check { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.pricing-features .icon-x { color: #CBD5E0; flex-shrink: 0; margin-top: 2px; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 14px; }
.testimonial-text  { font-size: .9375rem; color: var(--muted); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.author-role { font-size: .8rem; color: var(--muted); }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 50%, #1D5296);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; max-width: 280px; }

.footer-col h4 { color: white; font-size: .875rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}

/* ── About page ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.team-card .role { font-size: .875rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: .875rem; }

/* ── Contact page ── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--light-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-item h4 { font-size: .9375rem; color: var(--navy); margin-bottom: 2px; }
.contact-item p  { font-size: .875rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,119,204,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}

/* ── Page hero (interior pages) ── */
.page-hero {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── Icon helper ── */
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }

/* ── Mobile nav overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,37,64,.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: white; font-size: 1.25rem; font-weight: 600; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid    { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .team-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 64px 0 56px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
  .split.reverse > *:last-child  { order: 0; }
  .split-visual { aspect-ratio: auto; min-height: 220px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
