/*
  Gegamo Domains — Futuristic Landing
  Theme: black, gray, white accents
*/
:root {
  --bg: #0a0b0d;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.08);
  --text: #e9eef2;
  --muted: #a3adb8;
  --accent: #e6e9ee;
  --glow: 0 0 0px rgba(255,255,255,0), 0 0 24px rgba(255,255,255,0.08);
  --blur: saturate(140%) blur(8px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 70% -10%, #1b1f27 0%, var(--bg) 50%), #0a0b0d;
  color: var(--text);
  overflow: hidden;
}

/* Background layers */
#constellation {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,0.8);
}

/* Layout */
.container {
  position: relative; height: 100%; width: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 28px clamp(16px, 3vw, 40px);
}

.brand {
  display: flex; align-items: baseline; gap: 12px; opacity: .96;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: Orbitron, Inter, system-ui; letter-spacing: 0.06em; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(120deg, #fff, #c7ccd3);
  box-shadow: 0 0 18px rgba(255,255,255,.55);
}
.logo .text { font-weight: 700; text-transform: uppercase; color: #f2f5f8; }
.domain { color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.domain { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.linklike {
  appearance: none; border: none; background: transparent; color: #e9eef2; cursor: pointer;
  padding: 6px 10px; border-radius: 10px; font-size: 13px; letter-spacing: .04em; opacity: .88;
  transition: background .25s ease, opacity .25s ease, transform .2s ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: var(--blur);
}
.linklike:hover { opacity: 1; background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)); }
.linklike:active { transform: translateY(1px); }

.hero { align-self: center; justify-self: center; text-align: center; max-width: 980px; width: 100%; }
.hero h1 { font-size: clamp(28px, 5vw, 64px); margin: 0 0 10px; line-height: 1.1; font-weight: 800; }
.hero p.muted { color: var(--muted); margin: 0 0 30px; font-size: clamp(14px, 1.7vw, 18px); }

/* Glitch effect on headline */
.glitch {
  position: relative; display: inline-block; filter: drop-shadow(0 8px 18px rgba(255,255,255,0.06));
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: #dfe6ee; transform: translate3d(0, 0, 0); animation: glitchShift 3.2s infinite ease-in-out; opacity: .55; }
.glitch::after { color: #ffffff; transform: translate3d(0, 0, 0); animation: glitchShift2 2.2s infinite ease-in-out; opacity: .35; }
@keyframes glitchShift { 0%, 100% { transform: translate(0,0); } 20% { transform: translate(-1px, 1px); } 40% { transform: translate(1px, -1px);} 60% { transform: translate(-2px, -1px);} 80% { transform: translate(1px, 2px);} }
@keyframes glitchShift2 { 0%, 100% { transform: translate(0,0); } 25% { transform: translate(1px, 0);} 50% { transform: translate(-1px, 1px);} 75% { transform: translate(0, -1px);} }

/* Choices */
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  padding: 0 clamp(2px, 2vw, 20px);
}
@media (max-width: 900px) {
  .choices { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

.choice {
  display: grid; gap: 10px; padding: 22px 22px 20px; border-radius: 16px; position: relative; overflow: hidden;
  color: var(--text); text-decoration: none; isolation: isolate;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--glow);
  backdrop-filter: var(--blur);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .5s;
}
.choice::before {
  content: ""; position: absolute; inset: -100% -100%; background:
    conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.0) 0 330deg, rgba(255,255,255,0.6) 360deg);
  animation: rotateGlow 6s linear infinite; opacity: 0; filter: blur(18px);
}
.choice:hover::before { opacity: .5; }
@keyframes rotateGlow { to { transform: rotate(360deg); } }

.choice .label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.choice .title { font-weight: 700; letter-spacing: 0.02em; }
.choice .tag { font-size: 12px; color: #0b0b0e; background: #eaf0f6; padding: 4px 8px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; }
.choice .desc { color: var(--muted); font-size: 13px; }

.choice:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.16); }
.choice:active { transform: translateY(-2px) scale(.99); }

/* Accents per card */
.choice.primary { --ring: linear-gradient(120deg, #ffffff, #cdd3da); }
.choice.secondary { --ring: linear-gradient(120deg, #f5f8ff, #cbd4e3); }
.choice.meme { --ring: linear-gradient(120deg, #ffffff, #e2e2e2); }
.choice::after {
  content: ""; position: absolute; inset: 1px; border-radius: 15px; padding: 1px; background: var(--ring);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .18; pointer-events: none; transition: opacity .35s;
}
.choice:hover::after { opacity: .35; }

/* Footer */
.foot { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; opacity: .9; }
.foot .sep { opacity: .5; }

/* Modal */
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 50; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; z-index: 1; max-width: 520px; margin: 10vh auto; padding: 18px; border-radius: 16px; color: var(--text);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel)); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), var(--glow); backdrop-filter: var(--blur);
}
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.modal__header h2 { margin: 0; font-size: 18px; letter-spacing: .04em; }
.modal__close { appearance: none; border: none; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; opacity: .8; }
.modal__close:hover { opacity: 1; }
.modal__body { padding: 14px 6px 4px; }
.domain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.domain-list a { display: inline-block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08);
}
.domain-list a:hover { border-color: rgba(255,255,255,0.16); }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after, .choice::before { animation: none !important; }
}
