:root {
  --bg: #fdfcf7;
  --surface: #ffffff;
  --s2: #f5f3ec;
  --border: rgba(56, 78, 54, 0.08);
  --border2: rgba(56, 78, 54, 0.15);
  --text: #223221;
  --muted: #5e6f60;
  --green: #2e7d44;
  --green-light: rgba(46, 125, 68, 0.08);
  --green-hover: #1e562d;
  --blue: #36648b;
  --blue-light: rgba(54, 100, 139, 0.08);
  --purple: #79528d;
  --purple-light: rgba(121, 82, 141, 0.08);
  --gold: #ad7d21;
  --red: #b83a3a;
  --grad: linear-gradient(135deg, #2e7d44, #36648b);
  --grads: linear-gradient(135deg, #79528d, #36648b);
  --sans: 'Inter', sans-serif;
  --display: 'Plus Jakarta Sans', sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ── BG orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.orb1 {
  width: 600px;
  height: 600px;
  background: var(--green);
  top: -200px;
  left: -200px;
}
.orb2 {
  width: 500px;
  height: 500px;
  background: var(--purple);
  bottom: -150px;
  right: -150px;
}
.orb3 {
  width: 300px;
  height: 300px;
  background: var(--blue);
  top: 40%;
  left: 40%;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 252, 247, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(34, 50, 33, 0.02);
}
.nav-brand {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.bean-icon {
  font-size: 1.35rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
}
.brand-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.version-badge {
  font-size: 0.65rem;
  background: var(--s2);
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  border: 1px solid var(--border);
  margin-left: 0.4rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.btn-login {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.btn-login:hover {
  color: var(--text);
}
.btn-register {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(46, 125, 68, 0.15);
  transition: all 0.25s ease;
}
.btn-register:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(46, 125, 68, 0.25);
}

/* ── Hero ── */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 4rem;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  background: rgba(46, 125, 68, 0.06);
  border: 1px solid rgba(46, 125, 68, 0.15);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 2rem;
}
.hero-label::before {
  content: '🌱';
  font-size: 0.85rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 38ch;
  color: var(--text);
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.btn-hero-cta {
  padding: 0.9rem 2rem;
  background: var(--green);
  color: #ffffff;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(46, 125, 68, 0.15);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-cta:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(46, 125, 68, 0.25);
}

/* ── How & Steps Section ── */
.how {
  padding: 4rem 2rem 6rem;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--text);
}

/* Wide step card for step 1 */
.step-card-wide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(34, 50, 33, 0.02);
}
.step-badge {
  position: absolute;
  top: -15px;
  left: 2.5rem;
  background: var(--grad);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(46, 125, 68, 0.15);
}
.step-text-header {
  margin-bottom: 2rem;
}
.step-text-header h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 75ch;
}

/* ── Form Inner Styles ── */
.form-card {
  width: 100%;
}
.f-group {
  margin-bottom: 1.5rem;
}
.f-group label {
  display:block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.f-group label .label-opt {
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
}
.f-group label .label-rec {
  color: var(--green);
  text-transform: none;
  font-weight: 600;
}
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.f-group input, .f-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}
.f-group input:focus, .f-group select:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 125, 68, 0.08);
}
.f-email-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Stack pills */
.stack-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.stack-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  font-family: var(--sans);
}
.stack-pill:hover {
  border-color: var(--green);
  background: rgba(46, 125, 68, 0.02);
}
.stack-pill.active {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow: 0 4px 12px rgba(46, 125, 68, 0.05);
}
.pill-icon {
  font-size: 1.7rem;
  line-height: 1;
}
.pill-title {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pill-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}
.badge-rec {
  background: var(--green);
  color: #ffffff;
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 800;
}
.badge-free {
  background: var(--blue);
  color: #ffffff;
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 800;
}
.helper-text-box {
  background: #faf8f3;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
  margin-top: 1rem;
  border-left: 3px solid var(--green);
}

/* Duration */
.dur-pills {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.dur-pill {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
  text-align: center;
}
.dur-pill:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(121, 82, 141, 0.02);
}
.dur-pill.active {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-light);
}

/* Submit */
.btn-launch {
  width: 100%;
  padding: 1.1rem;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 15px rgba(46, 125, 68, 0.15);
}
.btn-launch:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 68, 0.25);
}
.btn-launch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.launch-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Success panel */
.launch-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.launch-success .big-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
}
.launch-success h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--green);
}
.launch-success p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.btn-dash {
  padding: 0.9rem 2.2rem;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 6px 15px rgba(46, 125, 68, 0.15);
  transition: all 0.2s ease;
}
.btn-dash:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 68, 0.25);
}

/* ── Subsequent steps grid ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 850px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(34, 50, 33, 0.01);
}
.step-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34, 50, 33, 0.04);
}
.step-badge-small {
  background: var(--s2);
  color: var(--green);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.step-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.step-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Tech / Growth Section ── */
.growth {
  padding: 4rem 2rem 6rem;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.tech-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(34, 50, 33, 0.02);
}
.growth-text-box {
  text-align: center;
  margin-bottom: 2.5rem;
}
.growth-text-box h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.growth-text-box p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 75ch;
  margin: 0 auto;
  line-height: 1.6;
}
.stack-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stack-tag {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border2);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  font-weight: 500;
}
.stack-tag em {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

/* ── Admin flow tree ── */
.admin-tree-toggle-container {
  text-align: center;
  margin-top: 2.5rem;
}
.btn-admin-toggle {
  background: transparent;
  border: 1px dashed var(--border2);
  color: var(--muted);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-admin-toggle:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(46, 125, 68, 0.02);
}
.admin-tree-panel {
  display: none;
  background: #faf8f4;
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: inset 0 2px 10px rgba(34, 50, 33, 0.02);
}
.admin-tree-panel.show {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-tree-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}
.admin-tree-header h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.admin-tree-header p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.tree-cols {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}
@media (max-width: 768px) {
  .tree-cols {
    flex-direction: column;
    gap: 2rem;
  }
}
.tree-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tree-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.tree-node {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(34, 50, 33, 0.01);
  color: rgba(34, 50, 33, 0.4);
}
.tree-node.active-path {
  border-color: var(--green);
  background: #eaf5ee;
  color: #1b4332;
  box-shadow: 0 4px 15px rgba(46, 125, 68, 0.1);
  font-weight: 600;
}
.tree-node.active-path.blue-path {
  border-color: var(--blue);
  background: #edf4fa;
  color: #1a365d;
}
.tree-node.active-path.purple-path {
  border-color: var(--purple);
  background: #faf4fc;
  color: #3b1b4d;
}
.tree-node-title {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.tree-node-desc {
  font-size: 0.68rem;
  opacity: 0.85;
}

/* ── Footer values & structure ── */
footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 4rem 2.5rem 2rem;
  position: relative;
  z-index: 1;
}
.footer-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 3.5rem;
}
@media (max-width: 900px) {
  .footer-values {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .footer-values {
    grid-template-columns: 1fr;
  }
}
.value-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.value-icon {
  font-size: 1.5rem;
}
.value-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.value-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: var(--text);
}

/* ── Error/Success states ── */
.form-err {
  color: var(--red);
  font-size: 0.78rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 600;
}

@media(max-width: 640px) {
  .f-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stack-pills {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 0.8rem 1.2rem;
  }
  .nav-links {
    display: none;
  }
}
.profile-section-title {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}
.profile-row {
  grid-template-columns: repeat(3, 1fr) !important;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .profile-row {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* User Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; right: 0; background-color: var(--surface); min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); border-radius: 8px; z-index: 1000; border: 1px solid var(--border2); overflow: hidden; }
.dropdown-content a, .dropdown-content div { color: var(--text); padding: 12px 16px; text-decoration: none; display: block; font-size: 0.85rem; font-family: var(--sans); }
.dropdown-content a:hover { background-color: var(--border); }
.dropdown:hover .dropdown-content { display: block; }
