:root {
  --bg: #0f1114;
  --surface: #1a1e24;
  --surface2: #242a33;
  --border: #2e3642;
  --text: #e8ecf1;
  --muted: #8b95a5;
  --accent: #c9a962;
  --accent-dim: #8a7340;
  --success: #5cb87a;
  --danger: #e07070;
  --stone: #3d4450;
  --font: "Segoe UI", system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.hero__bg {
  position: relative;
  height: min(52vw, 420px);
  min-height: 280px;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0f1114;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 20, 0.35) 0%,
    rgba(15, 17, 20, 0.85) 70%,
    var(--bg) 100%
  );
}

.hero__content {
  position: relative;
  margin-top: -8rem;
  padding-bottom: 1.5rem;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
}

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

.hero__lead {
  margin-top: 0.75rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__trust li::before {
  content: "✓ ";
  color: var(--success);
}

.header__name {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-intro {
  margin-bottom: 1rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-color: var(--accent-dim);
}

.gallery-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface2);
  min-height: 180px;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--surface2);
}

.gallery-card__img-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__body {
  padding: 1rem;
}

.gallery-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a1408;
  background: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.gallery-card__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.gallery-card__text {
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #3d3428, #2a241c);
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
}

.btn--cta {
  background: linear-gradient(180deg, #d4b96a, #a88b45);
  color: #1a1408;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(201, 169, 98, 0.35);
}

.btn--cta:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.footer a {
  color: var(--accent);
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.header__brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.header__logo {
  font-size: 1.5rem;
  color: var(--accent);
}

.header h1 {
  font-size: 1.35rem;
  font-weight: 600;
}

.header__sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tabs__btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.tabs__btn:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

.tabs__btn--active {
  background: var(--accent);
  color: #1a1408;
  border-color: var(--accent);
  font-weight: 600;
}

.tabs__btn--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.panel {
  display: none;
}

.panel--active {
  display: block;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.card--accent {
  border-color: var(--accent-dim);
}

.margin-top {
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.small {
  font-size: 0.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat {
  background: var(--surface2);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface2);
  border-radius: 8px;
}

.pipeline__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1408;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.pipeline__title {
  font-weight: 600;
}

.pipeline__meta {
  font-size: 0.8rem;
  color: var(--accent);
}

.tier-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tier-card {
  padding: 0.85rem;
  background: var(--surface2);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.tier-card h3 {
  font-size: 0.95rem;
}

.tier-card__price {
  color: var(--accent);
  font-weight: 700;
}

.preview-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}

@media (max-width: 800px) {
  .preview-layout {
    grid-template-columns: 1fr;
  }
}

.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 1rem;
}

.upload:hover {
  border-color: var(--accent);
}

.upload__icon {
  font-size: 2rem;
  color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn {
  background: var(--accent);
  color: #1a1408;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.btn--secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--small {
  width: auto;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.preview-stage__frame {
  background: linear-gradient(180deg, #2a3038 0%, #1a1e24 100%);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

#canvas-preview {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.tech-desc {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.compare-arrow {
  font-size: 1.5rem;
  color: var(--accent);
}

.compare-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.65rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 0.5rem;
  align-items: center;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--muted);
}

.calc-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface2);
  border-radius: 8px;
  font-size: 0.9rem;
}

.calc-result .big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.calc-result .profit {
  color: var(--success);
}

.calc-result .loss {
  color: var(--danger);
}

.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-line:last-child {
  border-bottom: none;
  font-weight: 600;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
}

.data-table tr:hover td {
  background: var(--surface2);
}

.data-table__row--active td {
  background: rgba(201, 162, 39, 0.12);
}

.calc-line--total {
  font-weight: 600;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
}

.footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

#chart-bars {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  background: var(--surface2);
}

.banner-max {
  background: linear-gradient(90deg, #3d3428, #2a241c);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.banner-max strong {
  color: var(--accent);
}

.diagram-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
  background: var(--surface);
  border-radius: 10px;
  padding: 0.5rem;
  border: 1px solid var(--border);
}

.diagram-svg {
  width: 100%;
  min-width: 600px;
  height: auto;
}

.tier-visuals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tier-visual {
  text-align: center;
  background: var(--surface2);
  border-radius: 8px;
  padding: 0.5rem;
}

.tier-svg {
  width: 100%;
  max-height: 140px;
}

.tier-visual__label {
  font-size: 0.7rem;
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}

.load-error {
  background: var(--danger);
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.row-highlight td {
  background: rgba(201, 169, 98, 0.12);
}

.row-disabled td {
  opacity: 0.45;
}

.margin-bottom {
  margin-bottom: 1rem;
}

.margin-top {
  margin-top: 0.75rem;
}

.section-title {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.75rem;
}

.journey {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.journey-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.journey-step__num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1408;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.journey-step__you {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.journey-step__us {
  font-size: 0.85rem;
  color: var(--muted);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist li::before {
  content: "✓ ";
  color: var(--success);
}

.tier-card__includes {
  margin: 0.5rem 0 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tier-card__includes li {
  margin-bottom: 0.25rem;
}

.btn--small {
  width: auto;
  margin-top: 0.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.package-includes .card h3 {
  font-size: 1rem;
}

.margin-top {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .tier-visuals {
    grid-template-columns: 1fr;
  }

  .hero__content {
    margin-top: -6rem;
  }
}
