/* ===== Variables ===== */
:root {
  --green: #b5e61d;
  --green-dark: #9ecc00;
  --green-light: #eef9c8;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-light: #888;
  --bg: #ffffff;
  --bg-alt: #f7f8f9;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 80px;
  --container-max: 1120px;
  --container-pad: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #f3f4f6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--text);
  border: 2px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181, 230, 29, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-text { font-weight: 500; font-size: 0.95rem; color: var(--text); }
.btn-text:hover { color: var(--green-dark); }

.signup-placeholder {
  pointer-events: none;
  opacity: 0.85;
  cursor: default;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.logo-link { justify-self: start; }

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  gap: 36px;
  justify-self: center;
}

.nav-desktop a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-desktop a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  grid-column: 3;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.nav-mobile a:last-child { border-bottom: none; }

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

/* ===== Hero ===== */
.hero {
  padding: 56px 0 0;
  overflow: hidden;
  background: #f3f4f6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-light);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  perspective: 1200px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg);
  max-width: 420px;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

/* Blur personal name on dashboard screenshot */
.hero-dashboard-privacy {
  position: absolute;
  top: 15%;
  left: 6%;
  width: 58%;
  height: 11%;
  border-radius: 8px;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(59, 130, 246, 0.35);
}

.hero-image-wrap:hover {
  transform: rotateY(-4deg) rotateX(1deg);
}

.hero-dashboard {
  width: 100%;
  border-radius: var(--radius-lg);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(181, 230, 29, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ===== Trust bar ===== */
.trust-bar {
  padding: 0 0 56px;
  background: #f3f4f6;
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid #d1d5db;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.trust-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6b7280;
  stroke-width: 1.25;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

#features {
  padding: 88px 0 96px;
}

#features .section-title {
  margin-bottom: 64px;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

/* ===== Feature columns (reference: no cards, centered) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 40px;
}

.feature-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.feature-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--green);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 250px;
}

/* ===== Scanning section ===== */
.section-scan {
  background: #f3f4f6;
  padding: 80px 0;
}

.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: center;
}

.scan-content,
.scan-visual {
  min-width: 0;
}

.scan-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.highlight-box {
  background: #edf6c8;
  border: none;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.4;
}

.scan-note {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.scan-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scan-hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

/* ===== Benefits ===== */
.section-benefits {
  padding: 88px 0 96px;
}

.section-benefits .section-title {
  margin-bottom: 56px;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.benefit-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--green);
}

.benefit-text h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}

.benefit-text p {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.55;
}

/* ===== Testimonial ===== */
.testimonial {
  background: var(--bg);
  padding: 80px 0 72px;
}

.testimonial-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.testimonial-box {
  max-width: 760px;
  margin: 0 auto;
  background: #f0f9d4;
  border-radius: 12px;
  padding: 40px 48px 36px;
  text-align: center;
}

.quote-mark {
  display: block;
  font-size: 4rem;
  line-height: 0.7;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 12px;
}

.testimonial blockquote p {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.45;
  color: var(--text);
}

.testimonial blockquote footer {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: normal;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 72px 0 80px;
  background: #f5f8eb;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-url {
  margin-top: 18px;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ===== Footer ===== */
.site-footer {
  background: #f3f4f6;
  border-top: none;
  padding: 48px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.8fr;
  gap: 32px 24px;
  align-items: start;
}

.footer-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 0.8125rem;
  color: #6b7280;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-copy {
  text-align: right;
  align-self: center;
}

.footer-copy p {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--bg-alt); }

.modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.demo-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
}

.req { color: #dc2626; }
.optional { font-weight: 400; color: var(--text-light); font-size: 0.8rem; }

.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(181, 230, 29, 0.25);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-status[hidden] { display: none; }

#demoSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --container-pad: 32px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 24px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .nav-desktop,
  .header-actions { display: none; }

  .nav-toggle {
    display: flex;
    margin-left: 0;
  }

  .hero-grid,
  .scan-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero { padding: 40px 0 0; }
  .hero-content { order: 1; }
  .hero-visual {
    order: 2;
    justify-content: center;
  }

  .hero-image-wrap {
    max-width: 360px;
    margin: 0 auto;
    transform: none;
  }

  .hero-image-wrap:hover { transform: none; }

  .section { padding: 56px 0; }

  .testimonial-box {
    padding: 32px 24px 28px;
  }

  .feature-grid,
  .benefit-grid { grid-template-columns: 1fr; }

  .trust-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 24px;
  }

  .trust-item {
    flex: 0 1 auto;
    justify-content: center;
  }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }

  .scan-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .scan-content .highlight-box,
  .scan-content .scan-note {
    text-align: center;
  }

  .scan-visual {
    order: 2;
    justify-content: center;
  }

  .scan-hero-img {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 20px;
  }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .trust-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .trust-item {
    justify-content: center;
    width: 100%;
    max-width: 260px;
  }

  .hero-dashboard-privacy {
    top: 14%;
    left: 5%;
    width: 60%;
    height: 12%;
  }
}
