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

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-700: #1e40af;
  --blue-800: #1e3a8a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --white: #ffffff;
  --red-500: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== Container ===== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 768px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1280px;
  }
}

/* ===== Icons ===== */
.icon {
  width: 24px;
  height: 24px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-xs {
  width: 12px;
  height: 12px;
}

.icon-md {
  width: 32px;
  height: 32px;
}

.icon-lg {
  width: 40px;
  height: 40px;
}

.icon-xl {
  width: 96px;
  height: 96px;
}

.icon-blue {
  color: var(--blue-700);
}

.icon-blue-light {
  color: var(--blue-400);
}

.icon-check {
  width: 16px;
  height: 16px;
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-check-lg {
  width: 20px;
  height: 20px;
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-800);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--slate-300);
  color: var(--slate-900);
}

.btn-outline:hover {
  background: var(--slate-50);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--blue-50);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge-green {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  font-family: 'Geist', sans-serif;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--blue-50), var(--white));
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/87164185/Dv22iYjhgqzDnSayZ6PK5j/grabmail-hero-bg-S4Z6sDuGTLChdinJmuS4ec.webp');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.hero-text {
  max-width: 48rem;
}

.hero-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 3.5rem;
  }
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ===== Stats Section ===== */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 0.5rem;
  font-family: 'Geist', sans-serif;
}

.stat-label {
  color: var(--slate-600);
  font-size: 0.875rem;
}

/* ===== Sections ===== */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-gray {
  background: var(--slate-50);
}

.section-white {
  background: var(--white);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 3rem;
  max-width: 48rem;
  line-height: 1.7;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: var(--white);
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* ===== Feature Row (Deep Dive) ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-row-reverse .feature-image {
  order: 2;
}

@media (min-width: 768px) {
  .feature-row-reverse .feature-image {
    order: 2;
  }
}

.feature-row-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.feature-row-desc {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-example {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: italic;
}

.feature-image {
  display: flex;
  justify-content: center;
}

.feature-image img {
  max-width: 24rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ===== Check List ===== */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-700);
}

/* ===== Download Modes ===== */
.download-modes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-mode-card {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid;
}

.download-mode-blue {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.download-mode-green {
  background: var(--emerald-50);
  border-color: var(--emerald-200);
}

.download-mode-card h4 {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.download-mode-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.download-icon-box {
  background: linear-gradient(to bottom right, var(--blue-100), var(--emerald-50));
  padding: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Use Cases ===== */
.usecases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .usecases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usecase-card {
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: var(--white);
  transition: box-shadow 0.3s;
}

.usecase-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.usecase-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.usecase-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
}

.usecase-example {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-style: italic;
}

/* ===== Steps / How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  text-align: center;
}

.step-circle {
  width: 4rem;
  height: 4rem;
  background: var(--blue-100);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-700);
  font-family: 'Geist', sans-serif;
}

.step-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.step-desc {
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== Privacy Section ===== */
.section-privacy {
  background: linear-gradient(to bottom right, var(--emerald-50), var(--blue-50));
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .privacy-heading {
    font-size: 2.5rem;
  }
}

.privacy-desc {
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.privacy-compliance {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.8;
}

.privacy-image {
  display: flex;
  justify-content: center;
}

.privacy-image img {
  max-width: 24rem;
  border-radius: 0.75rem;
}

/* ===== FAQ Section ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.faq-question:hover {
  background: var(--slate-50);
}

.faq-question span {
  font-weight: 600;
  color: var(--slate-900);
  text-align: left;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--slate-600);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 1rem 1.5rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--slate-600);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta {
  padding: 5rem 0;
  background: linear-gradient(to right, var(--blue-700), var(--blue-800));
  color: var(--white);
}

.cta-content {
  max-width: 640px;
  text-align: center;
}

.cta-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-heading {
    font-size: 2.5rem;
  }
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--blue-100);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 3rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-weight: 700;
  color: var(--white);
  font-family: 'Geist', sans-serif;
}

.footer-tagline {
  font-size: 0.875rem;
}

.footer-col-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-300);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}
