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

:root { --hue: 0; --bg: #080808; --text: #efefef; --muted: #3a3a3a; }

html, body { height: 100%; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* ── VIGNETTE ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.75) 100%);
}

#particle-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }

.grid-lines {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
}

.corner { position: fixed; width: 18px; height: 18px; pointer-events: none; z-index: 10; opacity: 0.3; }
.corner::before, .corner::after { content: ''; position: absolute; background: hsl(var(--hue),90%,60%); }
.corner::before { width: 100%; height: 1px; top: 0; left: 0; }
.corner::after  { width: 1px; height: 100%; top: 0; left: 0; }
.corner-tl { top: 20px; left: 20px; }
.corner-tr { top: 20px; right: 20px; transform: scaleX(-1); }
.corner-bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.corner-br { bottom: 20px; right: 20px; transform: scale(-1); }

.trail-dot {
  position: fixed; border-radius: 50%; pointer-events: none;
  z-index: 999; transform: translate(-50%,-50%);
  transition: opacity 0.4s ease;
}

/* ── DESKTOP LAYOUT ── */
.desktop-only { display: flex; }
.mobile-only { display: none; }

.page {
  position: relative; z-index: 4;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px; min-height: 100vh;
}

header {
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; animation: revealDown 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: hsl(var(--hue),90%,60%);
}
.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: opacity 0.3s; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--hue),90%,60%); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 hsla(var(--hue),90%,60%,0.5); }
  50%      { box-shadow: 0 0 0 5px hsla(var(--hue),90%,60%,0); }
}

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0; }

.hero-label {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
  opacity: 0; animation: revealUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-label::before { content: ''; display: block; width: 2rem; height: 1px; background: hsl(var(--hue),90%,60%); opacity: 0.5; }

.tagline-wrap {
  opacity: 0; animation: revealUp 1s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
  min-height: clamp(9rem, 21vw, 21rem); display: flex; align-items: flex-start;
  perspective: 800px;
}
.tagline {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 10.5rem);
  line-height: 0.95; letter-spacing: -0.02em; color: var(--text);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}
.tagline .line2 { display: block; }
.tagline .accent-word {
  font-style: italic;
  background: linear-gradient(90deg,
    hsl(var(--hue),90%,60%),
    hsl(calc(var(--hue) + 60),90%,60%),
    hsl(calc(var(--hue) + 120),90%,60%),
    hsl(calc(var(--hue) + 180),90%,60%),
    hsl(calc(var(--hue) + 240),90%,60%),
    hsl(calc(var(--hue) + 300),90%,60%),
    hsl(calc(var(--hue) + 360),90%,60%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradientSlide 2s linear infinite;
}
@keyframes gradientSlide {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
.cursor {
  display: inline-block; width: 0.06em; height: 0.82em;
  background: hsl(var(--hue),90%,60%); margin-left: 0.06em;
  vertical-align: baseline; position: relative; top: 0.06em;
  border-radius: 1px; animation: blink 0.9s step-end infinite;
}
.cursor.typing { animation: none; opacity: 1; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 2.5rem;
  opacity: 0; animation: revealUp 0.9s cubic-bezier(0.16,1,0.3,1) 1s forwards;
}
.hero-sub-text { font-size: clamp(0.78rem, 1.1vw, 0.92rem); color: #4a4a4a; max-width: 30ch; line-height: 1.75; }
.divider-v { width: 1px; height: 2.8rem; background: var(--muted); opacity: 0.35; flex-shrink: 0; }
.counter-block { display: flex; flex-direction: column; gap: 0.15rem; flex-shrink: 0; }
.counter-num { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: hsl(var(--hue),90%,60%); line-height: 1; }
.counter-label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.notify-wrap {
  margin-top: 2rem;
  opacity: 0; animation: revealUp 0.9s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
  display: flex; gap: 0; max-width: 360px;
}
.notify-input {
  flex: 1; background: #0f0f0f; border: 1px solid #1e1e1e;
  border-right: none; color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.08em; padding: 0.6rem 1rem;
  outline: none; border-radius: 2px 0 0 2px;
  transition: border-color 0.2s;
}
.notify-input::placeholder { color: #2e2e2e; }
.notify-input:focus { border-color: hsl(var(--hue),90%,60%); }
.notify-btn {
  background: transparent; border: 1px solid #1e1e1e;
  color: hsl(var(--hue),90%,60%);
  font-family: 'Outfit', sans-serif; font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.6rem 1rem; cursor: pointer; border-radius: 0 2px 2px 0;
  transition: background 0.2s, border-color 0.2s; white-space: nowrap;
  position: relative; overflow: hidden;
}
.notify-btn:hover { background: hsla(var(--hue),90%,60%,0.08); border-color: hsl(var(--hue),90%,60%); }
.notify-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ripple {
  position: absolute; border-radius: 50%;
  background: hsla(var(--hue),90%,60%,0.25);
  transform: scale(0); animation: rippleAnim 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  opacity: 0; animation: revealUp 0.9s cubic-bezier(0.16,1,0.3,1) 1.2s forwards;
}
.social-links { display: flex; gap: 0.3rem; list-style: none; flex-wrap: wrap; }
.social-links a {
  display: flex; align-items: center; gap: 0.45rem;
  color: #3a3a3a; text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.85rem; border: 1px solid #181818; border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer; position: relative; overflow: hidden;
}
.social-links a:hover { color: hsl(var(--hue),90%,60%); border-color: hsla(var(--hue),90%,60%,0.25); background: hsla(var(--hue),90%,60%,0.05); }
.social-links svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.footer-note { font-size: 0.65rem; color: #222; letter-spacing: 0.08em; text-transform: uppercase; }

.toast {
  position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #111; border: 1px solid hsla(var(--hue),90%,60%,0.2);
  color: hsl(var(--hue),90%,60%); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.55rem 1.2rem; border-radius: 2px;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; z-index: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.confetti-piece {
  position: fixed; width: 8px; height: 8px;
  border-radius: 2px; pointer-events: none; z-index: 999;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes revealUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes revealDown { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:translateY(0)} }

/* ── MOBILE LAYOUT ── */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .corner, .grid-lines, #particle-canvas { display: none; }

  /* Blurred colored orbs background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(circle at 20% 30%, hsla(var(--hue), 90%, 60%, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, hsla(calc(var(--hue) + 30), 90%, 60%, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, hsla(calc(var(--hue) - 30), 90%, 60%, 0.1) 0%, transparent 50%);
    filter: blur(60px);
    animation: orbFloat 15s ease-in-out infinite;
  }

  @keyframes orbFloat {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.1) translate(5%, -5%); }
    66% { transform: scale(0.95) translate(-5%, 5%); }
  }

  .mobile-page {
    position: relative; z-index: 4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
  }

  .mobile-card {
    background: rgba(15,15,15,0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem 1.2rem;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    animation: cardFadeIn 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
  }

  @keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .mobile-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    text-align: center;
  }

  .mobile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(var(--hue),90%,60%);
  }

  .mobile-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    transition: opacity 0.3s;
  }

  .mobile-tagline {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.1;
    text-align: center;
    color: var(--text);
  }

  .mobile-tagline .accent-word {
    font-style: italic;
    background: linear-gradient(90deg,
      hsl(var(--hue),90%,60%),
      hsl(calc(var(--hue) + 60),90%,60%),
      hsl(calc(var(--hue) + 120),90%,60%),
      hsl(calc(var(--hue) + 180),90%,60%),
      hsl(calc(var(--hue) + 240),90%,60%),
      hsl(calc(var(--hue) + 300),90%,60%),
      hsl(calc(var(--hue) + 360),90%,60%)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradientSlide 2s linear infinite;
  }

  .mobile-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6a6a6a;
    text-align: center;
  }

  .mobile-notify {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .mobile-notify .notify-input {
    border-right: 1px solid #1e1e1e;
    border-radius: 2px;
    text-align: center;
  }

  .mobile-notify .notify-btn {
    border-radius: 2px;
    padding: 0.7rem 1rem;
  }

  .mobile-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .year-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--hue),90%,60%);
    line-height: 1;
  }

  .year-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
  }

  .mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #181818;
    border-radius: 50%;
    color: #3a3a3a;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .mobile-social a:hover {
    color: hsl(var(--hue),90%,60%);
    border-color: hsla(var(--hue),90%,60%,0.3);
    background: hsla(var(--hue),90%,60%,0.08);
  }

  .mobile-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .mobile-footer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.65rem;
    color: #222;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}
