@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #E31E24;
  --red-dark: #B8141A;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F0F1F4;
  --text: #1A1B22;
  --text-2: #4A4C57;
  --muted: #8A8D99;
  --line: rgba(0,0,0,0.08);
  --line-2: rgba(0,0,0,0.04);
  --green: #10B981;
  --green-bg: #ECFDF5;
  --red-bg: #FEF2F2;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo svg { height: 96px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta, .nav-mobile .nav-cta {
  background: var(--red); color: #fff;
  padding: 10px 22px; border-radius: 6px;
  font-weight: 700; font-size: 13px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-links .nav-cta:hover, .nav-mobile .nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-login {
  font-weight: 700; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); padding: 9px 20px; border-radius: 6px;
  transition: border-color 0.2s var(--ease);
}
.nav-login:hover { border-color: var(--muted); }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--text);
}
.nav-burger svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  flex-direction: column; gap: 8px;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.nav-mobile a {
  font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 10px 0;
}
.nav-mobile .nav-cta { text-align: center; margin-top: 8px; }

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 140px 24px 80px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: radial-gradient(ellipse at 70% 30%, rgba(227,30,36,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--red);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -1.5px; color: var(--text);
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p {
  font-size: 17px; color: var(--muted);
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  padding: 16px 32px; border-radius: 8px;
  transition: all 0.25s var(--ease);
  cursor: pointer; border: none;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,30,36,0.2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn-full { width: 100%; }

/* MOCKUP */
.mockup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.4s var(--ease);
}
.mockup:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0deg); }
.mockup-bar {
  background: var(--surface-2); padding: 10px 14px;
  display: flex; gap: 6px;
  border-bottom: 1px solid var(--line);
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #FF5F56; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #27C93F; }
.mockup-body { background: #fff; color: var(--text); padding: 28px; }
.mockup-invoice-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 2px solid var(--surface-2);
}
.mockup-invoice-head strong { font-size: 15px; display: block; margin-bottom: 4px; }
.mockup-invoice-head small { font-size: 12px; color: var(--muted); }
.mockup-badge {
  background: var(--green-bg); color: #065F46;
  padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 800;
}
.mockup-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mockup-table th {
  text-align: left; padding: 10px 8px;
  background: var(--surface-2); color: var(--muted); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}
.mockup-table td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); }
.mockup-table td:last-child { font-weight: 700; }
.mockup-total {
  display: flex; justify-content: flex-end; gap: 40px;
  margin-top: 20px; padding-top: 16px;
  border-top: 2px solid var(--surface-2); font-size: 14px;
}
.mockup-total strong { font-size: 18px; }

/* SECTIONS */
.section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 16px;
}
.section-intro {
  font-size: 17px; color: var(--muted);
  max-width: 560px; margin-bottom: 56px;
}

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { border-color: rgba(227,30,36,0.3); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.feature.wide { grid-column: span 2; }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--red-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon img { width: 40px; height: 40px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* COMPARISON */
.compare { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  text-align: left; font-size: 15px;
}
.compare-table th { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.compare-table th.wms { color: var(--red); }
.compare-table td.wms { color: var(--green); font-weight: 700; }
.compare-table td.no { color: #EF4444; }
.compare-table td.meh { color: var(--muted); }

/* PRICING */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px 40px;
  max-width: 480px; margin: 0 auto;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.pricing-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  border-radius: 14px 14px 0 0;
}
.pricing-card h3 {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 16px;
}
.pricing-amount { font-size: 56px; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; color: var(--text); }
.pricing-amount span { font-size: 18px; color: var(--muted); font-weight: 600; }
.pricing-note { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.pricing-features { text-align: left; margin-bottom: 36px; list-style: none; }
.pricing-features li {
  padding: 10px 0; font-size: 15px; color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: ''; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* FOOTER */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 60px 24px 40px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 280px; }
.footer-brand svg { height: 36px; width: auto; }
.footer-col h4 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--muted);
  padding: 6px 0; transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}

/* STICKY BAR */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar-info { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sticky-bar-info a { color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sticky-bar .btn { padding: 10px 24px; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-top: 120px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-mobile.open { display: flex; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .sticky-bar { flex-direction: column; gap: 10px; padding: 12px; text-align: center; }
  .sticky-bar .btn { width: 100%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .pricing-amount { font-size: 42px; }
  .section { padding: 60px 20px; }
}
