/* ============================================================
   SELFPRINTZ — LANDING PAGE STYLES
   ============================================================ */

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

:root {
  --primary: #3d5a3e;
  --primary-dark: #2d4430;
  --primary-lt: #f0f4f0;
  --accent: #8b7355;
  --bg: #faf7f2;
  --bg2: #f4efe6;
  --bg3: #ece5d8;
  --card: #ffffff;
  --border: rgba(60, 50, 30, 0.1);
  --text: #1c1c1e;
  --muted: #6b6560;
  --success: #2d7d46;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 12px rgba(61, 90, 62, 0.06);
  --shadow-md: 0 8px 32px rgba(61, 90, 62, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===========================  UTILS  =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================  BUTTONS  =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(61, 90, 62, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 90, 62, 0.3);
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lt);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===========================  NAV  =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
}

.logo-icon {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

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

/* ===========================  HERO  =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #faf7f2 0%, #f0ebe0 100%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(61, 90, 62, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(61, 90, 62, 0.08);
  border: 1px solid rgba(61, 90, 62, 0.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -2px;
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 20px 36px;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.stat-num small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===========================  SECTIONS  =========================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
}

/* ===========================  STEPS  =========================== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 280px;
  flex: 1;
  min-width: 220px;
  transition: all .2s;
  box-shadow: var(--shadow);
}

.step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 24px;
  color: var(--accent);
  align-self: center;
  padding: 0 4px;
}

/* ===========================  FEATURES  =========================== */
.features-section {
  background: var(--bg2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(61, 90, 62, 0.2);
}

.feature-card-highlight {
  background: linear-gradient(135deg, rgba(61, 90, 62, 0.06), rgba(139, 115, 85, 0.04));
  border-color: rgba(61, 90, 62, 0.15);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================  CTA BANNER  =========================== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ===========================  FOOTER  =========================== */
.footer {
  padding: 32px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* =========================== RESPONSIVE LANDING LAYOUT =========================== */
.landing-apm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .nav {
    padding: 10px 0;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
    white-space: nowrap;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links .nav-link:not(.btn) {
    display: none !important;
  }

  .nav-links .btn {
    padding: 8px 14px;
    font-size: 12.5px;
    white-space: nowrap;
    border-radius: 10px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-title {
    font-size: clamp(30px, 7.5vw, 44px);
    letter-spacing: -1px;
  }

  .hero-sub {
    font-size: 14px;
    padding: 0 12px;
    margin-bottom: 24px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
    width: 100%;
    max-width: 300px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .landing-apm-grid {
    grid-template-columns: 1fr;
  }

  #landing-apm-map {
    height: 280px !important;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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