@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");

:root {
  --gold: #e39653;
  --gold-bright: #f6d29a;
  --gold-deep: #b56a32;
  --ink: #1a0d08;
  --crimson: #d52112;
}

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

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #05070a;
  color: #f6efe4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.background {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.25) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 55%),
    url("bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.03);
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 28px;
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.88), rgba(6, 8, 14, 0.62));
  border-bottom: 1px solid rgba(227, 150, 83, 0.35);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 58px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(213, 33, 18, 0.35));
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu > a,
.drop > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(246, 239, 228, 0.88);
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 14px;
  transition: color 0.2s ease;
}

.menu svg,
.social svg,
.feature-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.menu > a:hover,
.drop > a:hover,
.menu > a.is-active,
.drop > a.is-active {
  color: var(--gold-bright);
}

.social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(246, 239, 228, 0.9);
  text-decoration: none;
}

.social a:hover {
  color: var(--gold-bright);
}

.drop {
  position: relative;
}

.drop-panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  background: rgba(8, 10, 14, 0.94);
  border: 1px solid rgba(227, 150, 83, 0.4);
  backdrop-filter: blur(12px);
}

.drop:hover .drop-panel,
.drop:focus-within .drop-panel {
  display: block;
}

.drop-panel a {
  display: block;
  text-decoration: none;
  color: rgba(246, 239, 228, 0.82);
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 10px 16px;
}

.drop-panel a:hover,
.drop-panel a.is-active {
  color: var(--gold-bright);
  background: rgba(213, 33, 18, 0.14);
}

.page {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 4vw 8vw 6vw;
}

.page-inner {
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 64px;
}

.content {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  animation: fadeIn 1.2s ease forwards;
}

.content-wide {
  max-width: 920px;
}

.eyebrow {
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 600;
}

.line {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--gold-bright));
  margin-bottom: 25px;
}

h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fff6e4 0%, #f6d29a 42%, #e39653 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

h1 span {
  display: block;
  margin-top: 18px;
  font-size: 0.55em;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff1df 0%, #ffb15a 42%, #d52112 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-mark {
  margin: 0 0 12px;
  background: none;
  filter: none;
  line-height: 0;
}

.hero-mark img {
  width: min(360px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
}

.page-inner h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.description {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 38px;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.subnav a {
  text-decoration: none;
  color: rgba(246, 239, 228, 0.78);
  font-family: Cinzel, Georgia, serif;
  border: 1px solid rgba(227, 150, 83, 0.35);
  background: rgba(0, 0, 0, 0.28);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.subnav a:hover,
.subnav a.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, #f6d29a 0%, #e39653 55%, #b56a32 100%);
  border-color: #f0c48a;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 28px;
  text-decoration: none;
  color: #f6efe4;
  font-family: Cinzel, Georgia, serif;
  border: 1px solid rgba(227, 150, 83, 0.75);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.25s ease;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(180deg, #f6d29a 0%, #e39653 52%, #b56a32 100%);
  border-color: #f0c48a;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.button.primary:hover {
  background: linear-gradient(180deg, #ffe6c0 0%, #f0a15a 46%, #c44818 100%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  display: block;
  text-decoration: none;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(227, 150, 83, 0.32);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 33, 18, 0.75);
}

.card h2,
.panel h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: 24px;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.card p,
.panel p,
.panel li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.card .tag {
  display: block;
  color: var(--crimson);
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  padding: 26px 28px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(227, 150, 83, 0.28);
  backdrop-filter: blur(8px);
}

.panel ol,
.panel ul {
  margin: 8px 0 0 18px;
}

.panel li + li {
  margin-top: 6px;
}

.meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-top: 8px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  color: #f6efe4;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(227, 150, 83, 0.4);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.field input:focus {
  border-color: var(--gold-bright);
}

.notice {
  max-width: 460px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(227, 150, 83, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.notice.ok {
  border-color: rgba(120, 180, 120, 0.7);
  color: #d7f0d4;
}

.notice.bad {
  border-color: rgba(200, 90, 90, 0.7);
  color: #ffd0d0;
}

.footer {
  padding: 0 8vw 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 1px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.home {
  min-height: 100vh;
}

body.home .background {
  background-image:
    linear-gradient(90deg, rgba(4, 6, 12, 0.62) 0%, rgba(4, 6, 12, 0.28) 38%, rgba(4, 6, 12, 0.08) 100%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.28) 0%, transparent 26%, rgba(4, 6, 12, 0.2) 58%, rgba(4, 6, 12, 0.78) 100%),
    url("bg.jpg");
  background-position: center 30%;
}

body.home .background::after {
  background: none;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  width: 100%;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(640px, 100%);
  padding: 18px 40px 8px;
}

.hero-logo {
  width: min(520px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.hero-tag {
  margin-top: 6px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero-sub {
  margin: 8px 0 22px;
  color: rgba(246, 239, 228, 0.86);
  font-size: 13px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  min-width: 280px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff8f2;
  font-family: Cinzel, Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.6px;
  background: linear-gradient(180deg, #d64545 0%, #9d1d28 100%);
  border: 1px solid #e7c98a;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: 0.25s ease;
}

.cta span {
  font-size: 20px;
  line-height: 1;
}

.cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #e25555 0%, #b42330 100%);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 28px 26px;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 14px 14px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(214, 170, 92, 0.55);
  background: rgba(10, 14, 24, 0.58);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 210, 154, 0.9);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  color: #f6d29a;
  background: linear-gradient(180deg, #c62828 0%, #7c1218 100%);
  border: 1px solid #e7c27a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.feature p {
  color: rgba(246, 239, 228, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.feature-go {
  color: rgba(246, 239, 228, 0.7);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-main {
    justify-content: flex-start;
  }

  .hero {
    padding: 24px 16px 8px;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px 24px;
  }
}

@media (max-width: 800px) {
  .topbar {
    gap: 10px;
  }

  .menu {
    flex-wrap: wrap;
    width: 100%;
  }

  .menu > a,
  .drop > a {
    padding: 8px 10px;
    letter-spacing: 0.8px;
  }

  .menu-cta {
    margin-left: 0;
  }

  .eyebrow {
    letter-spacing: 3px;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }

  .page,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page {
    display: block;
    padding-top: 36px;
  }

  h1 {
    letter-spacing: 0.5px;
  }

  .brand img {
    height: 48px;
  }

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

  .hero-mark img {
    width: min(320px, 100%);
  }

  .description {
    font-size: 16px;
  }

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