:root {
  --bg: #080b09;
  --surface: rgba(17, 22, 18, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --text: #f8faf8;
  --muted: #a9b2aa;
  --green: #25c45a;
  --green-deep: #087a2e;
  --gold: #ffc400;
  --gold-soft: #ffe171;
  --line: rgba(255, 255, 255, 0.11);
  --focus: #ffd84d;
  --radius-card: 28px;
  --radius-tile: 16px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.28) 76%);
  pointer-events: none;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.17;
  animation: ambient-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.ambient--green {
  top: -32%;
  left: -16%;
  background: var(--green);
}

.ambient--gold {
  right: -18%;
  bottom: -42%;
  background: var(--gold);
  animation-delay: -7s;
}

.page-shell {
  display: grid;
  width: 100%;
  height: 100dvh;
  padding: clamp(12px, 2.5vh, 28px) clamp(12px, 3vw, 36px);
  place-items: center;
}

.link-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 820px);
  max-height: 100%;
  padding: clamp(18px, 3vh, 34px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 48%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  animation: card-enter 520ms var(--ease-out) both;
}

.link-card::before {
  position: absolute;
  top: 0;
  left: 8%;
  z-index: -1;
  width: 38%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--green), var(--gold), transparent);
  animation: accent-breathe 4.8s ease-in-out infinite;
}

.brand-watermark {
  position: absolute;
  right: -80px;
  bottom: -96px;
  z-index: -1;
  width: 290px;
  height: auto;
  opacity: 0.035;
  filter: grayscale(1);
  animation: watermark-float 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.brand-header {
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) 1.15fr;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  margin-bottom: clamp(16px, 2.7vh, 28px);
  animation: rise-in 440ms var(--ease-out) 70ms both;
}

.logo-frame {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.mobile-tagline {
  display: none;
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 5px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: block;
  width: 24px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--gold));
}

h1 {
  margin: 0;
  font-size: clamp(1.52rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 1.5vw, 0.98rem);
  line-height: 1.45;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1.3vw, 13px);
}

.link-tile {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  width: 100%;
  padding: 10px 14px 10px 11px;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
  cursor: pointer;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
  animation: tile-reveal 380ms var(--ease-out) both;
}

.link-tile::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(var(--green), var(--gold));
  opacity: 0.8;
}

.link-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 34%,
    rgba(255, 255, 255, 0.09) 47%,
    rgba(255, 225, 113, 0.08) 52%,
    transparent 66%
  );
  transform: translateX(-135%);
  transition: transform 520ms var(--ease-out);
  pointer-events: none;
}

.link-tile:nth-child(1) { animation-delay: 150ms; }
.link-tile:nth-child(2) { animation-delay: 190ms; }
.link-tile:nth-child(3) { animation-delay: 230ms; }
.link-tile:nth-child(4) { animation-delay: 270ms; }
.link-tile:nth-child(5) { animation-delay: 310ms; }
.link-tile:nth-child(6) { animation-delay: 350ms; }

.link-tile:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 205, 39, 0.46);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
  .link-tile:hover::after {
    transform: translateX(135%);
  }
}

.link-tile:active {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(0) scale(0.985);
}

.link-tile:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--green);
  background: rgba(37, 196, 90, 0.1);
  border: 1px solid rgba(37, 196, 90, 0.2);
  border-radius: 12px;
  place-items: center;
}

.icon-box svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.icon-box .fill-dot {
  fill: currentColor;
  stroke: none;
}

.link-copy {
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.link-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.arrow {
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--gold);
  place-items: center;
  transition: transform 180ms ease;
}

.arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-tile:hover .arrow {
  transform: translate(2px, -2px);
}

.link-tile--contact {
  background:
    linear-gradient(90deg, rgba(255, 196, 0, 0.07), transparent 45%),
    var(--surface-soft);
  border-color: rgba(255, 196, 0, 0.25);
}

.link-tile--contact .icon-box {
  color: var(--gold);
  background: rgba(255, 196, 0, 0.1);
  border-color: rgba(255, 196, 0, 0.22);
}

.contact-plus {
  display: grid;
  width: 24px;
  height: 24px;
  color: #15190f;
  background: var(--gold);
  border-radius: 8px;
  place-items: center;
  transition: background-color 180ms ease;
}

.contact-plus svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.link-tile--contact:hover .contact-plus {
  background: var(--gold-soft);
}

.card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(12px, 2vh, 20px);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 196, 90, 0.1);
  animation: status-breathe 2.2s ease-in-out infinite;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tile-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(0.96); }
  to { transform: translate3d(3%, 2%, 0) scale(1.04); }
}

@keyframes watermark-float {
  from { transform: translate3d(-3px, 2px, 0) rotate(-2deg); opacity: 0.025; }
  to { transform: translate3d(4px, -4px, 0) rotate(2deg); opacity: 0.055; }
}

@keyframes accent-breathe {
  0%, 100% { opacity: 0.55; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1.06); }
}

@keyframes status-breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

.toast {
  position: fixed;
  right: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  color: #11170f;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  background: var(--gold-soft);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(50%, 10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

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

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

  .brand-header {
    display: block;
    margin-bottom: 14px;
    text-align: center;
  }

  .logo-frame {
    min-height: 0;
    width: min(72%, 255px);
    margin: 0 auto 11px;
    padding: 8px 12px;
    border-radius: 14px;
  }

  .mobile-tagline {
    display: block;
    margin: 0 0 10px;
    color: var(--gold-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.35;
  }

  .eyebrow {
    justify-content: center;
    font-size: 0.65rem;
  }

  h1 {
    font-size: clamp(1.28rem, 6.2vw, 1.6rem);
  }

  .intro {
    margin-top: 4px;
    font-size: 0.8rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .link-tile {
    min-height: 58px;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 10px;
    padding-block: 7px;
    border-radius: 13px;
  }

  .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .link-copy small {
    margin-top: 1px;
  }

  .card-footer {
    margin-top: 11px;
    font-size: 0.63rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .page-shell {
    padding: 8px 12px;
  }

  .link-card {
    width: min(100%, 900px);
    padding: 13px 16px;
    border-radius: 20px;
  }

  .brand-header {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) 1.3fr;
    gap: 22px;
    margin-bottom: 10px;
    text-align: left;
  }

  .mobile-tagline {
    display: none;
  }

  .logo-frame {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 8px 12px;
  }

  .eyebrow {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(1.25rem, 3.7vw, 1.75rem);
  }

  .intro {
    font-size: 0.76rem;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .link-tile {
    min-height: 52px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 5px 10px 5px 8px;
  }

  .icon-box {
    width: 36px;
    height: 36px;
  }

  .icon-box svg {
    width: 19px;
    height: 19px;
  }

  .link-copy small {
    display: none;
  }

  .card-footer {
    margin-top: 8px;
  }
}

@media (max-height: 670px) and (orientation: portrait) {
  .brand-header {
    margin-bottom: 10px;
  }

  .logo-frame {
    width: min(60%, 215px);
    margin-bottom: 8px;
  }

  .intro {
    display: none;
  }

  .link-grid {
    gap: 6px;
  }

  .link-tile {
    min-height: 52px;
  }

  .card-footer {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
