:root {
  --bg: #060606;
  --bg-elevated: rgba(11, 11, 11, 0.9);
  --surface: rgba(20, 20, 20, 0.92);
  --surface-strong: rgba(27, 27, 27, 0.96);
  --line: rgba(212, 169, 78, 0.16);
  --line-strong: rgba(212, 169, 78, 0.3);
  --text: #f7f1e3;
  --muted: #d7c7a1;
  --accent: #d4a94e;
  --accent-strong: #f1d48a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(212, 169, 78, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(212, 169, 78, 0.12), transparent 20%),
    linear-gradient(145deg, #020202, #090909 46%, #050505);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 18px
    );
  pointer-events: none;
}

.page-shell {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-a {
  top: 12%;
  right: -4rem;
  width: 12rem;
  height: 12rem;
  background: rgba(212, 169, 78, 0.15);
}

.ambient-b {
  left: -3rem;
  bottom: 10%;
  width: 10rem;
  height: 10rem;
  background: rgba(241, 212, 138, 0.11);
}

.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(135deg, rgba(212, 169, 78, 0.08), transparent 44%),
    var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
}

.brand-logo {
  display: block;
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.links-panel {
  display: grid;
  gap: 14px;
}

.signup-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(212, 169, 78, 0.14), transparent 52%),
    rgba(255, 255, 255, 0.028);
  overflow: hidden;
}

.signup-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  text-align: right;
}

.signup-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(212, 169, 78, 0.12);
  color: var(--accent-strong);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.signup-toggle[aria-expanded="true"] .signup-toggle-icon {
  transform: rotate(45deg);
}

.signup-panel {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
  overflow: hidden;
  max-height: 540px;
  opacity: 1;
  transition: max-height 240ms ease, opacity 240ms ease, padding 240ms ease;
}

.signup-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.signup-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-field {
  display: grid;
  gap: 6px;
}

.signup-field span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.signup-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(212, 169, 78, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.signup-field input::placeholder {
  color: rgba(247, 241, 227, 0.42);
}

.signup-field input:focus {
  border-color: rgba(212, 169, 78, 0.52);
  box-shadow: 0 0 0 4px rgba(212, 169, 78, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.signup-submit {
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #b8892f, #e4c16e);
  color: #141414;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.signup-submit:hover,
.signup-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  filter: brightness(1.03);
  outline: none;
}

.signup-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(212, 169, 78, 0.1);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.links-grid {
  display: grid;
  gap: 14px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(212, 169, 78, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    opacity 500ms ease;
}

.link-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(212, 169, 78, 0.5);
  background:
    linear-gradient(90deg, rgba(212, 169, 78, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  outline: none;
}

.link-card--primary {
  border-color: rgba(212, 169, 78, 0.52);
  background:
    linear-gradient(90deg, rgba(212, 169, 78, 0.22), transparent 50%),
    rgba(255, 255, 255, 0.05);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(212, 169, 78, 0.13);
  color: var(--accent);
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-content {
  display: block;
}

.link-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.link-arrow {
  color: var(--accent-strong);
  font-size: 1.4rem;
  transform: translateX(0);
  transition: transform 220ms ease;
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  transform: translateX(-4px);
}

@media (max-width: 620px) {
  .page-shell {
    padding: 18px;
  }

  .hero-card {
    padding: 22px 16px 16px;
    border-radius: 26px;
  }

  .signup-toggle,
  .signup-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .link-card {
    grid-template-columns: auto 1fr;
  }

  .link-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card,
  .link-arrow {
    transition: none;
  }

  .link-card {
    transform: none;
    opacity: 1;
  }
}
