/* -----------------------------------------------------------------------------
   Landing Page Styles (index.html only)
----------------------------------------------------------------------------- */

/* Register the Aptos Narrow Regular */
@font-face {
  font-family: "AptosNarrow";
  src: url("/static/fonts/Aptos-Narrow.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Register the Aptos Narrow Italic */
@font-face {
  font-family: "AptosNarrowItalic";
  src: url("/static/fonts/Aptos-Narrow-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

body.landing {
  margin: 0;
  padding: 0;
  height: 100dvh;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #000;
}

/* Hero */
body.landing .hero {
  position: relative;
  min-height: 100dvh;
  width: 100vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 15vh;
  text-align: center;
  overflow: hidden;
}

/* Overlay */
body.landing .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.landing .login-icon-link {
  position: absolute;
  top: clamp(1rem, 4vw, 2.75rem);
  right: clamp(1rem, 5vw, 3rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.4rem, 1.2vw, 0.65rem);
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  z-index: 2;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.landing .login-icon-link:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

body.landing .login-icon-link:focus-visible {
  outline: 2px solid #ff7a00;
  outline-offset: 4px;
}

body.landing .login-icon {
  width: clamp(28px, 4vw, 40px);
  height: auto;
}

/* Inner wrapper */
body.landing .hero .inner {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  max-width: 720px;
  animation: fadeIn .8s ease both;
}

/* Typography */
body.landing .tagline {
  font-family: "AptosNarrowItalic", sans-serif;
  opacity: .9;
  margin-bottom: .25rem;
  font-size: clamp(14px, 2.6vw, 16px);
  letter-spacing: .12em;
  /* removed text-transform so original casing stays */
}

body.landing .brand {
  font-family: "AptosNarrow", sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: .5px;
  margin: .5rem 0 1rem;
  line-height: 1.1;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Safe area support */
@supports (padding: max(0px)) {
  body.landing .hero .inner {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: max(0rem, env(safe-area-inset-top));
    padding-bottom: max(0rem, env(safe-area-inset-bottom));
  }
}

body.landing .floating-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  padding: clamp(0.75rem, 3.8vw, 1.4rem);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  animation: floatY 6s ease-in-out infinite;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.landing .floating-icon-link:focus-visible {
  outline: 2px solid #ff7a00;
  outline-offset: 6px;
}

body.landing .floating-icon-link:hover {
  transform: translate3d(0, -6px, 0);
  opacity: 0.85;
}

body.landing .floating-icon {
  width: clamp(60px, 15vw, 96px);
  height: auto;
  pointer-events: none;
}

@keyframes floatY {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
