/* ==========================================================================
   Rezma — landing page styles
   Sections: 1) Tokens  2) Base  3) Logo  4) Tagline  5) Links  6) Footer
             7) Animations  8) Responsive / preferences
   ========================================================================== */

/* 1) Design tokens ------------------------------------------------------- */
:root {
  /* brand — sampled from the logo artwork */
  --navy-deep: #0f1e2e;
  --navy:      #16283c;
  --navy-mid:  #213b57;
  --navy-lift: #2c4d70;

  --gold:      #c9a882;
  --gold-soft: #e3cdaf;
  --gold-deep: #9d7d55;

  --ink:     #ede4d8;
  --ink-dim: #a99c8a;

  --ring:        rgba(201, 168, 130, 0.22);
  --ring-strong: rgba(201, 168, 130, 0.32);

  --radius:    15px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2) Base ---------------------------------------------------------------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
  overflow-x: hidden;

  font-family: "Jost", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(125% 90% at 50% -10%,
              var(--navy-mid) 0%, var(--navy) 45%, var(--navy-deep) 100%);
}

/* ambient gold glow behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 40% at 50% 30%,
              rgba(201, 168, 130, 0.12), transparent 70%);
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: rise 0.9s var(--ease) both;
}

/* 3) Logo ---------------------------------------------------------------- */
/* Transparent lockup (icon + wordmark), pre-cropped to its artwork so the box
   matches what you see. The vh cap keeps the whole page inside one screen on
   short viewports without any scrolling. */
.logo {
  width: min(180px, 22vh);
  /* Required: the width/height HTML attributes set a presentational height,
     which would otherwise pin the box to the image's intrinsic height. */
  height: auto;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 6px 26px rgba(201, 168, 130, 0.22));
  animation: float 6s ease-in-out infinite;
}

/* 4) Tagline ------------------------------------------------------------- */
.tagline {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.divider {
  width: 62px;
  height: 1px;
  margin: 16px auto 20px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 5) Links --------------------------------------------------------------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ring);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(6px);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
  animation: rise 0.9s var(--ease) both;
}
.link:nth-child(1) { animation-delay: 0.10s; }
.link:nth-child(2) { animation-delay: 0.16s; }
.link:nth-child(3) { animation-delay: 0.22s; }
.link:nth-child(4) { animation-delay: 0.28s; }
.link:nth-child(5) { animation-delay: 0.34s; }

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 168, 130, 0.16), rgba(201, 168, 130, 0.04));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(201, 168, 130, 0.14);
  outline: none;
}

.link__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ring-strong);
  background: radial-gradient(closest-side, rgba(201, 168, 130, 0.18), rgba(201, 168, 130, 0.04));
  transition: transform 0.35s var(--ease);
}
.link:hover .link__icon { transform: scale(1.08) rotate(-4deg); }
.link__icon svg { width: 21px; height: 21px; fill: var(--gold-soft); }

.link__text { text-align: left; line-height: 1.25; min-width: 0; }
.link__text b {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.link__text span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link__arrow {
  margin-left: auto;
  padding-left: 8px;
  font-size: 1.1rem;
  color: var(--ink-dim);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.link:hover .link__arrow { color: var(--gold); transform: translateX(4px); }

/* 6) Footer -------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(169, 156, 138, 0.55);
  animation: rise 0.9s var(--ease) 0.42s both;
}

/* 7) Animations ---------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* 8) Responsive & user preferences -------------------------------------- */
@media (max-width: 380px) {
  .link__text b { font-size: 0.94rem; }
}

/* Short viewports: compress further so nothing needs scrolling */
@media (max-height: 700px) {
  .logo     { width: min(150px, 20vh); margin-bottom: 8px; }
  .divider  { margin: 12px auto 14px; }
  .links    { gap: 8px; }
  .link     { padding: 9px 14px; }
  .link__icon { flex-basis: 38px; width: 38px; height: 38px; }
  .footer   { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}
