@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #061723;
  --bg-deep: #03111a;
  --surface: rgba(8, 22, 32, 0.84);
  --surface-strong: rgba(9, 24, 35, 0.96);
  --surface-soft: rgba(10, 27, 39, 0.72);
  --line: rgba(215, 181, 116, 0.16);
  --line-strong: rgba(215, 181, 116, 0.3);
  --text: #f6f0e7;
  --muted: rgba(246, 240, 231, 0.76);
  --muted-strong: rgba(246, 240, 231, 0.9);
  --muted-soft: rgba(246, 240, 231, 0.56);
  --accent: #d7b574;
  --accent-strong: #eed7a7;
  --danger: #f5b4ad;
  --success: #90c7a9;
  --radius: 8px;
  --max-width: 1260px;
  --shadow-xl: 0 28px 90px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a,
button,
[role="button"] {
  cursor: pointer;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(215, 181, 116, 0.08) 0%, rgba(215, 181, 116, 0) 26%),
    linear-gradient(180deg, rgba(6, 23, 35, 0.98) 0%, rgba(4, 16, 24, 1) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 18, 27, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(215, 181, 116, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-title,
.hero-title,
.section-title,
.plan-card h3,
.study-name,
.auth-panel h2,
.contact-panel h2,
.detail-item h3,
.workflow-item h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}

.brand-title {
  font-size: 1.82rem;
  letter-spacing: 0;
  line-height: 1;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

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

.account-chip,
.ghost-link,
.primary-link,
.secondary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.account-chip,
.ghost-link,
.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.primary-link,
.primary-button {
  background: var(--accent);
  color: #10202c;
  font-weight: 700;
}

.primary-button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.primary-button--full {
  width: 100%;
}

.ghost-link:hover,
.primary-link:hover,
.secondary-link:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 28px 96px;
}

.hero {
  padding-top: 6px;
}

.hero-frame {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-xl);
  background: #0a1822;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 19, 28, 0.26) 0%, rgba(6, 19, 28, 0.54) 52%, rgba(6, 19, 28, 0.7) 100%),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1900&q=80")
      center center / cover no-repeat;
  transform: scale(1.03);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 19, 28, 0.04) 0%, rgba(6, 19, 28, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 840px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 104px 44px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  margin: 0 auto;
  max-width: 10.6ch;
  font-size: clamp(4.4rem, 6.8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle,
.section-copy,
.plan-summary,
.detail-item p,
.workflow-item p,
.study-summary,
.contact-panel p,
.contact-row p,
.auth-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-subtitle {
  max-width: 780px;
  margin: 28px auto 0;
  font-size: 1.13rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--soft {
  color: var(--muted-soft);
}

.section,
.page-hero {
  padding-top: 72px;
}

.page-hero {
  max-width: 780px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 28px;
}

.section-title {
  margin: 10px 0 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 1.05rem;
}

.editorial-grid,
.contact-grid,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: start;
}

.detail-stack,
.contact-copy {
  display: grid;
  gap: 18px;
}

.detail-item,
.workflow-item,
.contact-row {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-item:first-child,
.contact-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-item h3,
.workflow-item h3,
.contact-row h3 {
  margin: 0 0 10px;
  font-size: 1.34rem;
}

.workflow-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.plan-stack {
  position: relative;
  min-height: 100%;
  padding-top: 44px;
}

.plan-badge {
  position: absolute;
  inset: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(215, 181, 116, 0.44);
  background: rgba(215, 181, 116, 0.96);
  color: #10202c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.plan-badge--ghost {
  visibility: hidden;
}

.plan-card,
.auth-panel,
.contact-panel,
.study-card {
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.plan-card:hover,
.study-card:hover,
.auth-panel:hover,
.contact-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 181, 116, 0.24);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.plan-card--featured {
  border-color: rgba(215, 181, 116, 0.28);
}

.plan-card__body,
.auth-panel,
.contact-panel,
.study-card {
  padding: 26px;
}

.plan-card__body {
  display: grid;
  gap: 18px;
}

.plan-card h3 {
  margin: 10px 0 0;
  font-size: 2.05rem;
}

.plan-price-block {
  display: grid;
  gap: 6px;
}

.plan-price-label,
.study-detail-label {
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan-price {
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1;
}

.plan-price small {
  font-size: 0.98rem;
  color: var(--muted-soft);
  font-weight: 600;
}

.plan-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.58;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.plan-link:hover {
  color: var(--accent-strong);
}

.pricing-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-panel h2,
.auth-panel h2 {
  margin: 10px 0 12px;
  font-size: 2rem;
}

.contact-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions {
  margin-top: 22px;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  color: var(--text);
}

.field input {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.field input::placeholder {
  color: rgba(246, 240, 231, 0.34);
}

.status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.96rem;
}

.status--error {
  background: rgba(245, 180, 173, 0.08);
  border: 1px solid rgba(245, 180, 173, 0.2);
  color: #ffd9d5;
}

.status--success {
  background: rgba(144, 199, 169, 0.08);
  border: 1px solid rgba(144, 199, 169, 0.2);
  color: #d9f4e5;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.study-card {
  display: grid;
  gap: 18px;
}

.study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.study-name {
  margin: 10px 0 0;
  font-size: 2rem;
  line-height: 1.08;
}

.study-summary {
  margin: 0;
}

.study-detail-grid {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.study-detail {
  display: grid;
  gap: 5px;
}

.study-detail-value {
  color: var(--text);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.helper {
  color: var(--muted-soft);
  font-size: 0.94rem;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 30px;
}

.footer__inner {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted-soft);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(0, -10px, 0);
  }
}

@media (max-width: 1180px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav,
  .nav-left {
    flex-wrap: wrap;
  }

  .nav {
    justify-content: center;
  }

  .nav-left,
  .nav-actions {
    justify-content: center;
  }

  .editorial-grid,
  .contact-grid,
  .auth-layout,
  .study-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame,
  .hero-content {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 16px 18px;
    gap: 16px;
  }

  .nav-left {
    gap: 18px;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    gap: 14px 18px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .page {
    padding: 14px 18px 72px;
  }

  .hero-content {
    padding: 82px 20px 70px;
  }

  .hero-title {
    max-width: 8.6ch;
    font-size: clamp(3.2rem, 12vw, 4.8rem);
    line-height: 0.98;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section,
  .page-hero {
    padding-top: 56px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 0 18px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .plan-card,
  .study-card,
  .auth-panel,
  .contact-panel,
  .primary-link,
  .secondary-link,
  .ghost-link,
  .primary-button,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
  }
}
