:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d8e0e8;
  --paper: #f5f7f8;
  --white: #ffffff;
  --navy: #0d1f33;
  --cyan: #1fc7c4;
  --cyan-dark: #087d7b;
  --lime: #c8f04b;
  --green: #16a067;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem clamp(6.5rem, 12vw, 9rem);
}

.hero::before {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  right: max(-10rem, calc((100vw - 1200px) / 2 - 9rem));
  top: -12rem;
  border: 1px solid rgba(31, 199, 196, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(31, 199, 196, 0.04), 0 0 0 8rem rgba(31, 199, 196, 0.025);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, transparent, black 55%, black);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  color: #b8c8d8;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(200, 240, 75, 0.12);
}

h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 780;
}

.intro {
  max-width: 650px;
  margin: 1.75rem 0 2rem;
  color: #b8c8d8;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.refresh-button, .copy-button {
  border: 0;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.refresh-button {
  padding: 0.9rem 1.2rem;
  background: var(--lime);
  color: #14210c;
  box-shadow: 0 10px 30px rgba(200, 240, 75, 0.12);
}

.refresh-button:hover {
  transform: translateY(-2px);
  background: #d7fb6a;
}

.results {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), 1120px);
  margin: clamp(-4.25rem, -6vw, -3.25rem) auto 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.address-card {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 16px 38px rgba(13, 31, 51, 0.08);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.card-heading h2 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #98a2b3;
}

.status-dot.loading { animation: pulse 1.2s ease-in-out infinite; }

.status-dot.ready {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 160, 103, 0.12);
}

.status-dot.unavailable {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.status-label {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.address-value {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  margin: 1.1rem 0 0.8rem;
  overflow-wrap: anywhere;
}

.address-value code {
  color: var(--navy);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.address-value.unavailable {
  color: #9a5411;
  font-size: 1rem;
  font-weight: 650;
}

.loading-line {
  width: min(100%, 19rem);
  height: 1.7rem;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, #edf1f4 25%, #f8fafb 50%, #edf1f4 75%);
  background-size: 200% 100%;
  animation: loading 1.4s linear infinite;
}

.card-explanation {
  min-height: 3rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.copy-button {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #e8f7f6;
  color: var(--cyan-dark);
}

.copy-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #d7f3f1;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.privacy-note {
  margin: 1.25rem 0 4.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}

footer {
  margin-top: auto;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(calc(100% - 3rem), 1120px);
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: 1.4rem 0;
}

.made-by {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.made-by a, .ticket-link {
  color: var(--navy);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22rem;
}

.support {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding: 0.42rem 1rem 0.42rem 0.45rem;
  border-radius: 999px;
  background: #10261d;
  color: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  background: #173a2a;
}

.whatsapp-icon {
  width: 36px;
  height: 36px;
  display: block;
  overflow: hidden;
  flex: none;
  border-radius: 50%;
}

.whatsapp-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes pulse { 50% { opacity: 0.35; } }

@media (max-width: 760px) {
  .hero {
    padding-top: 3.75rem;
    padding-bottom: 6.5rem;
  }

  .cards { grid-template-columns: 1fr; }

  .footer-inner, .support {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner { padding: 2rem 0; }
  .support { gap: 0.8rem; }
}

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