:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0fdf4; /* Light emerald for soft surface */
  --text: #172033;
  --muted: #667085;
  --primary: #10b981; /* Emerald Green */
  --primary-dark: #059669; /* Darker Emerald */
  --border: #d9e0ee;
  --shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
}

.brand-text span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-size: 15px;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.hero {
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.16), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.16), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 670px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.28);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
}

.button.secondary:hover {
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.1);
}

.button.large {
  width: 100%;
  min-height: 54px;
}

.small-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.security-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8e6;
  border: 1px solid #f3d28b;
  color: #5f4300;
}

.security-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #3d2b00;
}

.security-note p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.security-note .security-steps-title {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #3d2b00;
}

.security-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5f4300;
}

.security-steps li {
  margin-bottom: 6px;
}

.security-steps li:last-child {
  margin-bottom: 0;
}

.hero-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-preview-frame {
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  border: 1px solid #d0d7e5;
}

.hero-preview-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  background: #111827;
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  font-size: 23px;
  font-weight: 900;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
}

.soft-section {
  background: var(--surface-soft);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.two-column p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.use-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.use-list div {
  padding: 18px 20px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 800;
}

.screenshots-section {
  background: #ffffff;
}

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

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111827;
  box-shadow: 0 18px 45px rgba(31, 41, 55, 0.16);
}

.screenshot-card-wide {
  grid-column: 1 / -1;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  background: #111827;
}

.screenshot-card figcaption {
  padding: 16px 18px 18px;
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 700;
  background: #111827;
}

.screenshot-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  border: 2px dashed #b8c2d6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.screenshot-placeholder span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.screenshot-placeholder p {
  margin-bottom: 0;
  color: var(--muted);
}

.download-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.16), transparent 32%),
    #eef3ff;
}

.download-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.download-list {
  padding-left: 20px;
  color: var(--muted);
}

.download-actions {
  padding: 24px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.download-actions .button+.button {
  margin-top: 12px;
}

.support-section {
  padding-top: 0;
}

.support-box {
  padding: 42px;
  text-align: center;
  border-radius: 30px;
  background: #111827;
  color: white;
}

.support-box p {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  color: #d1d5db;
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--border);
}

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

.footer-inner p {
  margin-bottom: 0;
}

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

.footer-inner a {
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--primary);
}

/* FAQ Section */
.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-item h3::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .two-column,
  .download-box {
    grid-template-columns: 1fr;
  }

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

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

  .screenshot-card-wide {
    grid-column: auto;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .section {
    padding: 62px 0;
  }

  .download-box,
  .support-box {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-preview-frame img {
    max-height: none;
  }

  .screenshot-placeholder {
    min-height: 220px;
  }

  .screenshot-card img {
    max-height: none;
  }
}

/* ==========================================================================
   8. Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--primary);
}

.screenshot-card img:hover, .hero-preview-frame img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
