:root {
  --bg: #07111f;
  --bg-soft: #0d1a2c;
  --panel: rgba(10, 20, 34, 0.78);
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #ecf3ff;
  --muted: #9fb0c8;
  --accent: #f17020;
  --accent-strong: #bf5716;
  --surface: #ffffff;
  --surface-text: #102033;
  --shadow: 0 24px 60px rgba(3, 9, 18, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(241, 112, 32, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(64, 108, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #091322, #08111d 48%, #0a1423);
}

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

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
}

.site-shell__backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 30%),
    radial-gradient(circle at 20% 10%, rgba(241, 112, 32, 0.08), transparent 20%);
  pointer-events: none;
}

.site-header,
.site-main,
.site-footer,
.flash-stack {
  position: relative;
  z-index: 1;
}

.site-header__inner,
.flash-stack__inner,
.site-footer__inner,
.hero,
.feature-grid,
.content-shell,
.auth-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0 10px;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-brand img {
  border-radius: 14px;
}

.site-brand strong,
.hero h1,
.content-shell h1,
.auth-card h1,
.feature-card h2 {
  font-family: "Cormorant", serif;
}

.site-brand strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.site-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.site-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.auth-card__meta a,
.site-footer__links a:hover {
  color: var(--text);
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.site-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.flash-stack {
  padding-top: 10px;
}

.flash-stack__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-card {
  padding: 12px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.flash-card.is-error {
  border-color: rgba(255, 134, 134, 0.28);
}

.flash-card.is-success {
  border-color: rgba(115, 232, 165, 0.26);
}

.site-main {
  padding: 34px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.hero__copy,
.hero__panel,
.feature-card,
.content-shell__body,
.auth-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffd2b6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.content-shell h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.95;
}

.hero__lede,
.content-shell__header p,
.content-shell__body p,
.auth-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card span {
  display: block;
  color: #ffd2b6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.feature-card {
  padding: 24px;
}

.feature-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.content-shell,
.auth-shell {
  max-width: 760px;
}

.content-shell__header {
  margin-bottom: 18px;
}

.content-shell__body {
  padding: 28px;
}

.auth-shell {
  padding-top: 30px;
}

.auth-card {
  padding: 30px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form__field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-form__field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.auth-form__field input:focus {
  outline: none;
  border-color: rgba(241, 112, 32, 0.8);
  box-shadow: 0 0 0 4px rgba(241, 112, 32, 0.14);
}

.auth-form__field small {
  color: #ffd1d1;
}

.auth-form__submit {
  margin-top: 10px;
}

.auth-card__meta {
  margin: 18px 0 0;
}

.site-footer {
  padding: 0 0 44px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer__inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.site-footer__links a {
  color: #ffd2b6;
}

@media (max-width: 980px) {
  .site-header__inner,
  .hero,
  .feature-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-button,
  .site-button--ghost {
    width: 100%;
  }

  .feature-grid {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .hero__copy,
  .hero__panel,
  .feature-card,
  .content-shell__body,
  .auth-card,
  .site-footer__inner {
    border-radius: 22px;
  }

  .site-header__inner,
  .hero__copy,
  .hero__panel,
  .feature-card,
  .auth-card,
  .site-footer__inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-nav,
  .site-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero__actions {
    padding-right: 74px;
  }

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