/* =========================================================
   Last4Less — Shared Styles
   Bold & modern dark theme
   ========================================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0D1117;
  --bg-card:     #161B22;
  --bg-hover:    #1C2330;
  --border:      rgba(255, 255, 255, 0.08);
  --orange:      #FF5722;
  --orange-dim:  #CC4419;
  --green:       #22C55E;
  --green-dim:   #16A34A;
  --text:        #F0F6FC;
  --muted:       #8B949E;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --transition:  0.2s ease;
  --max-w:       1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__logo span.accent { color: var(--orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--text); background: var(--bg-hover); }
.nav__links a.btn-nav {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.nav__links a.btn-nav:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dim); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,87,34,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); background: var(--bg-hover); }

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-dim); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(34,197,94,0.35); }

.btn-full { width: 100%; justify-content: center; }

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,87,34,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,87,34,0.1);
  border: 1px solid rgba(255,87,34,0.25);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero__title { margin-bottom: 24px; color: var(--text); }
.hero__title .highlight { color: var(--orange); }
.hero__title .highlight-green { color: var(--green); }

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 64px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.hero__stat {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__stat strong { color: var(--text); font-weight: 700; }
.hero__stat .sep { color: var(--border); }

/* ---- Audience cards ---- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.audience-card.card-merchant::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,87,34,0.08), transparent); }
.audience-card.card-shopper::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34,197,94,0.08), transparent); }

.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience-card.card-merchant:hover { border-color: rgba(255,87,34,0.4); }
.audience-card.card-merchant:hover::before { opacity: 1; }
.audience-card.card-shopper:hover { border-color: rgba(34,197,94,0.4); }
.audience-card.card-shopper:hover::before { opacity: 1; }

.card__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.card__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-merchant .card__label { color: var(--orange); }
.card-shopper .card__label { color: var(--green); }

.card__title { font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }
.card__desc { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: gap var(--transition);
}
.card-merchant .card__link { color: var(--orange); }
.card-shopper .card__link { color: var(--green); }
.audience-card:hover .card__link { gap: 10px; }

/* ---- Section headings ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title { color: var(--text); margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 520px; font-size: 1.05rem; }

/* ---- Feature list ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature__icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature h3 { color: var(--text); margin-bottom: 8px; }
.feature p { font-size: 0.93rem; }

/* ---- Signup form ---- */
.signup-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signup-box {
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.form-row {
  display: flex;
  gap: 12px;
}
@media (max-width: 500px) { .form-row { flex-direction: column; } }

.form-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--orange); }
.form-input.input-green:focus { border-color: var(--green); }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Success state */
.form-success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--green);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ---- Audience-specific hero accents ---- */
.hero--merchant::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,87,34,0.14) 0%, transparent 70%);
}
.hero--shopper::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,197,94,0.14) 0%, transparent 70%);
}

/* ---- Benefits list ---- */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
  max-width: 560px;
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.benefit__icon--orange { background: rgba(255,87,34,0.12); }
.benefit__icon--green  { background: rgba(34,197,94,0.12); }

.benefit h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 4px; }
.benefit p  { font-size: 0.9rem; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer__logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.footer__logo span { color: var(--orange); }

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---- Divider ---- */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero   { padding: 80px 0 64px; }
  .nav__links .hide-mobile { display: none; }
  .audience-card { padding: 28px 24px; }
}
