:root {
  --bg: #080a09;
  --surface: #101413;
  --surface-2: #171c19;
  --text: #edf3ef;
  --muted: #8b978f;
  --emerald: #1ad99a;
  --on-emerald: #052016;
  --border: #1e2622;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.1;
}

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary { background: var(--emerald); color: var(--on-emerald); }
.btn-primary:hover { opacity: 0.9; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--emerald); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 9, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word .b1 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; }
.brand-word .b2 { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 0.15em; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.navlink { font-size: 14px; color: var(--muted); transition: color 0.15s ease; }
.nav-links a.navlink:hover { color: var(--text); }
.nav-links a.navlink.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
}

.mobile-sheet {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  padding: 24px;
  flex-direction: column;
}
.mobile-sheet.open { display: flex; }
.mobile-sheet .sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-sheet nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-sheet nav a { font-family: 'Instrument Serif', serif; font-size: 32px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-sheet .sheet-cta { margin-top: 32px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}
.hero-mark {
  width: 176px; height: 176px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
  animation: rise 0.9s ease both;
}
.hero .eyebrow { margin-bottom: 20px; animation: rise 0.9s ease both; animation-delay: 0.05s; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 880px;
  margin-bottom: 24px;
  animation: rise 0.9s ease both;
  animation-delay: 0.1s;
}
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero p.sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
  animation: rise 0.9s ease both;
  animation-delay: 0.18s;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; animation: rise 0.9s ease both; animation-delay: 0.25s; }
.hero-jump {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  animation: rise 0.9s ease both; animation-delay: 0.32s;
}
.hero-jump svg { animation: bob 2s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-mark, .hero .eyebrow, .hero h1, .hero p.sub, .hero-actions, .hero-jump, .hero-jump svg { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

.divider { border-top: 1px solid var(--border); }

/* ---------- Cards grid (websites) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tier-card.featured { border-color: var(--emerald); }
.tier-card:hover { transform: translateY(-2px); }

.tier-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tier-name { font-family: 'Instrument Serif', serif; font-size: 22px; }
.tier-price { font-size: 15px; color: var(--emerald); font-weight: 500; text-align: right; white-space: nowrap; }
.tier-desc { color: var(--muted); font-size: 14px; }
.tier-feats { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.tier-feat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.tier-feat svg { color: var(--emerald); flex-shrink: 0; }
.featured-tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--emerald); border: 1px solid var(--emerald); border-radius: 999px;
  padding: 4px 10px; align-self: flex-start;
}

/* ---------- Dashboard tiers + preview ---------- */
.dash-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 860px) { .dash-tiers { grid-template-columns: 1fr; } }

.dash-tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease;
}
.dash-tier-card.selected { border-color: var(--emerald); }
.dash-tier-card .tier-name { font-size: 18px; }

.dash-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.dash-preview-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.range-toggle { display: flex; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.range-toggle button {
  border: none; background: transparent; color: var(--muted); font-family: 'Outfit', sans-serif;
  font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.range-toggle button.active { background: var(--emerald); color: var(--on-emerald); }

.kpi-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.kpi-chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; min-width: 120px;
}
.kpi-chip .kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.kpi-chip .kpi-value { font-family: 'Instrument Serif', serif; font-size: 26px; }

.chart-box { margin-bottom: 24px; }

.widgets-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .widgets-row { grid-template-columns: 1fr; } }

.widget {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; position: relative; overflow: hidden; min-height: 140px;
}
.widget h4 { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-weight: 500; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-label { width: 64px; color: var(--muted); flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--emerald); border-radius: 999px; }
.bar-val { width: 30px; text-align: right; color: var(--text); flex-shrink: 0; }

.form-list { display: flex; flex-direction: column; gap: 10px; }
.form-list li { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.form-list li:last-child { border-bottom: none; padding-bottom: 0; }
.form-list .muted-sm { color: var(--muted); }

.widget-locked { display: flex; align-items: center; justify-content: center; text-align: center; }
.widget-locked .lock-inner { color: var(--muted); font-size: 13px; }
.widget-locked .lock-inner svg { margin-bottom: 8px; }

.dash-note { color: var(--muted); font-size: 13px; margin-top: 20px; text-align: center; }

/* ---------- Pricing table ---------- */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th {
  text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 500;
}
.pricing-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .price-cell { color: var(--emerald); font-weight: 500; text-align: right; }
.pricing-table .featured-row { background: var(--surface); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.pricing-note { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---------- Next / CTA ---------- */
.next-section { text-align: center; }
.next-section h2 { margin-bottom: 14px; }
.next-section p { color: var(--muted); max-width: 460px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; position: relative; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 300px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-giant {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(60px, 16vw, 200px);
  color: var(--surface);
  text-align: center;
  line-height: 1;
  user-select: none;
  margin-top: -10px;
}
.footer-email { font-size: 14px; color: var(--muted); }
.footer-email a:hover { color: var(--emerald); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; padding-top: 160px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; } }
.contact-grid h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 20px; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-info-item { display: flex; flex-direction: column; gap: 2px; }
.contact-info-item .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-info-item a, .contact-info-item span.value { font-size: 15px; }
.contact-info-item a:hover { color: var(--emerald); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.step-indicator { display: flex; gap: 6px; margin-bottom: 28px; }
.step-dot { height: 3px; flex: 1; background: var(--border); border-radius: 999px; }
.step-dot.done { background: var(--emerald); }

.type-cards { display: flex; flex-direction: column; gap: 12px; }
.type-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; text-align: left; cursor: pointer; color: var(--text); font-family: 'Outfit', sans-serif;
  transition: border-color 0.15s ease;
}
.type-card:hover, .type-card.selected { border-color: var(--emerald); }
.type-card .t-name { font-family: 'Instrument Serif', serif; font-size: 19px; margin-bottom: 4px; }
.type-card .t-desc { color: var(--muted); font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 14px;
  min-height: 44px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }
.field .err { color: #ff8a80; font-size: 12px; }

.form-row-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.success-box { text-align: center; padding: 24px 0; }
.success-box svg { color: var(--emerald); margin-bottom: 16px; }
.success-box h3 { font-family: 'Instrument Serif', serif; font-size: 28px; margin-bottom: 8px; }
.success-box p { color: var(--muted); font-size: 14px; }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--emerald); color: var(--on-emerald);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(26, 217, 154, 0.3);
  transition: transform 0.15s ease;
}
.chat-fab:active { transform: scale(0.94); }

.chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 90;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 140px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 16px;
  border-bottom: 1px solid var(--border);
}
.chat-head img { width: 32px; height: 32px; border-radius: 50%; }
.chat-head .ch-title { font-family: 'Instrument Serif', serif; font-size: 17px; }
.chat-head .ch-sub { font-size: 11px; color: var(--muted); }
.chat-head .ch-close { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; padding: 8px; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.msg { max-width: 85%; font-size: 13.5px; padding: 10px 14px; border-radius: 14px; line-height: 1.4; }
.msg.bot { background: var(--surface-2); align-self: flex-start; }
.msg.user { background: var(--emerald); color: var(--on-emerald); align-self: flex-end; }
.msg a { color: var(--emerald); text-decoration: underline; }
.msg.user a { color: var(--on-emerald); }

.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.chip {
  font-size: 12px; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 12px; background: transparent; color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--emerald); }

.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 16px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 13px; min-height: 40px;
}
.chat-input-row button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--emerald); color: var(--on-emerald);
  border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}

/* ---------- 404 ---------- */
.notfound { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.notfound h1 { font-size: clamp(32px, 6vw, 52px); margin-bottom: 16px; }

.visually-hidden { position: absolute; left: -9999px; }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
