/* ==========================================================================
   InFolzy — Landing Page Styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f6f5fb;
  --text: #17141f;
  --text-muted: #5c5769;
  --border: #ece9f3;
  --header-bg: rgba(255, 255, 255, 0.82);

  --orange: #ff8a1e;
  --pink: #ff2e8f;
  --purple: #8a2be2;
  --gradient: linear-gradient(135deg, #ff8a1e 0%, #ff2e8f 55%, #8a2be2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,138,30,0.12) 0%, rgba(255,46,143,0.12) 55%, rgba(138,43,226,0.12) 100%);

  --shadow-sm: 0 2px 10px rgba(23, 20, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(23, 20, 31, 0.08);
  --shadow-lg: 0 20px 60px rgba(23, 20, 31, 0.14);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --logo-light-display: block;
  --logo-dark-display: none;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0a10;
  --bg-alt: #100e17;
  --surface: #16131f;
  --surface-2: #1c1826;
  --text: #f4f2fa;
  --text-muted: #a8a2b8;
  --border: #2a2536;
  --header-bg: rgba(11, 10, 16, 0.75);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

  --logo-light-display: none;
  --logo-dark-display: block;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0a10;
    --bg-alt: #100e17;
    --surface: #16131f;
    --surface-2: #1c1826;
    --text: #f4f2fa;
    --text-muted: #a8a2b8;
    --border: #2a2536;
    --header-bg: rgba(11, 10, 16, 0.75);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

    --logo-light-display: none;
    --logo-dark-display: block;

    color-scheme: dark;
  }
}

/* --- Reset --------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px;
  line-height: 1.2;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, opacity .2s ease;
}
.store-btn:hover { transform: translateY(-2px); opacity: .92; }
.store-btn svg { flex-shrink: 0; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .store-text small { font-size: 11px; opacity: .7; }
.store-btn .store-text strong { font-size: 15px; font-weight: 700; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; }
.logo-light { display: var(--logo-light-display); }
.logo-dark { display: var(--logo-dark-display); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--pink); transform: rotate(-8deg); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .2s ease;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] { border-color: var(--pink); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: var(--gradient-soft);
  filter: blur(60px);
  z-index: -1;
}

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

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  margin: 0 0 22px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 520px;
}

.hero .store-buttons { margin-bottom: 28px; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}
.hero-stats div strong { display: block; font-size: 22px; }
.hero-stats div span { font-size: 13px; color: var(--text-muted); }

.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}

.feature-card h3 { margin: 0 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* --- Security --------------------------------------------------------------- */
.security {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.security-visual {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.security-visual svg { width: 140px; height: 140px; color: #fff; }

.security-list { display: grid; gap: 22px; margin-top: 28px; }
.security-item { display: flex; gap: 16px; }
.security-item .feature-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; margin-bottom: 0; }
.security-item h4 { margin: 0 0 6px; font-size: 16px; }
.security-item p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* --- CTA --------------------------------------------------------------- */
.cta {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
  max-width: 1132px;
  margin-inline: auto;
}
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 14px; }
.cta p { font-size: 17px; opacity: .92; margin: 0 0 32px; }
.cta .store-buttons { justify-content: center; }
.cta .store-btn { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(6px); }
.cta .store-btn:hover { background: rgba(255,255,255,0.26); }

/* --- FAQ --------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--gradient); border-color: transparent; color: #fff; }

.faq-item .faq-body {
  padding: 0 26px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Contact --------------------------------------------------------------- */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-box p { color: var(--text-muted); margin: 10px 0 26px; }
.contact-box .btn-primary { width: 100%; justify-content: center; }
.contact-box a.email { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--pink); }

.contact-form { text-align: left; display: grid; gap: 18px; }

.form-row { display: grid; gap: 8px; }
.form-row label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 46, 143, 0.15);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit { width: 100%; justify-content: center; border: none; }
.contact-submit[disabled] { opacity: .7; cursor: not-allowed; }

.form-note {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}
.form-note.success { color: #1fae5c; }
.form-note.error { color: #ff4d4d; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-alt);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; margin: 16px 0 20px; max-width: 280px; }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-icons a:hover { background: var(--gradient); border-color: transparent; color: #fff; }

.footer-col h5 { font-size: 14px; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--text); transition: color .2s ease; }
.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --- Reveal animation --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* --- Legal pages --------------------------------------------------------------- */
.legal-hero {
  padding: 64px 0 30px;
  text-align: center;
}
.legal-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.legal-hero p { color: var(--text-muted); }

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 90px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15.5px;
}
.legal-content h2 {
  color: var(--text);
  font-size: 21px;
  margin: 38px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); }

/* --- Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: 1fr; }
  .security-visual { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .cta { padding: 44px 24px; margin: 0 16px; }

  .site-header .container { height: 68px; }
  .brand img { height: 40px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { display: none; }
  .theme-toggle,
  .nav-toggle { width: 38px; height: 38px; }
  .mobile-nav { inset: 68px 0 0 0; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 92px 0 0 0;
  background: var(--bg);
  z-index: 90;
  padding: 30px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav ul { display: grid; gap: 6px; }
.mobile-nav ul a { display: block; padding: 16px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .store-buttons { margin-top: 28px; flex-direction: column; }
.mobile-nav .store-btn { width: 100%; justify-content: center; }
