/* =============================================
   MARKIDEV — Minimal Monochrome Landing Page
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #f9f9f9;
  --surface:   #ffffff;
  --border:    #e4e4e4;
  --border-hv: #c0c0c0;
  --text:      #111111;
  --text-muted:#666666;
  --accent:    #111111;
  --accent-hv: #333333;
  --radius:    10px;
  --nav-h:     64px;
  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hv);
  border-color: var(--accent-hv);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--border-hv);
  background: var(--surface);
}

.btn-sm {
  font-size: 0.83rem;
  padding: 8px 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ── Navbar ────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

/* ── Hero ──────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 24px;
  background: var(--surface);
}

#hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section shared ────────────────────────── */
section {
  padding: 96px 0;
}

#services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#how-to-order {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Services Grid ─────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.hovered,
.service-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-3px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 18px;
  color: var(--text);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Portfolio ─────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card.hovered,
.portfolio-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-3px);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.portfolio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How To Order ──────────────────────────── */
.order-timeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.order-step {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: border-color var(--transition), transform var(--transition), opacity 0.5s ease;
}

.order-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.order-step.hovered,
.order-step:hover {
  border-color: var(--border-hv);
  transform: translateY(-3px);
}

.order-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.order-step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-step p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.order-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 2px;
}

.order-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ── Pricing Grid ──────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card.hovered,
.pricing-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(17,17,17,0.04);
}

.pricing-card--featured.hovered,
.pricing-card--featured:hover {
  border-color: var(--accent);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.plan-tokens {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
}

.token-count {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.token-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-perks li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.plan-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-hv);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────── */
#footer {
  padding: 52px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand .brand {
  display: inline-flex;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Staggered fade-in delays ──────────────── */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.19s; }
.service-card:nth-child(4) { transition-delay: 0.26s; }

.pricing-card:nth-child(1) { transition-delay: 0.05s; }
.pricing-card:nth-child(2) { transition-delay: 0.14s; }
.pricing-card:nth-child(3) { transition-delay: 0.23s; }

.portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-card:nth-child(2) { transition-delay: 0.13s; }
.portfolio-card:nth-child(3) { transition-delay: 0.21s; }

.order-step:nth-child(1) { transition-delay: 0.05s; }
.order-step:nth-child(3) { transition-delay: 0.13s; }
.order-step:nth-child(5) { transition-delay: 0.21s; }
.order-step:nth-child(7) { transition-delay: 0.29s; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .order-timeline {
    flex-direction: column;
    gap: 10px;
  }

  .order-arrow {
    transform: rotate(90deg);
    align-self: center;
    padding: 0;
  }

  .pricing-card--featured {
    order: -1;
  }

  section {
    padding: 72px 0;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  #hero {
    padding-top: calc(var(--nav-h) + 32px);
  }

  #hero h1 {
    letter-spacing: -0.025em;
  }
}
