/* blockti.me — landing page styles
   Single source of truth for colour, spacing and motion. */

:root {
  /* One background token only. The hero and the embed must resolve to the
     exact same value, otherwise the "seamless" transition shows a seam. */
  --bg: #000;
  --panel: rgba(15, 17, 23, 0.8);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #e6e6ea;
  --muted: #97a1aa;
  --accent: #f7931a;
  --accent-2: #ffbb55;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(a, button, select):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 70% 20%, rgba(247, 147, 26, 0.18), transparent 60%),
    radial-gradient(900px 500px at 20% 60%, rgba(255, 187, 85, 0.06), transparent 55%);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  place-items: center;
  padding: 6vh 20px clamp(10px, 3vh, 24px);
}

.card {
  position: relative;
  width: min(920px, 92vw);
  padding: clamp(22px, 4vw, 46px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* The picker holds language names, not two-letter codes, so it needs room to
   grow. A flex row keeps it clear of the brand at every width. */
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(from 0turn, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 22px rgba(247, 147, 26, 0.8);
}

.lang {
  flex: 0 1 auto;
  max-width: 55%;
  padding: 6px 10px;
  text-overflow: ellipsis;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
}

.headline {
  margin: 14px 0 6px;
  font-size: clamp(26px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.domains__item {
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0.25em 0 0.5em;
}

.price__amount {
  font-size: clamp(36px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: 0.6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price__note {
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 600;
}

.contact {
  margin: 0;
}

.contact__address {
  padding: 8px 12px;
  font-family: var(--mono);
  color: inherit;
  text-decoration-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.btn {
  appearance: none;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn--primary {
  color: #0b0b0f;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Only shown once JS has confirmed the Clipboard API is usable. */
.btn--copy[hidden] {
  display: none;
}

/* ---------- Embed ---------- */

.embed {
  position: relative;
  background: var(--bg);
}

.embed__frame {
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 780px;
  border: 0;
  background: var(--bg);
}

@supports (height: 100dvh) {
  .embed__frame {
    height: 100dvh;
  }
}

/* Shown only when the third-party embed did not load in time. */
.embed__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
}

.embed[data-embed="failed"] .embed__fallback {
  display: grid;
}

.embed__fallback a {
  color: var(--accent);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .price__amount {
    animation: glow 3.2s ease-in-out infinite;
  }

  @keyframes glow {
    0%,
    100% {
      filter: drop-shadow(0 0 14px rgba(247, 147, 26, 0.18));
    }
    50% {
      filter: drop-shadow(0 0 28px rgba(247, 147, 26, 0.4));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
