:root {
  color-scheme: dark;
  --bg: #080717;
  --panel: #151225;
  --panel-2: #1d1831;
  --ink: #f8f7ff;
  --muted: #c5bfd9;
  --soft: #8f87ad;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #74d9e7;
  --brand-2: #d8c28f;
  --accent: #b7a7ff;
  --button: #d8c28f;
  --button-ink: #11101a;
  --warn: #d8c28f;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(116, 217, 231, 0.1), transparent 26rem),
    radial-gradient(circle at 11% 9%, rgba(183, 167, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 88% 2%, rgba(216, 194, 143, 0.12), transparent 20rem),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 23, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 194, 143, 0.28);
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section,
.section-grid,
.agent-section,
.feedback-section,
.legal-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.hero-logo {
  display: block;
  width: clamp(4rem, 9vw, 6.5rem);
  height: clamp(4rem, 9vw, 6.5rem);
  margin-bottom: 1.1rem;
  border: 1px solid rgba(216, 194, 143, 0.3);
  border-radius: 18px;
  object-fit: cover;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(255, 255, 255, 0.03);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.lede,
.section-grid p,
.agent-intro p,
.feedback-copy p,
.site-footer p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lede {
  max-width: 44rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.primary-action,
.secondary-action,
button {
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.primary-action,
button[type="submit"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 42%),
    var(--button);
  color: var(--button-ink);
  box-shadow: 0 14px 34px rgba(216, 194, 143, 0.18);
}

.secondary-action,
.secondary-button {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--ink);
}

.primary-action:hover,
button[type="submit"]:hover,
.secondary-action:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 194, 143, 0.45);
}

.status-panel,
.agent-placeholder,
.feedback-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(20, 17, 39, 0.86);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 1.3rem;
}

.status-panel h2 {
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.status-panel ul,
.test-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-panel li + li {
  margin-top: 0.7rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.test-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.test-cards article {
  min-height: 13rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
}

.test-cards span {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--brand-2);
  font-weight: 800;
}

.agent-section {
  border-top: 1px solid var(--line);
}

.agent-intro {
  max-width: 48rem;
}

.agent-placeholder {
  display: grid;
  place-items: center;
  min-height: 20rem;
  margin-top: 2rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(116, 217, 231, 0.12), transparent),
    radial-gradient(circle at 85% 20%, rgba(216, 194, 143, 0.1), transparent 18rem),
    var(--panel);
}

.agent-placeholder div {
  max-width: 38rem;
  text-align: center;
}

.agent-placeholder strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.feedback-section,
.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.legal-copy {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(20, 17, 39, 0.72);
}

.legal-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-copy p + p {
  margin-top: 1rem;
}

.privacy-note {
  padding: 1rem;
  border-left: 4px solid var(--warn);
  background: rgba(255, 209, 102, 0.08);
}

.feedback-form {
  padding: 1.25rem;
}

.feedback-form label,
.feedback-form fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 750;
}

.visually-hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #100d20;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.feedback-form input,
.feedback-form select {
  min-height: 2.75rem;
  padding: 0 0.8rem;
}

.feedback-form textarea {
  resize: vertical;
  padding: 0.8rem;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(103, 215, 255, 0.5);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.feedback-form fieldset {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.rating-row label,
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
}

.rating-row input,
.checkbox-row input {
  width: auto;
  min-height: auto;
}

.form-status {
  min-height: 1.5rem;
  color: var(--brand-2);
  font-weight: 750;
}

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

.prepared-feedback[hidden] {
  display: none;
}

.prepared-feedback textarea {
  min-height: 12rem;
  border-color: rgba(216, 194, 143, 0.28);
  background: rgba(8, 7, 23, 0.72);
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-links,
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a,
.legal-footer-links a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  color: var(--soft);
  text-decoration: none;
}

.footer-links a:hover,
.legal-footer-links a:hover {
  border-color: rgba(216, 194, 143, 0.42);
  color: var(--ink);
}

.simple-page {
  min-height: 100vh;
}

.legal-page {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.legal-page h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.legal-page h2 {
  margin-top: 2.3rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.notice-box {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(216, 194, 143, 0.32);
  border-radius: var(--radius);
  background: rgba(216, 194, 143, 0.07);
  color: var(--ink);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section,
  .section-grid,
  .feedback-section,
  .legal-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .test-cards {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .top-nav {
    gap: 0.6rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-actions,
  .form-actions {
    display: grid;
  }
}
