/* ============================================================
   HAMZZI (ham.limchang.dev)
   Minimalist Developer-Centric Theme
   ============================================================ */

:root {
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Deep Graphite & Obsidian Palette */
  --bg: #090d15;
  --bg-surface: #101623;
  --bg-card: #131b2b;
  --bg-card-hover: #182236;
  --bg-subtle: #1c263c;

  --border: #1e293d;
  --border-focus: #f59e0b;
  --border-subtle: #172033;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent: Warm Amber & Hamster Gold */
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --amber-glow: rgba(245, 158, 11, 0.25);

  --cyan: #38bdf8;
  --green: #10b981;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}

.text-muted {
  color: var(--text-muted);
}

.text-amber {
  color: var(--amber);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 720px;
}

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

/* ================= Top Navigation ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 21, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.brand-glyph {
  font-size: 20px;
}

.brand-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary-amber {
  background: var(--amber);
  color: #090d15;
  border-color: #fbbf24;
  font-weight: 700;
}

.btn-primary-amber:hover {
  background: var(--amber-hover);
  box-shadow: 0 0 24px var(--amber-glow);
}

.btn-outline-amber {
  background: transparent;
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-outline-amber:hover {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.btn-subtle {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-subtle:hover {
  background: var(--bg-subtle);
  border-color: var(--text-dim);
}

.tag-price {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ================= Hero Section ================= */
.hero-section {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
}

.hero-h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.hero-lead strong {
  color: var(--text-main);
}

/* Terminal Matrix Box */
.terminal-matrix {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.matrix-live {
  color: var(--green);
}

.matrix-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  margin-bottom: 8px;
}

.matrix-row:last-child {
  margin-bottom: 0;
}

.matrix-agent {
  color: var(--cyan);
  font-weight: 600;
  font-size: 12px;
}

.matrix-state {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ================= Mac Terminal Window Preview ================= */
.mac-window {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mac-header {
  background: #0d121c;
  border-bottom: 1px solid var(--border);
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mac-title {
  font-size: 12px;
  color: var(--text-dim);
}

.mac-status {
  font-size: 11px;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* The Exact Gourami Hamster Stage Container */
.stage-viewport {
  position: relative;
  height: 420px;
  background: radial-gradient(ellipse at 50% 35%, #252e42 0%, #0d131f 75%);
  overflow: hidden;
  touch-action: none;
}

.stage-viewport:after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 88px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.interactive-hint {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 11px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Real Hamster Avatar SVG Styles */
.pet {
  position: absolute;
  left: 50%;
  bottom: 88px;
  width: 240px;
  height: 290px;
  overflow: visible;
  transform: translateX(-50%);
  touch-action: none;
  cursor: grab;
  z-index: 2;
  outline: none;
}

.pet:active {
  cursor: grabbing;
}

.shadow {
  position: absolute;
  width: 115px;
  height: 16px;
  left: 50%;
  bottom: 79px;
  background: #000;
  opacity: 0.35;
  border-radius: 50%;
  transform: translateX(-50%);
}

.joints {
  display: none;
}

.stage-footer {
  background: #0d121c;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}

.mode-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-mode {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mode:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.btn-mode.active {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber);
  font-weight: 600;
}

/* ================= Section Base ================= */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ================= Specs Grid ================= */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.15s ease;
}

.spec-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
}

.spec-index {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 10px;
}

.spec-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.spec-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= AI Agent Sync Showcase ================= */
.terminal-showcase {
  background: #0b0f17;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.term-header {
  background: #111724;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 9px;
  height: 9px;
  background: #2b3648;
  border-radius: 50%;
}

.term-name {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}

.term-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prompt {
  color: var(--amber);
  margin-right: 6px;
}

.term-pill {
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
  font-size: 12px;
  margin: 4px 0;
}

.term-pill.thinking {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.term-pill.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ================= Pricing ================= */
.pricing-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.pricing-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.tag-launch {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.pricing-h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

.pricing-price-row .currency {
  font-size: 24px;
  color: var(--amber);
}

.pricing-price-row .amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.pricing-price-row .period {
  font-size: 14px;
  color: var(--text-dim);
}

.pricing-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.pricing-checklist li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-checklist .check {
  color: var(--green);
  font-weight: 700;
}

.support-tier {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.support-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.support-check-label input {
  accent-color: var(--amber);
  width: 16px;
  height: 16px;
}

.support-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.support-title {
  font-size: 13.5px;
  font-weight: 600;
}

.support-sub {
  font-size: 12px;
}

.support-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.total-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--amber);
  color: #090d15;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-checkout:hover {
  background: var(--amber-hover);
}

.checkout-sub {
  font-size: 11px;
  opacity: 0.85;
}

.pricing-footnote {
  font-size: 11.5px;
  text-align: center;
  margin-top: 14px;
}

/* ================= Download Cards ================= */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-card.active-card {
  border-color: rgba(245, 158, 11, 0.45);
}

.dl-os {
  font-size: 11px;
  color: var(--amber);
}

.dl-card h4 {
  font-size: 16px;
  font-weight: 700;
}

.dl-card p {
  font-size: 13px;
  margin-bottom: 12px;
}

.btn-dl {
  margin-top: auto;
  background: var(--amber);
  color: #090d15;
  font-weight: 700;
  font-size: 13px;
  padding: 9px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.btn-dl:hover {
  background: var(--amber-hover);
}

.btn-dl-subtle {
  margin-top: auto;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.btn-dl-subtle:hover {
  border-color: var(--text-dim);
}

/* ================= Reset License ================= */
.reset-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.reset-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 6px 0 10px;
}

.reset-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-row label {
  font-size: 11.5px;
  color: var(--text-dim);
}

.input-row input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
}

.input-row input:focus {
  border-color: var(--amber);
}

.btn-reset-submit {
  align-self: flex-start;
  margin-top: 6px;
}

.reset-msg {
  font-size: 13px;
  margin-top: 8px;
}

.reset-msg.success { color: var(--green); }
.reset-msg.error { color: #ef4444; }

/* ================= Footer ================= */
.footer {
  background: #06090e;
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.footer-logo {
  font-weight: 800;
  color: var(--amber);
}

.footer-right {
  display: flex;
  gap: 18px;
  font-size: 12px;
}

.policy-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.policy-btn:hover {
  color: var(--text-main);
}

/* ================= Dialog ================= */
.policy-dialog {
  border: none;
  background: transparent;
  padding: 20px;
  margin: auto;
  max-width: 600px;
  width: 90%;
}

.policy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.dialog-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.dialog-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-header h3 {
  font-size: 14px;
  color: var(--amber);
}

.dialog-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.dialog-content {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.dialog-content h4 {
  color: var(--text-main);
  margin: 16px 0 6px;
  font-size: 14px;
}

/* ================= Responsive ================= */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .specs-grid,
  .download-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-shell {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
