/* ========================================
   DocScanPro Website — Notion-inspired Design
   ======================================== */

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

:root {
  /* Colors */
  --color-black: rgba(0, 0, 0, 0.95);
  --color-white: #ffffff;
  --color-blue: #0075de;
  --color-blue-hover: #005bab;
  --color-blue-focus: #097fe8;
  --color-warm-white: #f6f5f4;
  --color-warm-dark: #31302e;
  --color-warm-gray-500: #615d59;
  --color-warm-gray-300: #a39e98;
  --color-teal: #2a9d99;
  --color-deep-navy: #213183;

  /* Shadows */
  --shadow-card: rgba(0, 0, 0, 0.04) 0px 4px 18px,
                 rgba(0, 0, 0, 0.027) 0px 2.025px 7.85px,
                 rgba(0, 0, 0, 0.02) 0px 0.8px 2.93px,
                 rgba(0, 0, 0, 0.01) 0px 0.175px 1.04px;
  --shadow-deep: rgba(0, 0, 0, 0.01) 0px 1px 3px,
                 rgba(0, 0, 0, 0.02) 0px 3px 7px,
                 rgba(0, 0, 0, 0.02) 0px 7px 15px,
                 rgba(0, 0, 0, 0.04) 0px 14px 28px,
                 rgba(0, 0, 0, 0.05) 0px 23px 52px;

  /* Borders */
  --border-whisper: 1px solid rgba(0, 0, 0, 0.1);

  /* Radius */
  --radius-btn: 4px;
  --radius-card: 12px;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-feature-settings: "lnum", "locl";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.50;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-blue-hover);
}

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hide-mobile {
  display: inline;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: var(--border-whisper);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.3px;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-black);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-blue);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--color-blue-hover);
  color: var(--color-white);
  transform: scale(1.02);
}

.nav-cta:active {
  transform: scale(0.95);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-bottom: var(--border-whisper);
  background: var(--color-white);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-black);
  padding: 10px 0;
  border-bottom: var(--border-whisper);
}

.nav-mobile-link:last-of-type {
  border-bottom: none;
}

.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-blue);
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  margin-top: 12px;
  text-align: center;
}

.nav-mobile-cta:hover {
  color: var(--color-white);
  background: var(--color-blue-hover);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.125px;
  color: var(--color-blue-focus);
  background: #f2f9ff;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.badge--light {
  color: #62aef0;
  background: rgba(255, 255, 255, 0.12);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.33;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 12px 24px;
}

.btn-primary:hover {
  background: var(--color-blue-hover);
  color: var(--color-white);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--color-black);
  padding: 12px 24px;
  border: none;
}

.btn-ghost:hover {
  color: var(--color-blue);
}

/* --- Section Common --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--color-black);
  margin-bottom: 20px;
}

.section-title--light {
  color: var(--color-white);
}

.section-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.50;
  color: var(--color-warm-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-desc--light {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: var(--color-white);
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2.125px;
  color: var(--color-black);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.50;
  color: var(--color-warm-gray-500);
  max-width: 640px;
  margin: 0 auto 36px;
  letter-spacing: -0.125px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-screenshot {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: var(--border-whisper);
  box-shadow: var(--shadow-deep);
  display: block;
}

/* Step images */
.step-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: var(--border-whisper);
  display: block;
}

/* --- Screenshot Placeholder --- */
.screenshot-placeholder {
  background: var(--color-warm-white);
  border: var(--border-whisper);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: var(--color-warm-gray-300);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.placeholder-icon {
  margin-bottom: 12px;
}

.placeholder-hint {
  font-size: 12px;
  color: var(--color-warm-gray-300);
  margin-top: 6px;
  opacity: 0.7;
}

/* --- Metrics --- */
.metrics {
  padding: 48px 0;
  background: var(--color-warm-white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  text-align: center;
  padding: 32px 16px;
}

.metric-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-warm-gray-500);
  line-height: 1.43;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  border: var(--border-whisper);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: -0.25px;
  color: var(--color-black);
  margin-bottom: 10px;
}

.feature-card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-warm-gray-500);
}

/* --- Workflow --- */
.workflow {
  padding: 100px 0;
  background: var(--color-warm-white);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-blue);
  opacity: 0.2;
  letter-spacing: -1.5px;
  text-align: center;
}

.step-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -0.625px;
  color: var(--color-black);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-warm-gray-500);
}

.workflow-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0, 117, 222, 0.15), rgba(0, 117, 222, 0.05));
  margin-left: 39px;
}

/* --- Highlight (Dark) --- */
.highlight {
  padding: 100px 0;
  background: var(--color-warm-dark);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: background 0.2s ease;
}

.highlight-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.highlight-card-icon {
  margin-bottom: 20px;
}

.highlight-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: -0.25px;
}

.highlight-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Use Cases --- */
.usecases {
  padding: 100px 0;
  background: var(--color-white);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usecase-card {
  text-align: center;
  padding: 36px 24px;
  border: var(--border-whisper);
  border-radius: var(--radius-card);
  transition: box-shadow 0.2s ease;
}

.usecase-card:hover {
  box-shadow: var(--shadow-card);
}

.usecase-emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.usecase-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
}

.usecase-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-warm-gray-500);
}

/* --- Download --- */
.download {
  padding: 100px 0;
  background: var(--color-warm-white);
}

.download-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-content .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.download-buttons {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-warm-gray-500);
  margin-bottom: 12px;
}

.download-divider {
  color: var(--color-warm-gray-300);
}

.download-note {
  font-size: 13px;
  color: var(--color-warm-gray-300);
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  border: var(--border-whisper);
  border-radius: var(--radius-card);
  padding: 36px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-card);
}

.contact-icon {
  margin-bottom: 16px;
}

.contact-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
}

.contact-card-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-blue);
}

.contact-card-text {
  font-size: 15px;
  color: var(--color-warm-gray-500);
}

.contact-card-sub {
  font-size: 13px;
  color: var(--color-warm-gray-300);
  margin-top: 4px;
  margin-bottom: 12px;
}

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

.qr-image img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  border: var(--border-whisper);
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qr-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card);
}

/* --- QR Modal (click to enlarge) --- */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: qr-fade-in 0.2s ease;
}

.qr-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
}

@keyframes qr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: var(--border-whisper);
  background: var(--color-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-warm-gray-500);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--color-warm-gray-300);
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1080px) {
  .hero-title {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .section-title {
    font-size: 40px;
    letter-spacing: -1.25px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-step {
    grid-template-columns: 60px 1fr;
  }

  .step-image {
    grid-column: 1 / -1;
  }

  .screenshot-placeholder--small {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1.10;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hide-mobile {
    display: none;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .section-desc {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .metric-number {
    font-size: 32px;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 0;
  }

  .step-number {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .workflow-connector {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .features,
  .workflow,
  .highlight,
  .usecases,
  .download,
  .contact {
    padding: 64px 0;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-title {
    font-size: 28px;
    letter-spacing: -0.75px;
  }

  .container {
    padding: 0 16px;
  }
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
