/* =========================================================================
   Veftor — design system
   Display: Sora (headlines, wordmark) · Body/UI: Inter (everything else)
   ========================================================================= */

:root {
  --ink: #14121f;
  --ink-2: #1e1b2e;
  --ink-3: #2a2640;
  --paper: #faf8f5;
  --panel: #ffffff;
  --gold: #d9a441;
  --gold-dark: #b9832a;
  --gold-tint: #f7ecd6;
  --slate: #4b4f65;
  --slate-light: #8286a0;
  --line: #e6e2da;
  --line-dark: #322e49;
  --success: #1f8a5f;
  --success-tint: #e4f4ec;
  --danger: #c4432e;
  --danger-tint: #fbe9e5;
  --warn: #b9832a;
  --warn-tint: #f8edd9;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(20, 18, 31, 0.04), 0 8px 24px -12px rgba(20, 18, 31, 0.16);
  --shadow-lift: 0 4px 8px rgba(20, 18, 31, 0.05), 0 24px 48px -20px rgba(20, 18, 31, 0.28);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; color: var(--slate); }
.nums { font-variant-numeric: tabular-nums; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 999px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Nav ------------------------------------------------------------ */
.nav {
  background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.wordmark { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.wordmark .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ---- Hero ------------------------------------------------------------ */
.hero { background: var(--ink); color: #fff; padding: 76px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.7); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem; color: var(--gold); }
.hero-stat span { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

.stat-panel { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-l); padding: 28px; }
.stat-panel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.stat-panel-row:last-child { border-bottom: 0; }
.stat-panel-row .label { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.stat-panel-row .value { font-family: 'Sora', sans-serif; color: #fff; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pill-gold { background: rgba(217,164,65,0.16); color: var(--gold); }
.pill-success { background: rgba(31,138,95,0.18); color: #4fcf9c; }

/* ---- Cards ------------------------------------------------------------ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.card-soft { background: var(--panel); border-radius: var(--radius-m); padding: 24px; box-shadow: var(--shadow); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.feature { padding: 4px 0; }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--gold-tint); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature h4 { margin-bottom: 6px; }
.feature p { font-size: 0.94rem; }

/* ---- Steps (genuinely sequential, so numbering is earned here) ------- */
.steps { position: relative; }
.step { display: flex; gap: 20px; padding-bottom: 34px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; position: relative; z-index: 1; }
.step::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step h4 { margin-bottom: 4px; }
.step p { font-size: 0.94rem; margin-bottom: 0; }

/* ---- Listing cards (marketplace) --------------------------------------- */
.listing-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; background: var(--panel); transition: border-color .15s ease, box-shadow .15s ease; }
.listing-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.listing-domain { font-family: 'Sora', sans-serif; font-weight: 650; font-size: 1.08rem; }
.listing-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.metric { text-align: left; }
.metric b { display: block; font-family: 'Sora', sans-serif; font-size: 1.05rem; }
.metric span { font-size: 0.74rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.04em; }
.listing-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.price-tag { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.2rem; }
.price-tag small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--slate-light); display: block; }

/* ---- Forms ------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 0.8rem; color: var(--slate-light); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 36px; max-width: 460px; margin: 0 auto; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-card { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; cursor: pointer; }
.radio-card input { width: auto; margin-top: 3px; }
.radio-card.active, .radio-card:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }

/* ---- Tables ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 0.92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--slate-light); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; background: #fbfaf8; }
tr:last-child td { border-bottom: 0; }

/* ---- Badges / status ------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 650; }
.badge-success { background: var(--success-tint); color: var(--success); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-neutral { background: #eee9df; color: var(--slate); }

/* ---- Dashboard shell --------------------------------------------------- */
.dash { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.dash-side { background: var(--ink); color: #fff; padding: 26px 18px; }
.dash-side .wordmark { padding: 0 10px 26px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--radius-s); color: rgba(255,255,255,0.72); font-size: 0.92rem; font-weight: 500; margin-bottom: 2px; }
.dash-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dash-nav a.active { background: var(--gold); color: var(--ink); font-weight: 650; }
.dash-nav .group-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); padding: 18px 14px 6px; }
.dash-main { padding: 30px 36px 60px; max-width: 1240px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.dash-title { margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.stat-card .label { color: var(--slate-light); font-size: 0.82rem; margin-bottom: 8px; }
.stat-card .value { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; }
.stat-card .sub { font-size: 0.78rem; color: var(--slate-light); margin-top: 4px; }

/* ---- Alerts / flash ------------------------------------------------------ */
.alert { padding: 13px 18px; border-radius: var(--radius-s); font-size: 0.92rem; margin-bottom: 16px; }
.alert-success { background: var(--success-tint); color: var(--success); }
.alert-danger { background: var(--danger-tint); color: var(--danger); }
.alert-warn { background: var(--warn-tint); color: var(--warn); }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 56px 0 30px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.footer a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; padding: 5px 0; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Blog ----------------------------------------------------------------- */
.blog-post-body { max-width: 74ch; }
.blog-post-body h2 { margin-top: 1.6em; }
.blog-post-body p, .blog-post-body li { max-width: none; }
.blog-card img { border-radius: var(--radius-m); aspect-ratio: 16/9; object-fit: cover; background: var(--line); }

/* ---- Tool pages ------------------------------------------------------------- */
.tool-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; background: var(--panel); }
.tool-output { background: #fbfaf8; border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 18px; margin-top: 16px; font-size: 0.92rem; white-space: pre-wrap; }

/* ---- Utility -------------------------------------------------------------- */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-slate { color: var(--slate); } .text-light { color: var(--slate-light); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.w-full { width: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-side.open { display: block; position: fixed; inset: 0 20% 0 0; z-index: 50; overflow-y: auto; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .form-row-2 { grid-template-columns: 1fr; }
}
