:root {
  --primary: #39A900;
  --primary-dark: #287A00;
  --primary-light: #E8F5E0;
  --secondary: #F28C00;
  --secondary-dark: #C96F00;
  --secondary-light: #FFF1DC;
  --accent-gold: #C9A227;
  --background: #F7F8F6;
  --surface: #FFFFFF;
  --text: #212529;
  --text-muted: #6C757D;
  --border: #DDE3DA;
  --shadow: 0 18px 38px rgba(33, 37, 41, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(57, 169, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  min-width: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  filter: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text small {
  color: var(--muted);
}

.nav-links,
.actions,
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.primary-btn,
.ghost-btn,
.tab-btn,
.slider-btn,
.close-modal {
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(57, 169, 0, 0.2);
}

.ghost-btn,
.tab-btn {
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.ghost-btn:hover,
.tab-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.primary-btn:hover,
.ghost-btn:hover,
.tab-btn:hover,
.slider-btn:hover,
.close-modal:hover {
  transform: translateY(-2px);
}

main {
  padding: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

.eyebrow {
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero h1,
.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text,
.line-card p,
.process-grid p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card,
.line-card,
.process-grid > div,
.modal-card,
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 24px;
  padding: 1.4rem;
}

.hero-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card ul {
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.lines-section,
.process-section {
  padding: 2rem 0 3rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.line-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.line-card {
  border-radius: 22px;
  padding: 1.3rem;
}

.line-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.line-number {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

.slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  color: white;
}

.slide {
  display: none;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}

.slide.active {
  display: block;
}

.slide h4 {
  margin: 0 0 0.4rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.38rem;
  margin-top: 0.8rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}

.dot.active {
  background: var(--primary);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.process-grid > div {
  border-radius: 20px;
  padding: 1.2rem;
}

.guide-section {
  padding: 1rem 0 2rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.guide-card {
  border-radius: 18px;
  padding: 1.1rem;
}

.swatch {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.swatch.primary { background: var(--primary); }
.swatch.primary-dark { background: var(--primary-dark); }
.swatch.primary-light { background: var(--primary-light); }
.swatch.secondary { background: var(--secondary); }
.swatch.secondary-dark { background: var(--secondary-dark); }
.swatch.secondary-light { background: var(--secondary-light); }
.swatch.accent-gold { background: var(--accent-gold); }
.swatch.background { background: var(--background); }
.swatch.surface { background: var(--surface); }
.swatch.text { background: var(--text); }
.swatch.text-muted { background: var(--text-muted); }
.swatch.border { background: var(--border); }

.guide-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.guide-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.4);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.52);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(100%, 460px);
  padding: 1.4rem;
  border-radius: 24px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf8 100%);
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px rgba(29, 57, 0, 0.12);
}

.modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 24px 24px 0 0;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  z-index: 2;
}

.modal-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  margin: 3.2rem 0 1.2rem;
  padding: 0.25rem;
  border-radius: 14px;
  background: var(--primary-light);
}

.tab-btn {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 18px rgba(57, 169, 0, 0.18);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.auth-form.active {
  display: flex;
}

.auth-form h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.5rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 500;
}

.auth-form input {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(57, 169, 0, 0.12);
}

.full {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .line-cards,
  .process-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer {
    flex-direction: column;
    gap: 1rem;
  }

  main {
    padding: 1rem;
  }

  .nav-links,
  .actions,
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}
