/* =========================
   Domain Genesis - Core Styles
   Structural layout + component geometry only
   ========================= */
@charset "utf-8";

:root {
  --container: 1040px;
  --content: 1040px;

  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Geist", Lora, Inter, Georgia, serif;
  --font-brand: "Eurostile", "Bank Gothic", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-wrap {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.section-rule {
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid;
}

/* Top brand */

.topbar {
  padding: 28px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 24px;
  border: 1px solid;
  border-radius: 4px;
}

.brand-mark::before {
  content: "DG";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero */

.hero {
  padding: 52px 0 30px;
  text-align: center;
}

.hero-inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagline {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.price-line {
  max-width: 620px;
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

/* CTAs */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.btn {
  min-width: 240px;
  padding: 16px 28px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

/* =========================
   Glass Modal (Premium)
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(92%, 520px);
  padding: 34px 30px 30px;
  border-radius: 12px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);

  backdrop-filter: blur(14px);
  position: relative;
  text-align: center;
}

.modal-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
}

.modal-sub {
  margin: 0 0 24px;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-soft);
}

/* Close */

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text);
}

/* Form */

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form input {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.modal-form textarea {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  resize: vertical;
  min-height: 120px;
}

.modal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.modal-char-note {
  margin-top: -4px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: left;
}

/* Button */

.modal-submit {
  margin-top: 10px;
}

/* Success */

.modal-success {
  display: none;
  margin-top: 10px;
}

.modal-success.show {
  display: block;
}

/* Slight visual lift for success state */

.modal-success-title {
  margin: 10px 0 8px;
}

.modal-success-sub {
  margin: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.cta-row form {
  display: inline-block;
}

.cta-row .btn {
  min-width: 220px;
}

/* Narrative */

.narrative-block {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: justify;
}

.narrative-block-hero {
  margin-top: 34px;
  margin-bottom: 0;
}

.narrative-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Valuation CTA */

.valuation-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.btn-valuation {
  min-width: 0;
  padding: 12px 20px;
  font-size: 1rem;
}

.valuation-support {
  margin-top: 12px;
  max-width: 520px;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-soft); /* matches narrative */
}

/* Mid section */

.mid-section {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.editorial-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.editorial-block {
  width: 100%;
  padding: 26px 28px;
  border: 1px solid;
  border-radius: 8px;
  height: 100%;
}

.col-title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant: normal;
  text-transform: none;
}

.feature-list {
  margin: 0;
  padding-left: 1.3rem;
}

.feature-list li {
  margin: 0 0 12px;
  padding-left: 0.15rem;
  font-size: 1.08rem;
}

.mid-note {
  margin-top: 28px;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* FAQ */

.faq-section {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 52px 0 56px;
}

.faq-title {
  margin: 0 0 30px;
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.faq-list {
  border-top: 1px solid;
}

.faq-item {
  border-bottom: 1px solid;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1.18rem;
  font-weight: 400;
  cursor: pointer;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(225deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.active .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  max-width: 760px;
  margin: 0;
  padding: 0 0 22px;
  font-size: 1.02rem;
}

/* Footer */

.site-footer {
  padding: 44px 0 56px;
  text-align: center;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo-mark {
  display: block;
  width: 120px;
  height: auto;
}

.footer-brand-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.footer-since {
  font-size: 0.8em;
}

.footer-bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(1px);
}

.footer-line {
  margin-top: 18px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

/* Responsive */

@media (max-width: 720px) {
  .editorial-split {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .editorial-block {
    max-width: 640px;
  }

  .feature-list {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .valuation-support {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-brand-line {
    gap: 8px;
  }

  .footer-brand-text {
    font-size: 1.05rem;
  }

  .footer-logo-mark {
    width: 110px;
  }
}

@media (max-width: 560px) {
  .site-wrap {
    width: min(calc(100% - 30px), var(--container));
  }

  .topbar {
    padding-top: 18px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .price-line {
    font-size: 0.98rem;
  }

  .cta-row {
    gap: 14px;
  }

  .cta-row .btn {
    min-width: 220px;
  }

  .btn-valuation {
    width: 100%;
    max-width: 320px;
  }

  .footer-logo-mark {
    width: 110px;
  }
}