/* ============================================================
   landing.css — Folio Landing Page
   ============================================================ */

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

:root {
  --ink: #0d0d0f;
  --ink-soft: #3a3a3f;
  --ink-muted: #8a8a94;
  --paper: #fafaf8;
  --cream: #f4f1eb;
  --accent: #e8641a;
  --accent-light: #fdeede;
  --green: #2d7a4f;
  --border: #e2dfd8;
  --radius: 10px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--paper); color: var(--ink); overflow-x: hidden; }

a { text-decoration: none; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(250,250,248,0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-logo { font-family: var(--font-serif); font-size: 22px; font-weight: 900; letter-spacing: -0.5px; color: var(--ink); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn-ghost { background: none; border: 1.5px solid var(--border); color: var(--ink); padding: 8px 20px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); transition: all 0.2s; display: inline-block; }
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-primary { background: var(--ink); color: var(--paper); padding: 9px 20px; border-radius: 7px; border: none; font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); transition: all 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--accent); }

.nav-hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 4px; }

.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99; background: var(--paper); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px 24px; gap: 12px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--border); }
.btn-primary-mobile { background: var(--ink); color: white; padding: 12px; border-radius: 8px; text-align: center; display: block; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 48px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #f0ebe0 0%, transparent 70%);
}
.hero-inner { max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-light); color: var(--accent); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 28px; }
.hero-kicker span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1 { font-family: var(--font-serif); font-size: clamp(42px, 5vw, 70px); line-height: 1.06; letter-spacing: -2px; font-weight: 900; margin-bottom: 24px; }
h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 17px; line-height: 1.75; color: var(--ink-soft); max-width: 440px; margin-bottom: 40px; font-weight: 300; }

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.btn-hero { background: var(--accent); color: white; padding: 14px 32px; border-radius: 8px; border: none; font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); transition: all 0.25s; box-shadow: 0 4px 20px rgba(232,100,26,0.3); display: inline-block; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,100,26,0.4); }
.btn-demo { color: var(--ink-soft); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: color 0.2s; }
.btn-demo:hover { color: var(--ink); }
.play-btn { width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); flex-shrink: 0; padding-left: 2px; }

.hero-trust { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-muted); }
.trust-avatars { display: flex; }
.trust-av { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 2px solid white; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-left: -8px; }
.trust-av:first-child { margin-left: 0; }
.hero-trust strong { color: var(--ink); }

/* Editor preview mockup */
.hero-visual { position: relative; }
.editor-preview {
  background: white; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden; border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.ep-bar { background: var(--ink); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.ep-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ep-bar-title { flex: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,0.3); font-family: monospace; }

.ep-body { padding: 20px; }
.ep-hero-block { background: linear-gradient(135deg, #1a1a2e 0%, #2d1a4a 100%); border-radius: 8px; padding: 24px 20px; margin-bottom: 12px; position: relative; overflow: hidden; }
.ep-hero-block::after { content:''; position:absolute; top:-20px; right:-20px; width:80px; height:80px; border-radius:50%; background:rgba(232,100,26,0.4); }
.ep-hero-tag { display: inline-block; background: rgba(232,100,26,0.2); color: #e8641a; padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 500; margin-bottom: 8px; }
.ep-hero-title { font-family: var(--font-serif); font-size: 17px; color: white; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.ep-hero-title em { color: #e8641a; font-style: italic; }
.ep-hero-sub { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.5; }

.ep-blocks { display: flex; flex-direction: column; gap: 8px; }
.ep-block { border: 1.5px dashed #e0ddd8; border-radius: 6px; padding: 10px 12px; }
.ep-block-active { border-color: var(--accent); border-style: solid; background: #fff9f5; }
.ep-block-type { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-muted); display: block; margin-bottom: 5px; }
.ep-lines { display: flex; flex-direction: column; gap: 3px; }
.l { height: 5px; background: #e8e5df; border-radius: 3px; }
.l-full { width: 100%; } .l-medium { width: 80%; } .l-short { width: 55%; }

.float-badge { position: absolute; background: white; border-radius: 10px; padding: 8px 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid var(--border); font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 8px; animation: float2 5s ease-in-out infinite; white-space: nowrap; }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.badge-saved     { bottom: -16px; left: -24px; animation-delay: 1s; }
.badge-published { top: 20px; right: -20px; animation-delay: 2s; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.badge-dot.green { background: var(--green); }

/* FEATURES STRIP */
.features-strip { background: var(--ink); padding: 16px 48px; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.features-strip span { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }
.features-strip span::before { content:'✦'; color: var(--accent); font-size: 10px; }

/* STATS */
.stats-section { padding: 64px 48px; }
.stats-inner { max-width: 720px; margin: 0 auto; display: flex; justify-content: center; }
.stat { flex: 1; text-align: center; padding: 0 32px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-serif); font-size: 52px; font-weight: 900; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 13px; color: var(--ink-muted); font-weight: 300; }

/* SECTION SHARED */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 80px 48px; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.section-h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 48px); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.1; }
.section-h2 em { font-style: italic; color: var(--accent); }
.section-p { font-size: 16px; color: var(--ink-soft); font-weight: 300; max-width: 480px; line-height: 1.7; margin-bottom: 0; }

/* TEMPLATES */
.templates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.template-card { border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border); background: white; cursor: pointer; transition: all 0.3s; }
.template-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.template-thumb { height: 180px; padding: 20px; }
.tt-inner { display: flex; flex-direction: column; gap: 8px; }
.tt-bar { height: 6px; border-radius: 3px; }
.tt-lines { display: flex; flex-direction: column; gap: 4px; }
.tt-line { height: 4px; border-radius: 2px; }
.template-info { padding: 14px; border-top: 1px solid var(--border); }
.t-name { font-size: 13px; font-weight: 500; }
.t-tag { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature-card { background: var(--cream); border-radius: 12px; padding: 28px; border: 1px solid var(--border); transition: all 0.3s; }
.feature-card:hover { background: white; box-shadow: 0 8px 32px rgba(0,0,0,0.06); transform: translateY(-3px); }
.feature-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.feature-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

/* PRICING */
.pricing-section { background: var(--cream); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pricing-card { background: white; border: 1.5px solid var(--border); border-radius: 16px; padding: 32px; position: relative; transition: all 0.3s; }
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.pricing-card.highlighted { border-color: var(--accent); box-shadow: 0 8px 40px rgba(232,100,26,0.15); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; font-size: 11px; font-weight: 600; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.pricing-name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-muted); margin-bottom: 12px; }
.pricing-price { font-family: var(--font-serif); font-size: 52px; font-weight: 900; color: var(--ink); line-height: 1; margin-bottom: 24px; }
.pricing-price span { font-size: 16px; font-family: var(--font-sans); color: var(--ink-muted); font-weight: 400; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; color: var(--ink-soft); font-weight: 300; display: flex; gap: 8px; align-items: flex-start; }
.pricing-cta { display: block; text-align: center; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--border); color: var(--ink); transition: all 0.2s; }
.pricing-cta:hover { border-color: var(--ink-muted); background: var(--cream); }
.pricing-cta.primary { background: var(--accent); color: white; border-color: var(--accent); }
.pricing-cta.primary:hover { background: #d05415; }

/* CTA BAND */
.cta-band { padding: 0 48px 80px; }
.cta-inner { max-width: 1100px; margin: 0 auto; background: var(--ink); border-radius: 20px; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background-image: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,100,26,0.12) 0%, transparent 70%); }
.cta-inner h2 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: white; letter-spacing: -1px; line-height: 1.1; }
.cta-inner h2 em { color: var(--accent); font-style: italic; }
.cta-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex-shrink: 0; }
.btn-cta { background: var(--accent); color: white; padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 500; font-family: var(--font-sans); white-space: nowrap; border: none; display: inline-block; transition: all 0.2s; }
.btn-cta:hover { background: #d05415; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.35); }

/* FOOTER */
.site-footer { background: var(--ink); padding: 64px 48px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 80px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .nav-logo { color: white; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); max-width: 220px; line-height: 1.6; font-weight: 300; }
.footer-links { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); font-weight: 500; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.25); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub, .hero-trust { margin: 0 auto 24px; }
  .hero-actions { justify-content: center; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .nav { padding: 0 20px; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .templates-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .stat { border-right: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero, .section-inner { padding-left: 20px; padding-right: 20px; }
  .features-strip { gap: 20px; padding: 16px 20px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .cta-band { padding: 0 16px 48px; }
  .cta-inner { padding: 28px 20px; }
  .stats-section { padding: 40px 16px; }
  .hero { padding: 100px 16px 60px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 48px 16px 0; }
  /* Prevent iOS input zoom */
  input, select, textarea { font-size: 16px !important; }
  a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
}
