/* Reset + base for Mera Travels artboards */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-0);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.005em;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--border-1); margin: 0; }

/* ---- Type ---- */
.t-display-xl { font-family: var(--font-display); font-weight: 400; font-size: 80px; line-height: 0.98; letter-spacing: -0.035em; }
.t-display-lg { font-family: var(--font-display); font-weight: 400; font-size: 60px; line-height: 1.02; letter-spacing: -0.03em; }
.t-display    { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.025em; }
.t-h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
.t-h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.t-h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 600; }
.t-h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.t-lead { font-size: 18px; line-height: 1.5; color: var(--fg-1); }
.t-body { font-size: 15px; line-height: 1.55; color: var(--fg-1); }
.t-body-sm { font-size: 13px; line-height: 1.5; color: var(--fg-1); }
.t-cap { font-size: 12px; line-height: 1.4; color: var(--fg-2); letter-spacing: 0; }
.t-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
.t-eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; font-weight: 600; color: var(--fg-2); }
.t-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.aurora-text {
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- Utility ---- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.grow { flex: 1 1 auto; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-7 { gap: 32px; } .gap-8 { gap: 40px; }

/* ---- Chrome surfaces ---- */
.surface { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); }
.surface-2 { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--r-lg); }
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(1.2) blur(20px);
  backdrop-filter: saturate(1.2) blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}
.hairline { border: 1px solid var(--border-1); }
.hairline-b { border-bottom: 1px solid var(--border-1); }
.hairline-t { border-top: 1px solid var(--border-1); }
.hairline-r { border-right: 1px solid var(--border-1); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; height: 40px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 550; letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  border: 1px solid transparent; white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--aurora);
  color: var(--on-aurora);
  box-shadow: 0 6px 20px rgba(96,165,250,.30), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(96,165,250,.40), inset 0 1px 0 rgba(255,255,255,.4); }

.btn-secondary {
  background: var(--bg-3);
  color: var(--fg-0);
  border-color: var(--border-1);
}
.btn-secondary:hover { background: var(--bg-4); border-color: var(--border-2); }

.btn-ghost { color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-3); color: var(--fg-0); }

.btn-glass { background: var(--glass-bg); border-color: var(--glass-border); backdrop-filter: blur(20px); color: var(--fg-0); }
.btn-glass:hover { background: var(--bg-3); }

.btn-outline { border-color: var(--border-2); color: var(--fg-0); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--bg-3); }

/* ---- Badges / chips ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em; border-radius: var(--r-full);
  border: 1px solid var(--border-1); color: var(--fg-1); background: var(--bg-3); text-transform: uppercase;
}
.badge-success { color: var(--success); background: var(--success-dim); border-color: transparent; }
.badge-warning { color: var(--warning); background: var(--warning-dim); border-color: transparent; }
.badge-danger  { color: var(--danger);  background: var(--danger-dim);  border-color: transparent; }
.badge-info    { color: var(--info);    background: var(--info-dim);    border-color: transparent; }
.badge-aurora  { color: var(--fg-0); background: var(--aurora-soft); border-color: transparent; }
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px currentColor; opacity: 0.9; margin-right: 2px;
}

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 13px; font-weight: 500; border-radius: var(--r-full);
  background: var(--bg-3); border: 1px solid var(--border-1); color: var(--fg-1);
  cursor: pointer; transition: all var(--dur) var(--ease-out);
}
.chip:hover { border-color: var(--border-2); color: var(--fg-0); }
.chip.active { background: var(--bg-4); color: var(--fg-0); border-color: var(--border-strong); }
.chip.aurora { background: var(--aurora-soft); color: var(--fg-0); border-color: transparent; }

/* ---- Inputs ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 550; color: var(--fg-2); letter-spacing: 0.005em; }
.input {
  height: 40px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--border-1); color: var(--fg-0);
  font-size: 14px; outline: none;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.input::placeholder { color: var(--fg-3); }
[data-theme="light"] .input::placeholder { color: #777777; }
.input:hover { border-color: var(--border-2); }
.input:focus { border-color: transparent; box-shadow: var(--ring); background: var(--bg-1); }
.input-lg { height: 48px; padding: 0 16px; font-size: 15px; border-radius: var(--r-lg); }
.textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }

.select { position: relative; }
.select select { appearance: none; padding-right: 34px; width: 100%; }
.select::after { content: "⌄"; position: absolute; right: 12px; top: 50%; transform: translateY(-60%); color: var(--fg-2); pointer-events: none; }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--border-1);
  border-bottom-width: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-2);
}

/* ---- Avatar ---- */
.avatar { display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--bg-3);
  border: 1px solid var(--border-1); font-size: 12px; font-weight: 600; color: var(--fg-1);
}
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }

.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Card ---- */
.card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card-hover:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---- Scrollbar (subtle) ---- */
.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* ---- Divider / hairline patterns ---- */
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.4; margin: 0 8px; vertical-align: middle; }

/* ---- Skeleton ---- */
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Aurora ornament ---- */
.aurora-bg { background: var(--aurora-radial); }
.aurora-ring { position: relative; }
.aurora-ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: var(--aurora); z-index: -1; opacity: .5; filter: blur(6px);
}

/* ---- Status pill for timeline ---- */
.tl-node { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--fg-2); }
.tl-node.done { background: var(--aurora); color: var(--on-aurora); border-color: transparent; }
.tl-node.active { background: var(--bg-1); color: var(--fg-0); border-color: var(--a-indigo); box-shadow: 0 0 0 4px rgba(96,165,250,.2); }

/* Placeholder image (striped) */
.ph-img { background:
  repeating-linear-gradient(135deg, var(--bg-2) 0 12px, var(--bg-3) 12px 24px);
  border: 1px solid var(--border-1); border-radius: var(--r-md); position: relative; overflow: hidden;
}
.ph-img::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--fg-2); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Focused element ring for demo interactions */
.demo-focus { box-shadow: var(--ring); border-color: transparent !important; }
