/* ============================================================
   Gubah Hub — design system
   Modern, elegan. Tanpa nuansa dapur/masak.
   ============================================================ */

:root {
  --bg: #08080f;
  --bg-alt: #0d0d18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --text-muted: #a2a2b4;
  --text-dim: #767688;
  --accent: #7c6cf6;
  --accent-2: #4dd4c0;
  --accent-soft: rgba(124, 108, 246, 0.14);
  --radius: 16px;
  --radius-lg: 22px;
  --shell: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(100deg, var(--accent) 0%, #6f8bf8 100%);
  color: #fff;
  box-shadow: 0 8px 26px -10px rgba(124, 108, 246, 0.75);
}

.btn-primary:hover { box-shadow: 0 12px 32px -10px rgba(124, 108, 246, 0.9); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 8, 15, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08080f;
  font-size: 1rem;
  font-weight: 800;
}

.brand-name { font-size: 1.06rem; }

.primary-nav {
  display: none;
  gap: 28px;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.primary-nav a { transition: color 0.2s; }
.primary-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(124, 108, 246, 0.26) 0%,
    rgba(77, 212, 192, 0.09) 42%,
    transparent 70%
  );
  filter: blur(24px);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-title {
  max-width: 15ch;
  font-size: clamp(2.1rem, 7vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-sub {
  max-width: 58ch;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.115rem);
}

.promise {
  position: relative;
  max-width: 46ch;
  margin: 30px 0 0;
  padding: 18px 22px 18px 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent 85%);
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.promise-quote {
  position: absolute;
  top: 2px;
  left: 12px;
  color: var(--accent);
  font-size: 2rem;
  opacity: 0.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 52px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}

.fact {
  padding: 18px 20px;
  background: var(--bg);
}

.fact dt {
  color: var(--text-dim);
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact dd {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-title {
  max-width: 22ch;
  margin-top: 14px;
  font-size: clamp(1.65rem, 4.6vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Pillars ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 42px;
}

.pillar {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.pillar h3 {
  font-size: 1.115rem;
  letter-spacing: -0.015em;
}

.pillar p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.945rem;
}

/* ---------- Verticals ---------- */

.vertical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 42px;
}

.vertical-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
}

.vertical-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.vertical-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.vertical-name {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-building {
  border-color: rgba(77, 212, 192, 0.36);
  background: rgba(77, 212, 192, 0.11);
  color: #62e0cd;
}

.status-building .status-dot { animation: pulse 2.2s ease-in-out infinite; }

.status-planned {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.vertical-desc {
  color: var(--text-muted);
  font-size: 0.945rem;
}

.vertical-status-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.865rem;
}

.vertical-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.25s var(--ease);
}

.vertical-link:hover { gap: 10px; }

.vertical-link-muted {
  color: var(--text-dim);
  font-weight: 500;
  cursor: default;
}

.vertical-link-muted:hover { gap: 6px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-num {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.steps h3 { font-size: 1.06rem; }

.steps p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------- Waitlist ---------- */

.section-waitlist {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 700px 380px at 50% 0%, rgba(124, 108, 246, 0.13), transparent 70%),
    var(--bg-alt);
}

.waitlist-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.waitlist-form {
  padding: 26px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(13, 13, 24, 0.85);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 0.845rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field input::placeholder { color: var(--text-dim); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid='true'] { border-color: #f0637d; }

.consent {
  display: flex;
  gap: 11px;
  margin: 4px 0 20px;
  color: var(--text-dim);
  font-size: 0.83rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-message {
  margin-top: 14px;
  font-size: 0.885rem;
  font-weight: 500;
}

.form-message:empty { margin-top: 0; }
.form-message.is-error { color: #f0637d; }
.form-message.is-success { color: var(--accent-2); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 22px;
}

.footer-brand {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-note,
.footer-copy {
  color: var(--text-dim);
  font-size: 0.865rem;
}

.footer-note { margin-top: 5px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive — tablet
   ============================================================ */

@media (min-width: 640px) {
  .shell { padding: 0 32px; }
  .hero { padding: 104px 0 88px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
  .pillar-grid,
  .vertical-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; gap: 12px; }
  .waitlist-form { padding: 30px 28px; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .footer-copy { grid-column: 1 / -1; }
}

/* ============================================================
   Responsive — desktop
   ============================================================ */

@media (min-width: 960px) {
  .primary-nav { display: flex; }
  .header-inner { min-height: 74px; }
  .hero { padding: 128px 0 104px; }
  .section { padding: 104px 0; }
  .pillar-grid,
  .vertical-grid { grid-template-columns: repeat(3, 1fr); }
  .waitlist-shell {
    grid-template-columns: 1fr 430px;
    gap: 56px;
    align-items: center;
  }
}
