/* =============================================
   BaanBaan Landing Page — styles.css
   ============================================= */

:root {
  --color-bg:         #0f0f0f;
  --color-surface:    #1a1a1a;
  --color-surface-2:  #242424;
  --color-border:     #2e2e2e;
  --color-text:       #f0ede8;
  --color-text-dim:   #888;
  --color-accent:     #e8845a;
  --color-accent-hover: #d97045;
  --color-green:      #4ade80;
  --color-yellow:     #fbbf24;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --max-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-hover); }

.btn--outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn--ghost {
  background: transparent;
  color: var(--color-text-dim);
}
.btn--ghost:hover { color: var(--color-text); }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--color-text); }
.nav__links .btn { padding: 8px 18px; font-size: 14px; }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 18px;
  color: var(--color-text-dim);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero card */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 320px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.hero__card-img {
  height: 180px;
  background: url('../our_food.jpg') center/cover no-repeat;
}

.hero__card-body {
  padding: 20px;
}

.hero__tag {
  font-size: 12px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 8px;
}

.hero__card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero__card-body p {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-bottom: 12px;
}

.hero__badge {
  display: inline-block;
  background: rgba(74, 222, 128, 0.15);
  color: var(--color-green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 12px;
}

.section__sub {
  text-align: center;
  color: var(--color-text-dim);
  font-size: 18px;
  margin-bottom: 64px;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.step__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--color-text-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- Merchant section ---- */
.merchant__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.merchant__text h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.merchant__text p {
  color: var(--color-text-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.merchant__perks {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.merchant__perks li {
  font-size: 15px;
  color: var(--color-text-dim);
  padding-left: 20px;
  position: relative;
}

.merchant__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

/* Terminal */
.terminal {
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.terminal__bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.terminal__bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
}
.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }

.terminal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal__body p { color: var(--color-text); }

.t-green  { color: var(--color-green); }
.t-yellow { color: var(--color-yellow); }
.t-dim    { color: var(--color-text-dim); }

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.footer__copy {
  color: var(--color-text-dim);
  font-size: 14px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--color-text); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero__inner,
  .merchant__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual { display: none; }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav__links a:not(.btn) { display: none; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
