/*
Theme Name: H9Hub Coming Soon
Theme URI: https://h9hub.com/
Author: H9Hub
Author URI: https://h9hub.com/
Description: A lightweight coming-soon theme for H9Hub that collects emails for the wait list.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: h9hub-coming-soon
Tags: one-column, custom-colors, custom-logo, coming-soon
*/

:root {
  --h9hub-bg: #090c1a;
  --h9hub-overlay: rgba(5, 8, 20, 0.64);
  --h9hub-overlay-strong: rgba(3, 6, 18, 0.82);
  --h9hub-accent: #3f66ff;
  --h9hub-accent-strong: #2953ff;
  --h9hub-accent-soft: rgba(63, 102, 255, 0.45);
  --h9hub-text: #f5f6ff;
  --h9hub-text-muted: rgba(240, 242, 255, 0.72);
  --h9hub-text-faint: rgba(240, 242, 255, 0.55);
  --h9hub-panel: rgba(8, 10, 24, 0.55);
  --h9hub-border: rgba(255, 255, 255, 0.1);
  --h9hub-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--h9hub-font-sans);
  color: var(--h9hub-text);
  background: var(--h9hub-bg);
  line-height: 1.6;
}

main.coming-soon {
  position: relative;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5.5vw, 5rem);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.coming-soon__background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(0, 4, 18, 0.82) 0%, rgba(5, 10, 24, 0.45) 50%, rgba(2, 2, 6, 0.82) 100%),
    radial-gradient(circle at 12% 18%, rgba(107, 141, 255, 0.28), transparent 52%),
    radial-gradient(circle at 88% 86%, rgba(35, 65, 196, 0.32), transparent 55%),
    var(--h9hub-bg-image, none);
  background-size: cover, auto, auto, cover;
  background-position: center, 12% 18%, 88% 86%, center;
  background-repeat: no-repeat;
  filter: saturate(1.1);
  z-index: 0;
}

.coming-soon__loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.coming-soon__loader img {
  width: clamp(70px, 10vw, 98px);
  height: auto;
  animation: h9hub-spin 2.4s linear infinite;
}

.has-loader .coming-soon__loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.is-ready .coming-soon__loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes h9hub-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.coming-soon__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.coming-soon__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.coming-soon__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: clamp(56px, 7vw, 68px);
  height: clamp(56px, 7vw, 68px); */
  width: 150px;
  text-decoration: none;
  color: inherit;
}

.coming-soon__brand-logo {
  max-width: 70%;
  max-height: 70%;
}

.coming-soon__language {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.language-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--h9hub-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-toggle[aria-pressed="true"] {
  background: rgba(63, 102, 255, 0.25);
  color: #ffffff;
}

.language-toggle:focus-visible {
  outline: 2px solid rgba(63, 102, 255, 0.55);
  outline-offset: 2px;
}

.coming-soon__brand-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.coming-soon__layout {
  position: relative;
  display: flex;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: flex-start;
  flex: 1 1 auto;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.coming-soon__layout::before {
  content: "";
  position: absolute;
  top: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 4rem);
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.coming-soon__left,
.coming-soon__right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.coming-soon__left {
  gap: clamp(2rem, 4vw, 3.5rem);
  min-height: 100%;
  position: relative;
}

.countdown {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.countdown__primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.countdown__value--main {
  font-size: clamp(5.8rem, 11vw, 11rem) !important;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 28px rgba(0, 0, 0, 0.45);
}

.countdown__label--primary {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--h9hub-text-faint);
}

.countdown__rule {
  display: inline-block;
  width: clamp(9rem, 18vw, 16rem);
  height: 2px;
  background: var(--h9hub-accent-soft);
}

.countdown__secondary {
  display: flex;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--h9hub-text-muted);
}

.countdown__segment {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.countdown__value {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--h9hub-text);
}

.countdown__label {
  font-size: 0.78rem;
  letter-spacing: 0.45em;
}

.countdown__frame {
  position: absolute;
  left: clamp(0.5rem, 3vw, 2rem);
  bottom: clamp(-2.8rem, -6vw, -2rem);
  width: clamp(200px, 38vw, 280px);
  height: clamp(120px, 22vw, 180px);
  border-radius: 18px;
  border: 2px solid var(--h9hub-accent-soft);
  opacity: 0.75;
}

.coming-soon__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.coming-soon__social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.coming-soon__social-link:hover {
  transform: translateY(-2px);
  border-color: var(--h9hub-accent);
  background: rgba(63, 102, 255, 0.18);
}

.coming-soon__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.coming-soon__right {
  max-width: clamp(360px, 38vw, 460px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.coming-soon__teaser {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--h9hub-text-faint);
}

.coming-soon__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: #f5f7ff;
  color: #070b1d;
  box-shadow: 0 20px 45px rgba(3, 5, 16, 0.35);
}

.coming-soon__badge-title {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.coming-soon__badge-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: rgba(7, 11, 29, 0.6);
  margin-top: 0.35rem;
}

.coming-soon__title {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.coming-soon__lead {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  color: var(--h9hub-text-muted);
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.waitlist__input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(9, 12, 26, 0.6), rgba(9, 12, 26, 0.3));
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist__input-group:focus-within {
  border-color: var(--h9hub-accent);
  box-shadow: 0 0 0 3px rgba(63, 102, 255, 0.25);
}

.waitlist input[type="email"] {
  flex: 1 1 auto;
  border: none;
  background: none;
  color: inherit;
  font-size: 1rem;
  padding: 0.75rem 0;
  min-width: 0;
}

.waitlist input[type="email"]::placeholder {
  color: var(--h9hub-text-faint);
}

.waitlist input[type="email"]:focus {
  outline: none;
}

.waitlist button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--h9hub-accent), var(--h9hub-accent-strong));
  box-shadow: 0 22px 36px rgba(63, 102, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.waitlist button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(63, 102, 255, 0.45);
}

.waitlist button[type="submit"]:focus-visible {
  outline: 3px solid rgba(63, 102, 255, 0.5);
  outline-offset: 3px;
}

.waitlist button[type="submit"] svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.language-visible-text {
  display: inline-block;
  white-space: nowrap;
}

.waitlist__notice {
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(8, 12, 26, 0.6);
  font-size: 0.95rem;
}

.waitlist__notice--success {
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.waitlist__notice--error {
  border-color: rgba(251, 113, 133, 0.55);
  color: #fecdd3;
}

.waitlist__disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: var(--h9hub-text-faint);
}

.coming-soon__footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--h9hub-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: clamp(1.5rem, 4vw, 2rem);
}

.h9hub-footer {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .coming-soon__layout {
    flex-direction: column;
    gap: clamp(2rem, 6vw, 3rem);
  }

  .coming-soon__layout::before {
    display: none;
  }

  .coming-soon__right {
    max-width: 100%;
  }

  .coming-soon__left {
    order: 2;
  }

  .coming-soon__right {
    order: 1;
  }

  .countdown {
    padding-bottom: clamp(3rem, 6vw, 4rem);
  }

  .countdown__frame {
    bottom: clamp(-2rem, -5vw, -1.5rem);
  }

  .coming-soon__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main.coming-soon {
    padding: clamp(1.75rem, 8vw, 2.25rem);
  }

  .coming-soon__brand {
    width: 56px;
    height: 56px;
  }

  .countdown__secondary {
    gap: 1.5rem;
  }

  .countdown__value--main {
    font-size: clamp(4.8rem, 18vw, 6.8rem);
  }

  .countdown__frame {
    width: clamp(170px, 70vw, 220px);
    height: clamp(110px, 42vw, 150px);
  }

  .coming-soon__badge {
    padding: 1rem 1.2rem;
  }
}
