@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #0a0a0c;
  --bg2: #111114;
  --bg3: #16161a;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #ededf0;
  --text2: rgba(237,237,240,0.55);
  --text3: rgba(237,237,240,0.28);
  --accent: #7c6df0;
  --accent-light: rgba(124,109,240,0.12);
  --accent-border: rgba(124,109,240,0.3);
  --green: #4ade80;
  --yellow: #facc15;
  --radius: 10px;
  --radius-lg: 14px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: var(--text3);
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
  border: 0.5px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-link.cta {
  color: var(--text2);
  border-color: var(--border2);
  margin-left: 8px;
}

.nav-link.cta:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

/* LAYOUT */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px;
}

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-link {
  font-size: 12px;
  color: var(--text3);
  cursor: pointer;
  transition: color 0.12s;
}

.section-link:hover { color: var(--text2); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.13s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #8f82f5; }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 0.5px solid var(--border2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* PILL TAGS */
.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  border: 0.5px solid var(--border);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--border2);
  color: var(--text2);
}

.pill.active {
  border-color: var(--border2);
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* VERDICT DOTS */
.vdot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}
.vdot-h { background: var(--green); }
.vdot-m { background: var(--yellow); }
.vdot-l { background: rgba(255,255,255,0.2); }

/* DIVIDER */
hr {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 40px 0;
}

/* FOOTER */
.footer {
  margin-top: 80px;
  padding: 24px 40px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 12px;
  color: var(--text3);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  font-size: 12px;
  color: var(--text3);
  transition: color 0.12s;
}

.footer-right a:hover { color: var(--text2); }

/* FORM ELEMENTS */
.field { margin-bottom: 22px; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 7px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 8px;
  line-height: 1.5;
}

.field-optional {
  font-size: 11px;
  color: var(--text3);
  font-weight: 400;
  margin-left: 4px;
}

input[type=text],
input[type=email],
input[type=url],
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border2);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, background 0.12s;
  font-family: inherit;
  appearance: none;
}

input::placeholder,
textarea::placeholder { color: var(--text3); }

input:focus,
textarea:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.char-count {
  font-size: 11px;
  color: var(--text3);
  text-align: right;
  margin-top: 4px;
  display: block;
  font-family: 'DM Mono', monospace;
}

/* OPTION CARDS */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-card {
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}

.option-card:hover {
  border-color: var(--border2);
  background: rgba(255,255,255,0.03);
}

.option-card.selected {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.option-card-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.option-card-sub {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.4;
}

/* PILL SELECT */
.pill-select {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-select .pill {
  font-size: 12px;
  padding: 6px 13px;
}

.pill-select .pill.selected {
  border-color: var(--accent-border);
  color: #a99af7;
  background: var(--accent-light);
}

/* FORM SECTION */
.form-section { margin-bottom: 36px; }

.form-section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-note {
  font-size: 10px;
  color: rgba(255,255,255,0.18);
  text-transform: none;
  letter-spacing: 0;
  font-family: 'DM Sans', sans-serif;
}

/* SUBMIT ROW */
.submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
}

.submit-note {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

/* SUCCESS */
.success-state {
  display: none;
  padding: 64px 0;
}

.success-state.active { display: block; }

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--green);
}

.success-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.success-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 28px;
}

/* TRENDING BADGE */
.trend-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--accent-light);
  color: #a99af7;
  border: 0.5px solid var(--accent-border);
  font-family: 'DM Mono', monospace;
}

.trend-badge.new {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border-color: rgba(74,222,128,0.25);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.4s ease forwards;
}

.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.1s; opacity: 0; }
.fade-up-3 { animation-delay: 0.15s; opacity: 0; }
.fade-up-4 { animation-delay: 0.2s; opacity: 0; }
.fade-up-5 { animation-delay: 0.25s; opacity: 0; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .container, .container-narrow { padding: 0 20px; }
  .footer { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
  .option-grid { grid-template-columns: 1fr; }
  .nav-links .nav-link:not(.cta) { display: none; }
}
/* STACKWISE SHARED NAV SEARCH */
.nav-search { flex: 1; display: flex; justify-content: center; min-width: 240px; }
.nav-search-wrap { position: relative; width: 100%; max-width: 420px; }
.nav-search-input {
  width: 100%;
  padding: 11px 18px;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg2);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s, background 0.12s;
  caret-color: transparent;
}
.nav-search-input:focus {
  border-color: var(--accent-border);
  background: var(--bg3);
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.16);
  overflow: hidden;
  z-index: 3000;
}
.search-result-item {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg2); }
.search-result-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.search-result-desc { font-size: 12px; color: var(--text3); line-height: 1.45; }
.search-empty {
  padding: 14px;
  font-size: 12px;
  color: var(--text3);
}

@media (max-width: 640px) {
  .nav-search { order: 3; width: 100%; justify-content: stretch; }
  .nav-search-wrap { max-width: none; }
  .nav-links { width: 100%; justify-content: space-between; }
}
/* STACKWISE SHARED PRICING CARDS */
.pricing-cards-wrap {
  margin-top: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-card {
  position: relative;
  padding: 22px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
}

.pricing-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(124,109,240,0.08), rgba(255,255,255,0.02));
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-light);
  border: 0.5px solid var(--accent-border);
  color: #a99af7;
  font-family: 'DM Mono', monospace;
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pricing-tag {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
}

.pricing-price {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
}

.pricing-price span {
  font-size: 12px;
  color: var(--text3);
  margin-left: 4px;
}

.pricing-note {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pricing-list li {
  font-size: 13px;
  color: var(--text2);
  padding-left: 16px;
  position: relative;
}

.pricing-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pricing-source-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 12px;
  color: #a99af7;
}

.pricing-hide-original {
  display: none !important;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
/* STACKWISE SHARED PRICING TABLE */
.pricing-table-wrap {
  margin-top: 18px;
}

.pricing-table-box {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.pricing-table tbody td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 0.5px solid var(--border);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-col-plan {
  width: 28%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.pricing-col-price {
  width: 24%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pricing-col-price.free {
  color: var(--green);
}

.pricing-col-includes {
  width: 48%;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
}

.pricing-notes {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-note-line {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  font-family: 'DM Mono', monospace;
}

.pricing-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-note-list li {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}

.pricing-note-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text3);
}

.pricing-source-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 12px;
  color: #a99af7;
  font-family: 'DM Mono', monospace;
}

.pricing-hide-original {
  display: none !important;
}

@media (max-width: 900px) {
  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table th,
  .pricing-table td,
  .pricing-table tr {
    display: block;
    width: 100%;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody tr {
    border-bottom: 0.5px solid var(--border);
  }

  .pricing-table tbody tr:last-child {
    border-bottom: none;
  }

  .pricing-table tbody td {
    border-bottom: none;
    padding: 10px 16px;
  }

  .pricing-table tbody td::before {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    font-family: 'DM Mono', monospace;
    margin-bottom: 4px;
  }

  .pricing-col-plan::before { content: "Plan"; }
  .pricing-col-price::before { content: "Price"; }
  .pricing-col-includes::before { content: "Includes"; }
}