/* ==========================================================================
   Dark Weather Studios — shared stylesheet
   Single source of truth for branding across all pages.
   ========================================================================== */

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

:root {
  color-scheme: dark;
  --ink: #f3f2eb;
  --muted: #a4a69e;
  --surface: #171a17;
  --line: #30352f;
  --accent: #c3f17b;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 12%, rgb(103 133 79 / 14%), transparent 34rem),
    #111311;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* --- Header / brand / nav --------------------------------------------------- */

header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(243 242 235 / 10%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(195 241 123 / 55%);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

nav a {
  position: relative;
  text-decoration: none;
  transition: color 220ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: 555px;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 96px;
  animation: rise-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero--compact {
  min-height: 0;
  justify-content: flex-start;
  padding: 80px 0 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  font-weight: 550;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

h1 span {
  color: var(--accent);
}

.intro {
  max-width: 480px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.intro--wide {
  max-width: 640px;
}

.app-name {
  color: var(--accent);
  font-weight: 650;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 34px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.hero-link span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 320ms ease;
}

.hero-link:hover span {
  transform: translateY(4px);
  border-color: var(--accent);
}

/* --- Sections ---------------------------------------------------------------- */

.services {
  padding: 30px 0 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.section-heading--spaced {
  margin-top: 70px;
}

.section-heading p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* --- Cards (services + donations) -------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 70%), var(--surface);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 420ms ease, box-shadow 420ms ease;
  animation: fade-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.service-card::before {
  position: absolute;
  top: -100px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--card-glow, rgb(195 241 123 / 8%));
  content: "";
  filter: blur(55px);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 420ms ease, transform 600ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgb(195 241 123 / 52%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 24%);
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1.25);
}

.service-card > * {
  position: relative;
}

.service-card--software {
  --card-glow: rgb(195 241 123 / 13%);
  animation-delay: 120ms;
}

.service-card--video {
  --card-glow: rgb(124 168 127 / 18%);
  animation-delay: 240ms;
}

.service-card--recommended {
  --card-glow: rgb(195 241 123 / 16%);
  border-color: rgb(195 241 123 / 52%);
}

.service-number {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 48px 0 12px;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.05em;
}

.service-card--tier {
  display: flex;
  min-height: 300px;
  flex-direction: column;
}

.service-card--tier h3 {
  margin-top: 26px;
}

.service-card--tier p {
  flex: 1;
}

.service-card p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-card p.price {
  margin: 4px 0 14px;
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

/* --- Tags & badges ------------------------------------------------------------ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #c2c5bc;
  font-size: 10px;
  transition: border-color 260ms ease, color 260ms ease, transform 260ms ease;
}

.service-card:hover .tags span {
  transform: translateY(-2px);
  border-color: rgb(195 241 123 / 35%);
  color: var(--ink);
}

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

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 260ms ease, opacity 260ms ease, border-color 260ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: #111311;
}

.button--primary:hover {
  opacity: 0.9;
}

.button--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: rgb(195 241 123 / 52%);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* --- Panels, notes & quotes ------------------------------------------------------ */

.panel {
  margin-top: 50px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 70%), var(--surface);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.note {
  max-width: 640px;
  margin-top: 34px;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: rgb(195 241 123 / 5%);
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.quote {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.75;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 10px;
  margin-bottom: 28px;
  padding: 9px 16px;
  border: 1px solid rgb(195 241 123 / 35%);
  border-radius: 99px;
  background: rgb(195 241 123 / 8%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.meta {
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgb(243 242 235 / 10%);
  color: var(--muted);
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--ink);
  text-decoration-color: rgb(195 241 123 / 55%);
  text-underline-offset: 4px;
  transition: color 220ms ease, text-decoration-color 220ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* --- Animations ---------------------------------------------------------------------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Superstar supporter card --- */

.service-card--superstar{
  position:relative;
  overflow:hidden;
}


.service-card--superstar::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid transparent;
  border-radius:4px;
  pointer-events:none;
  transition:all .35s ease;
}

.service-card--superstar:hover{
  border-color:rgb(195 241 123 / 80%);
  box-shadow:
    0 0 0 1px rgb(195 241 123 / 20%),
    0 0 18px rgb(195 241 123 / 18%),
    0 0 40px rgb(195 241 123 / 10%);
}

.service-card--superstar:hover::after{
  border-color:rgb(195 241 123 / 80%);
  animation:superstar-sparkle 2s linear infinite;
}

.superstar-label{
  opacity:0;
  max-height:0;
  overflow:hidden;

  color:var(--accent);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;

  transform:translateY(-8px);

  transition:
      opacity .25s ease,
      transform .25s ease,
      max-height .25s ease;
}

.service-card--superstar:hover .superstar-label{
  opacity:1;
  max-height:40px;
  transform:translateY(0);
}

@keyframes superstar-sparkle {

  0%{
    box-shadow:
      -110px -110px 0 -108px rgba(195,241,123,0),
      110px 110px 0 -108px rgba(195,241,123,0);
  }

  25%{
    box-shadow:
      -110px -110px 0 -103px rgba(195,241,123,.9),
      110px 110px 0 -108px rgba(195,241,123,0);
  }

  50%{
    box-shadow:
      -110px -110px 0 -108px rgba(195,241,123,0),
      110px 110px 0 -103px rgba(195,241,123,.9);
  }

  75%{
    box-shadow:
      -110px 110px 0 -103px rgba(195,241,123,.9),
      110px -110px 0 -108px rgba(195,241,123,0);
  }

  100%{
    box-shadow:
      -110px 110px 0 -108px rgba(195,241,123,0),
      110px -110px 0 -103px rgba(195,241,123,.9);
  }

}

/* --- Responsive ------------------------------------------------------------------------ */

@media (max-width: 640px) {
  .page {
    width: min(100% - 36px, 480px);
  }

  header {
    min-height: 72px;
  }

  nav {
    gap: 18px;
    font-size: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 12px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    min-height: 500px;
    padding: 80px 0;
  }

  .hero--compact {
    min-height: 0;
    padding: 60px 0 30px;
  }

  .intro {
    font-size: 15px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .service-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 270px;
    padding: 24px;
  }

  .service-card h3 {
    margin-top: 38px;
  }

  .service-card--tier {
    min-height: 0;
  }

  .service-card--tier h3 {
    margin-top: 22px;
  }

  .services {
    padding-bottom: 70px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
