/* =============================================================
   CacheMash — Coming Soon page
   Layout tokens shared with the main landing page.
   ============================================================= */

:root {
  --c-bg:          #000;
  --c-text:        #fafafa;
  --c-text-muted:  #808285;
  --c-purple:      #a16bff;
  --c-purple-2:    #8071ff;
  --c-blue:        #4a7bff;
  --c-dark-2:      #1b1a1a;

  --c-card-border: rgba(76, 122, 254, 0.30);
  --c-card-bg-a:   rgba(76, 122, 254, 0.12);
  --c-card-bg-b:   rgba(160, 107, 255, 0.12);

  --f-display: 'Urbanist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-body:    'Poppins',  system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --shadow-card: 0 4px 50px rgba(76, 122, 254, 0.20);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--c-purple) #0a0a0a;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-purple) 0%, var(--c-purple-2) 50%, var(--c-blue) 100%);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-corner { background: #0a0a0a; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Purple grill overlay — same treatment as landing page */
body.page:before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%;
  height: 100%;
  background-image: url(../assets/images/purple-grill.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top;
  z-index: 9999;
  display: block;
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }

.text-gradient {
  background: linear-gradient(0deg, #9B6CFF 32.67%, #5778FE 68.06%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Particles BG ---------- */
#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#particles-bg canvas { display: block; width: 100% !important; height: 100% !important; }

/* ============================================================
   COMING SOON
   ============================================================ */
.coming {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
  overflow: hidden;
}

.coming__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.coming__halo {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 140%);
  max-width: none;
  opacity: 0.85;
}

.coming__content {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.coming__logo { width: 200px; height: auto; }

.coming__eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-purple);
}

.coming__title {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -0.5px;
  font-size: clamp(34px, 7vw, 68px);
}

.coming__sub {
  font-family: var(--f-body);
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--c-text-muted);
  max-width: 540px;
}

/* ---------- Countdown ---------- */
.countdown {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 22px);
  flex-wrap: wrap;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: clamp(64px, 18vw, 120px);
  padding: clamp(14px, 2.5vw, 22px) clamp(8px, 2vw, 18px);
  border-radius: 16px;
  border: 1px solid var(--c-card-border);
  background: linear-gradient(11.78deg, var(--c-card-bg-a) 5.46%, var(--c-card-bg-b) 91.58%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.countdown__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #c9d3ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown__label {
  font-family: var(--f-body);
  font-size: clamp(10px, 1.6vw, 14px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.countdown__sep {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1;
  color: var(--c-purple-2);
  padding-top: clamp(14px, 2.5vw, 22px);
  opacity: 0.6;
}

.countdown__done {
  margin-top: 20px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
}

@media (max-width: 560px) {
  .countdown__sep { display: none; }
  .countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 420px;
  }
  .countdown__unit { min-width: 0; padding: 16px 6px; }
  .countdown__num { font-size: clamp(28px, 9vw, 44px); }
}

/* ============================================================
   SHARED FOOTER (index + legal pages)
   ============================================================ */
.cs-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 28px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cs-footer__inner {
  width: min(1100px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.cs-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.cs-footer__links a {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-text);
  transition: color .2s ease;
}
.cs-footer__links a:hover { color: var(--c-purple); }
.cs-footer__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}
.cs-footer__copy {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-text-muted);
}

@media (max-width: 480px) {
  .cs-footer__sep { display: none; }
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal-nav {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.legal-nav__inner {
  width: min(1100px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav__brand img { width: 150px; height: auto; }
.legal-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: color .2s ease;
}
.legal-nav__back:hover { color: var(--c-purple); }

.legal {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding: 44px 16px 64px;
}
.legal__container { width: min(840px, 100%); margin-inline: auto; }

.legal h1 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-size: clamp(30px, 6vw, 52px);
  margin-bottom: 6px;
}
.legal h5 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(13px, 2vw, 16px);
  color: var(--c-text-muted);
  margin: 0 0 28px;
}
.legal h4 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.3px;
  font-size: clamp(19px, 3vw, 26px);
  margin: 34px 0 12px;
}
.legal p {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.75;
  color: var(--c-text-muted);
  margin: 0 0 14px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}
.legal li {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.legal .white { color: var(--c-text); font-weight: 500; }
.legal a {
  color: var(--c-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.legal a:hover { color: var(--c-purple-2); }
