@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ember: #ff5a18;
  --red: #d92d0b;
  --deep-red: #8f1608;
  --cream: #fff9f3;
  --ink: #26110b;
  --muted: #7d5a50;
  --green: #20b86a;
  --line: rgba(138, 45, 17, .13);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 119, 48, .22), transparent 28rem),
    radial-gradient(circle at 88% 78%, rgba(203, 32, 5, .12), transparent 30rem),
    linear-gradient(135deg, #fffaf5 0%, #fff0e6 52%, #fff8f2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgba(188, 57, 17, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(188, 57, 17, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .22;
  animation: drift 11s ease-in-out infinite alternate;
}

.ambient-one { top: -15rem; right: -8rem; background: #ff5b20; }
.ambient-two { bottom: -18rem; left: -8rem; background: #f4a32a; animation-delay: -4s; }

.site-header {
  min-height: 86px;
  padding: 10px clamp(20px, 7vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 5;
  background: linear-gradient(115deg, #aa1808 0%, #df310e 45%, #ff6d1d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 12px 34px rgba(120, 21, 4, .22);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 52%, rgba(255,255,255,.16) 58%, transparent 65%);
  transform: translateX(-100%);
  animation: header-shine 7s ease-in-out infinite;
}

.brand {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(190px, 24vw, 275px);
  min-height: 62px;
  perspective: 800px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68px;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.4)) drop-shadow(0 7px 0 rgba(92,12,2,.5)) drop-shadow(0 13px 13px rgba(55,5,0,.38));
  transform: rotateX(4deg) rotateY(-5deg) translateY(-3px);
  transform-origin: center;
  animation: logo-float 4.5s ease-in-out infinite;
}

.brand-glow {
  position: absolute;
  z-index: 1;
  inset: 12% -7%;
  border-radius: 50%;
  background: rgba(255, 190, 89, .38);
  filter: blur(19px);
  transform: translateY(11px);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(81, 9, 1, .24);
  backdrop-filter: blur(10px);
}

.header-status i, .link-info em i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  display: inline-block;
  border-radius: 50%;
  background: #45e890;
  box-shadow: 0 0 0 4px rgba(69,232,144,.16), 0 0 12px #45e890;
  animation: pulse 2s ease-out infinite;
}

.page-shell {
  width: min(100% - 32px, 900px);
  margin: clamp(36px, 6vw, 72px) auto 24px;
  perspective: 1300px;
}

.link-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(218, 55, 10, .18);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 30px 75px rgba(115, 34, 11, .15), 0 3px 0 rgba(255,255,255,.9) inset;
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .3s ease;
}

.panel-highlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,127,51,.20), transparent 34%);
}

.hero-copy {
  padding: clamp(34px, 5vw, 54px) clamp(24px, 6vw, 64px) 35px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 208, 119, .26), transparent 25rem),
    linear-gradient(120deg, #9d1708, #db310f 52%, #ff6a1c);
  border-bottom: 1px solid rgba(119, 25, 4, .2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(76, 8, 0, .22);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
  box-shadow: 0 8px 20px rgba(75,8,0,.18);
}

.eyebrow span { color: #ffd178; }

h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(89, 10, 2, .28), 0 12px 24px rgba(76, 9, 0, .18);
}

h1 span { color: #ffd177; }

.hero-copy p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  line-height: 1.7;
}

.link-list {
  display: grid;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 36px) 16px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 88px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(104, 31, 10, .055), 0 1px 0 #fff inset;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
  animation: card-in .55s both;
}

.link-card:nth-child(2) { animation-delay: .07s; }
.link-card:nth-child(3) { animation-delay: .14s; }
.link-card:nth-child(4) { animation-delay: .21s; }
.link-card:nth-child(5) { animation-delay: .28s; }

.link-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(var(--ember), var(--red));
  opacity: 0;
  transition: opacity .22s ease;
}

.link-card:hover, .link-card:focus-visible {
  outline: none;
  transform: translateY(-3px) scale(1.008);
  border-color: rgba(229, 72, 20, .38);
  background: #fff;
  box-shadow: 0 16px 32px rgba(132, 39, 10, .13), 0 1px 0 #fff inset;
}

.link-card:hover::before, .link-card:focus-visible::before { opacity: 1; }

.link-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(145deg, #ff7a27, #cc2609);
  box-shadow: 0 7px 0 #8e1908, 0 12px 20px rgba(143,25,8,.24), 0 1px 0 rgba(255,255,255,.45) inset;
  transform: translateY(-3px);
  transition: transform .22s ease, box-shadow .22s ease;
}

.link-card:hover .link-number {
  transform: translateY(-6px) rotate(-3deg);
  box-shadow: 0 9px 0 #8e1908, 0 15px 24px rgba(143,25,8,.28), 0 1px 0 rgba(255,255,255,.45) inset;
}

.link-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.link-info strong { font-size: .98rem; font-weight: 800; line-height: 1.35; }
.link-info small { margin-top: 2px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.link-info em { margin-top: 5px; display: flex; align-items: center; gap: 7px; color: var(--green); font-size: .72rem; font-weight: 800; font-style: normal; }
.link-info em i { width: 6px; height: 6px; flex-basis: 6px; box-shadow: 0 0 8px rgba(32,184,106,.65); animation: none; }

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 100px;
  justify-content: center;
  padding: 13px 17px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(120deg, #321009, #6c1809);
  box-shadow: 0 5px 0 #1e0905, 0 9px 16px rgba(45,11,4,.19);
  font-size: .85rem;
  font-weight: 800;
  transform: translateY(-2px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.link-action b { font-size: 1rem; transition: transform .2s ease; }
.link-card:hover .link-action { background: linear-gradient(120deg, #d62f0d, #ff6b1c); box-shadow: 0 5px 0 #8e1908, 0 10px 18px rgba(205,45,12,.25); }
.link-card:hover .link-action b { transform: translate(2px, -2px); }
.link-card:active { transform: translateY(1px) scale(.997); }

.panel-note {
  margin: 3px clamp(16px, 4vw, 36px) 27px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 16px;
  color: #6b301e;
  background: linear-gradient(100deg, rgba(255, 221, 196, .72), rgba(255,244,235,.7));
  border: 1px solid rgba(221,72,19,.13);
}

.panel-note > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; box-shadow: 0 5px 12px rgba(32,184,106,.23); }
.panel-note p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.panel-note strong { font-size: .84rem; }
.panel-note small { color: #8b665a; font-size: .75rem; }

footer { padding: 0 18px 30px; color: #957168; font-size: .74rem; text-align: center; }

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 91, 28, .16);
  transform: scale(0);
  animation: ripple .6s ease-out;
}

@keyframes logo-float { 0%,100% { transform: rotateX(4deg) rotateY(-5deg) translateY(-3px); } 50% { transform: rotateX(-2deg) rotateY(5deg) translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(69,232,144,.5), 0 0 12px #45e890; } 70% { box-shadow: 0 0 0 8px rgba(69,232,144,0), 0 0 12px #45e890; } 100% { box-shadow: 0 0 0 0 rgba(69,232,144,0), 0 0 12px #45e890; } }
@keyframes header-shine { 0%,30% { transform: translateX(-110%); } 55%,100% { transform: translateX(120%); } }
@keyframes drift { to { transform: translate3d(35px, -25px, 0) scale(1.08); } }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

@media (max-width: 640px) {
  .site-header { min-height: 76px; padding-inline: 18px; }
  .brand { width: 178px; min-height: 54px; }
  .header-status { padding: 9px 11px; font-size: .72rem; }
  .page-shell { width: min(100% - 20px, 900px); margin-top: 20px; }
  .link-panel { border-radius: 23px; }
  .hero-copy { padding-inline: 18px; }
  .hero-copy p { font-size: .9rem; line-height: 1.58; }
  .link-list { gap: 10px; padding-top: 16px; }
  .link-card { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 11px; min-height: 78px; padding: 10px; border-radius: 15px; }
  .link-number { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 5px 0 #8e1908, 0 10px 16px rgba(143,25,8,.2); }
  .link-info strong { font-size: .86rem; }
  .link-info small { font-size: .7rem; }
  .link-action { min-width: 44px; width: 44px; height: 44px; padding: 0; border-radius: 12px; font-size: 0; }
  .link-action b { font-size: 1.05rem; }
  .panel-note { margin-bottom: 18px; }
}

@media (max-width: 390px) {
  .header-status { display: none; }
  .site-header { justify-content: center; }
  h1 { font-size: 1.9rem; }
}

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