/*
Theme Name: Banix Coming Soon – Astra Child
Theme URI: https://banix.local
Description: A refined dark glassmorphism Coming Soon landing page for Banix. Requires the Astra parent theme.
Author: Banix
Template: astra
Version: 1.0.0
Text Domain: banix-coming-soon
*/

:root {
  --banix-bg: #030404;
  --banix-text: #f7f6f2;
  --banix-muted: rgba(247, 246, 242, 0.58);
  --banix-line: rgba(255, 255, 255, 0.16);
  --banix-glass: rgba(255, 255, 255, 0.055);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--banix-bg); }

body.banix-coming-soon {
  overflow-x: hidden;
  color: var(--banix-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.banix-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 18% 14%, rgba(119, 126, 126, .16), transparent 29%),
    radial-gradient(circle at 84% 80%, rgba(171, 177, 173, .11), transparent 32%),
    linear-gradient(145deg, #050606 0%, #020303 52%, #080909 100%);
}

.banix-page::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -3;
  background: conic-gradient(from 20deg, transparent 0 14%, rgba(152, 163, 160, .09) 22%, transparent 32% 58%, rgba(255,255,255,.06) 68%, transparent 78%);
  animation: banix-aurora 22s linear infinite;
  pointer-events: none;
}

.banix-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

.banix-orb { position: absolute; z-index: -1; border-radius: 999px; filter: blur(2px); opacity: .6; will-change: transform; }
.banix-orb--one { top: -180px; right: -140px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 120px rgba(255,255,255,.035), 0 0 90px rgba(255,255,255,.025); animation: banix-orbit-one 14s ease-in-out infinite alternate; }
.banix-orb--two { bottom: -90px; left: -120px; width: 270px; height: 270px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); animation: banix-orbit-two 11s ease-in-out infinite alternate; }

.banix-particle { position: absolute; z-index: -1; width: var(--size); height: var(--size); left: var(--x); bottom: -20px; border-radius: 50%; background: rgba(255,255,255,var(--alpha)); box-shadow: 0 0 12px rgba(255,255,255,.35); animation: banix-particle-rise var(--duration) linear var(--delay) infinite; pointer-events: none; }

.banix-card {
  width: min(760px, 100%);
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
  border: 1px solid var(--banix-line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 30px 100px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  will-change: transform;
  animation: banix-rise 1.15s cubic-bezier(.16,1,.3,1) both, banix-float 6s ease-in-out 1.2s infinite;
  transition: transform .18s ease-out;
}

.banix-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--glow-angle, 0deg), transparent 10%, rgba(255,255,255,.72), transparent 28% 70%, rgba(255,255,255,.24), transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: banix-border-spin 7s linear infinite;
  pointer-events: none;
}

.banix-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,.105), transparent 58%);
  pointer-events: none;
}

.banix-logo { display: block; width: clamp(180px, 30vw, 270px); height: auto; margin: -12px auto 14px; object-fit: contain; animation: banix-logo-in 1.35s cubic-bezier(.16,1,.3,1) .15s both, banix-logo-glow 4s ease-in-out 1.5s infinite; }

.banix-kicker { margin: 0 0 15px; color: var(--banix-muted); font-size: 11px; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; animation: banix-reveal-up .9s cubic-bezier(.16,1,.3,1) .45s both; }

.banix-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 8.2vw, 82px); font-weight: 400; line-height: .95; letter-spacing: -.04em; animation: banix-title-in 1s cubic-bezier(.16,1,.3,1) .58s both; }
.banix-title em { display: block; margin-top: 13px; color: rgba(247,246,242,.7); font-size: .36em; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }

.banix-rule { width: 46px; height: 1px; margin: 28px auto; border: 0; background: linear-gradient(90deg, transparent, #fff, transparent); animation: banix-rule-in .9s cubic-bezier(.16,1,.3,1) .72s both, banix-rule-shine 3s ease-in-out 1.7s infinite; }
.banix-copy { max-width: 470px; margin: 0 auto 30px; color: var(--banix-muted); font-size: clamp(14px, 2vw, 16px); line-height: 1.8; animation: banix-reveal-up .9s cubic-bezier(.16,1,.3,1) .82s both; }

.banix-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; direction: ltr; }
.banix-time { padding: 19px 8px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(0,0,0,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); animation: banix-time-in .8s cubic-bezier(.16,1,.3,1) both; transition: border-color .35s ease, background .35s ease, transform .35s ease; }
.banix-time:nth-child(1) { animation-delay: .94s; }
.banix-time:nth-child(2) { animation-delay: 1.02s; }
.banix-time:nth-child(3) { animation-delay: 1.1s; }
.banix-time:nth-child(4) { animation-delay: 1.18s; }
.banix-time:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.055); }
.banix-time.is-ticking strong { animation: banix-number-tick .44s cubic-bezier(.2,.8,.2,1); }
.banix-time strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 5vw, 44px); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }
.banix-time span { display: block; margin-top: 9px; color: rgba(255,255,255,.42); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.banix-foot { margin: 25px 0 0; color: rgba(255,255,255,.28); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; animation: banix-reveal-up .8s ease 1.28s both; }

.banix-play { position: absolute; left: 50%; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); padding: 11px 22px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 600 10px/1 Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; cursor: pointer; animation: banix-play-in .8s ease 1.45s both, banix-play-pulse 3.5s ease-in-out 2.2s infinite; transition: color .3s ease, border-color .3s ease, background .3s ease; }
.banix-play span { font: 300 17px/1 Georgia, serif; letter-spacing: 0; }
.banix-play:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); }

.banix-game[hidden] { display: none; }
.banix-game { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.68); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: banix-fade-in .35s ease both; }
.banix-game__panel { position: relative; width: min(410px, 100%); padding: 38px; text-align: center; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: linear-gradient(145deg, rgba(30,32,32,.96), rgba(8,9,9,.96)); box-shadow: 0 40px 120px #000, inset 0 1px 0 rgba(255,255,255,.1); animation: banix-game-in .55s cubic-bezier(.16,1,.3,1) both; }
.banix-game__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.04); font-size: 20px; cursor: pointer; }
.banix-game__eyebrow { margin: 0 0 8px; color: rgba(255,255,255,.4); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; }
.banix-game h2 { margin: 0; color: #fff; font: 400 clamp(32px, 8vw, 46px)/1 Georgia, serif; letter-spacing: -.03em; }
.banix-game__status { min-height: 20px; margin: 14px 0 22px; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.banix-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(286px, 100%); margin: auto; }
.banix-board button { aspect-ratio: 1; color: #f7f6f2; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(0,0,0,.27); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); font: 300 clamp(34px, 9vw, 48px)/1 Georgia, serif; cursor: pointer; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.banix-board button:hover:empty { transform: scale(.94); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }
.banix-board button.is-marked { animation: banix-mark-in .38s cubic-bezier(.16,1,.3,1) both; }
.banix-board button.is-win { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.14); animation: banix-win 1s ease-in-out infinite alternate; }
.banix-restart { margin-top: 22px; padding: 11px 19px; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: transparent; font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }

@keyframes banix-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes banix-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes banix-aurora { to { transform: rotate(360deg); } }
@keyframes banix-orbit-one { to { transform: translate(-70px, 55px) scale(1.15); } }
@keyframes banix-orbit-two { to { transform: translate(90px, -45px) scale(.85); } }
@keyframes banix-particle-rise { 0% { transform: translate3d(0,0,0) scale(.7); opacity: 0; } 12% { opacity: .8; } 88% { opacity: .35; } 100% { transform: translate3d(var(--drift), -115vh, 0) scale(1.2); opacity: 0; } }
@keyframes banix-border-spin { to { --glow-angle: 360deg; } }
@keyframes banix-logo-in { from { opacity: 0; transform: translateY(-14px) scale(.88); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes banix-logo-glow { 0%,100% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 50% { filter: drop-shadow(0 0 14px rgba(255,255,255,.18)); } }
@keyframes banix-reveal-up { from { opacity: 0; transform: translateY(18px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes banix-title-in { from { opacity: 0; transform: translateY(24px) scale(.96); letter-spacing: .05em; filter: blur(8px); } to { opacity: 1; transform: none; letter-spacing: -.04em; filter: blur(0); } }
@keyframes banix-rule-in { from { width: 0; opacity: 0; } to { width: 46px; opacity: 1; } }
@keyframes banix-rule-shine { 0%,100% { opacity: .5; transform: scaleX(.8); } 50% { opacity: 1; transform: scaleX(1.65); box-shadow: 0 0 12px rgba(255,255,255,.45); } }
@keyframes banix-time-in { from { opacity: 0; transform: translateY(22px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes banix-number-tick { 0% { opacity: .25; transform: translateY(-8px) scale(.9); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes banix-play-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes banix-play-pulse { 0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.35); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 25px rgba(255,255,255,.12); } }
@keyframes banix-fade-in { from { opacity: 0; } }
@keyframes banix-game-in { from { opacity: 0; transform: translateY(25px) scale(.92); filter: blur(8px); } }
@keyframes banix-mark-in { from { opacity: 0; transform: scale(.25) rotate(-30deg); filter: blur(5px); } }
@keyframes banix-win { to { transform: translateY(-3px); box-shadow: 0 0 24px rgba(255,255,255,.14); } }

@property --glow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

@media (max-width: 560px) {
  .banix-page { padding: 20px 14px; }
  .banix-card { padding: 36px 18px; border-radius: 24px; }
  .banix-logo { width: 210px; margin-top: -6px; margin-bottom: 12px; }
  .banix-countdown { gap: 7px; }
  .banix-time { padding: 15px 3px 13px; border-radius: 14px; }
  .banix-time span { font-size: 7px; letter-spacing: .12em; }
}

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