/* ==========================================================================
   KGICL Goodnews Solar — coming soon holding page
   ========================================================================== */

/* --- Fonts (self-hosted, latin subset only) ---------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens ------------------------------------------------------ */

:root {
  /* Brand */
  --red: #e30613;
  --red-deep: #b1040e;
  --red-soft: #ff4d57;
  --white: #fff;
  --black: #0a0a0b;
  --ink-2: #121214;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.35);

  /* Accent: warm "sun" amber, used sparingly */
  --amber: #ffb020;

  /* Text */
  --text: #fff;
  --text-muted: #b8b8bd;

  /* Shape and rhythm */
  --radius: 14px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --maxw: 1120px;

  /* Pointer glow position (JS-updated) */
  --mx: 50%;
  --my: 50%;

  color-scheme: dark;
}

/* --- Base --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Background layers -------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* amber "sun" glow, bottom-right */
    radial-gradient(
      560px circle at 88% 92%,
      rgba(255, 176, 32, 0.1),
      transparent 65%
    ),
    /* red glow, top-left */
    radial-gradient(
      900px circle at 20% 15%,
      rgba(227, 6, 19, 0.3),
      transparent 60%
    );
}

/* dot grid, masked so it fades towards the edges */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.055) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    #000 30%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    #000 30%,
    transparent 100%
  );
}

/* hairline frame, large screens only */
.bg::after {
  content: "";
  position: fixed;
  inset: 16px;
  border: 1px solid var(--line);
}

@media (max-width: 899.98px) {
  .bg::after {
    display: none;
  }
}

/* pointer glow (position set by JS, only shown for fine pointers) */
.pointer-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    500px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
}

@media (pointer: fine) {
  .pointer-glow {
    opacity: 1;
  }
}

/* --- Layout ------------------------------------------------------------- */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-4) var(--space-2) var(--space-2);
}

.main {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  flex: 1;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

@media (min-width: 900px) {
  .shell {
    padding: var(--space-4) var(--space-3) var(--space-3);
  }

  .main {
    grid-template-columns: 55% 1fr;
    gap: var(--space-5);
  }

  .copy {
    align-items: flex-start;
    text-align: left;
    gap: var(--space-3);
  }

  .logo {
    order: 2;
  }
}

/* --- Typography --------------------------------------------------------- */

.headline {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0;
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.rule {
  width: 48px;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: var(--amber);
}

.hours {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --- Status badge ------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-out infinite;
}

/* --- Chips -------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .chips {
    justify-content: flex-start;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

@media (min-width: 900px) {
  .ctas {
    flex-direction: row;
    width: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn__icon {
  flex: none;
}

.btn--primary {
  border: 1px solid var(--red);
  background: var(--red);
}

.btn--primary:hover {
  border-color: var(--red-deep);
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.35);
}

.btn--primary:active {
  transform: none;
}

.btn--secondary {
  border: 1px solid var(--line-strong);
  background: transparent;
}

.btn--secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* --- Logo --------------------------------------------------------------- */

.logo {
  position: relative;
  order: -1;
  width: min(200px, 56vw);
  margin: 0 auto;
  aspect-ratio: 1;
}

@media (min-width: 900px) {
  .logo {
    width: clamp(420px, 40vw, 480px);
    margin: 0 0 0 auto;
  }
}

/* soft red radial glow behind the logo */
.logo::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(227, 6, 19, 0.38),
    transparent 65%
  );
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

.logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.logo__ring {
  will-change: transform;
  animation: spin 120s linear infinite;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

@media (min-width: 900px) {
  .footer {
    text-align: left;
  }
}

.footer p {
  margin: 0.25rem 0;
}

/* --- 404 ---------------------------------------------------------------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  padding: var(--space-4) var(--space-2);
  text-align: center;
}

.notfound .lede {
  max-width: 32em;
}

/* --- Motion ------------------------------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow-pulse {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.badge,
.headline,
.rule,
.lede,
.chips,
.ctas,
.hours {
  animation: fade-up 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.headline {
  animation-delay: 70ms;
}

.rule,
.lede {
  animation-delay: 140ms;
}

.chips {
  animation-delay: 210ms;
}

.ctas,
.hours {
  animation-delay: 280ms;
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .pointer-glow {
    opacity: 0;
  }

  .logo__ring,
  .logo::before,
  .badge__dot::after,
  .badge,
  .headline,
  .rule,
  .lede,
  .chips,
  .ctas,
  .hours {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}
