/* ============================================================
   Biodata Maker — Website Stylesheet
   Standalone site. Brand color: #6C3DE8 (purple)
   ============================================================ */

:root {
  --brand: #6C3DE8;
  --brand-dark: #4a23b8;
  --brand-light: #8E55F0;
  --grad-blue: #0062B3;
  --grad-purple: #9C27B0;
  --grad-pink: #E91E63;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --muted: #8a8aa0;
  --bg: #ffffff;
  --bg-soft: #f6f4ff;
  --bg-card: #ffffff;
  --border: #ece9f5;
  --shadow: 0 10px 30px rgba(108, 61, 232, 0.10);
  --shadow-lg: 0 20px 50px rgba(108, 61, 232, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 8px 22px rgba(108, 61, 232, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(108, 61, 232, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--bg-soft); }

/* App Store button (with Apple logo) */
.apple-logo {
  width: 20px; height: 20px;
  fill: currentColor;
  flex: none;
}
.appstore-btn { gap: 10px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-lg .apple-logo { width: 24px; height: 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  /* backdrop-filter: saturate(180%) blur(12px); */
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .grad-text {
  background: linear-gradient(120deg, var(--grad-blue), var(--grad-purple), var(--grad-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
}

/* Header "Get App" button — always visible */
.header-cta {
  display: inline-flex;
  padding: 8px 18px;
  font-size: 14px;
}

/* Sticky bottom download bar */
.sticky-download {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(108, 61, 232, 0.12);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.sticky-download.show { transform: translateY(0); }
.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
}
.sticky-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-info strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.sticky-info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-download .btn { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 60px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(142, 85, 240, 0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(0, 98, 179, 0.10), transparent 55%),
    var(--bg-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-single {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}
.hero-single .lead { margin-left: auto; margin-right: auto; }
.hero-single .hero-actions, .hero-single .hero-stats { justify-content: center; }

/* Trust lines under download button */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: nowrap;
  margin-top: 16px;
  white-space: nowrap;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-trust .material-symbols-rounded {
  font-size: 18px;
  color: #22a45d;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.hero h1 .grad-text {
  background: linear-gradient(120deg, var(--grad-blue), var(--grad-purple), var(--grad-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 42px;
}
.hero-stats .stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
}
.hero-stats .stat span { font-size: 13px; color: var(--muted); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-visual img {
  width: 100%;
}
.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* Phone frame + floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

/* Horizontal scrolling preview strip — full bleed, no side padding */
.preview-strip {
  margin: 0 -22px 40px;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.preview-strip::-webkit-scrollbar { display: none; }
.preview-track {
  display: flex;
  gap: 16px;
  padding: 6px 0 14px;
  width: max-content;
}
.preview-strip .shot {
  flex: 0 0 auto;
  width: 150px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 0 2px rgba(26, 26, 46, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
  aspect-ratio: 210 / 297;
}
.preview-strip .shot:hover { transform: translateY(-6px); box-shadow: 0 0 2px rgba(26, 26, 46, 0.6); }
.preview-strip .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Trust strip */
.trust {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 14px;
}
.trust-items { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-item .material-symbols-rounded { color: var(--brand); font-size: 20px; }

/* CTA eyebrow + note */
.cta-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.cta-note { font-size: 14px; opacity: .85; margin-top: 18px; margin-bottom: 0; }

/* ---------- Section ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 10px 0 14px;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Features ---------- */
.features { background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Templates / Screenshots ---------- */
.gallery { background: var(--bg-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.shot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  aspect-ratio: 210 / 297; /* A4 */
}
.shot:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Steps ---------- */
.steps { background: var(--bg); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 auto;
  max-width: var(--maxw);
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 17px; opacity: .92; margin-bottom: 26px; }
.cta .btn-light {
  background: #fff; color: var(--brand);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.cta .btn-light:hover { transform: translateY(-2px); }
.cta .btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6);
}
.cta .btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Legal / Content pages ---------- */
.page-hero {
  background: var(--bg-soft);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-hero p { color: var(--ink-soft); margin-top: 8px; }
.legal { padding: 50px 0 80px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 24px; margin: 34px 0 12px; font-weight: 700; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; font-weight: 600; color: var(--brand); }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal .updated { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info .info-item {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px;
}
.contact-info .info-item .ic {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand); font-size: 24px;
}
.contact-info .info-item strong { display: block; font-size: 16px; }
.contact-info .info-item span { color: var(--ink-soft); font-size: 14px; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108, 61, 232, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #15132a;
  color: #c9c6e0;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .grad-text {
  background: linear-gradient(120deg, #5aa9ff, #c46bff, #ff7eb0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-about { font-size: 14px; color: #a7a3c4; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #a7a3c4; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #8e8aad;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .trust-inner { justify-content: center; text-align: center; }
  .trust-items { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 22px 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 12px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .feature-grid, .step-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .trust-items { gap: 14px 18px; }
  .preview-strip .shot { width: 120px; }
  .header-cta { padding: 7px 14px; font-size: 13.5px; }
  section { padding: 56px 0; }
}
