/* Creative Studio Stars — Space theme */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");

:root {
  --deep-space: #000000;
  --cosmic-navy: #0b1220;
  --gold: #f4c95d;
  --orange-gold: #f97316;
  --light-gold: #ffe082;
  --white: #ffffff;
  --muted-gray: #9ca3af;
  --glass-border: rgba(244, 201, 93, 0.35);
  --glass-bg: rgba(11, 18, 32, 0.72);
  --header-height: 0px;
  --max-width: 1100px;
  --dark-blue: #0b2545;
}

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

html {
  scroll-behavior: smooth;
  background: #000000;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--light-gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold);
}

/* Animated starfield */
.stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #000000;
}

/* Site header / banner */
.site-header {
  position: relative;
  width: 100%;
  z-index: 2;
}

.banner-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.banner-wrap img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.home-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(42%, 380px);
  height: 72%;
  z-index: 2;
  border-radius: 4px;
}

.home-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

/* Navigation — hamburger menu */
.site-nav-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0.55rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  background: rgba(244, 201, 93, 0.15);
}

.site-nav li:last-child {
  flex-shrink: 0;
}

.site-nav .donate-nav-link {
  color: #e7ab3e !important;
  font-weight: 600;
}

.site-nav .donate-nav-link:hover,
.site-nav .donate-nav-link[aria-current="page"] {
  color: #e7ab3e !important;
  background: rgba(231, 171, 62, 0.15);
}

/* Main layout */
main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid rgba(244, 201, 93, 0.12);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 24px rgba(244, 201, 93, 0.25);
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--orange-gold), var(--gold));
  border-radius: 2px;
}

/* Glass cards */
.glass-card {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Products */
.product-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  max-width: 720px;
  margin-inline: auto;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.product-name {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.app-icon-link {
  flex-shrink: 0;
  display: inline-block;
  border-radius: 22%;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-icon-link:hover {
  transform: scale(1.04);
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(244, 201, 93, 0.25);
}

.app-icon-link img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.play-store-btn {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.play-store-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.play-store-btn img {
  height: 56px;
  width: auto;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--light-gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.service-card p {
  color: var(--muted-gray);
}

/* Contact section */
.contact-block {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.contact-block p {
  color: var(--muted-gray);
  margin-bottom: 1rem;
}

.contact-block .email-link {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0.5rem 0 1.5rem;
}

/* Standalone page content */
.page-hero {
  padding: 3rem 0 1rem;
  text-align: center;
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted-gray);
  font-size: 1.1rem;
}

.home-page-header {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1rem 0;
  text-align: center;
}

.home-page-title {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 0;
}

.home-page-title::after {
  display: none;
}

.page-section {
  padding: 2rem 0 4rem;
}

.about-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  color: var(--muted-gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Donate page */
.donate-section {
  padding: 3rem 0 4rem;
}

.donate-content {
  max-width: 820px;
  margin: 0 auto;
}

.donate-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.donate-intro {
  margin-bottom: 2rem;
}

.donate-intro p {
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.donate-text {
  margin-top: 2.5rem;
}

.donate-text p {
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1rem;
}

.donate-text strong {
  color: var(--white);
  font-weight: 700;
}

.donate-form {
  margin-top: 2.5rem;
}

.donate-email-wrap {
  max-width: 320px;
  margin: 0 auto 2rem;
}

.donate-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.donate-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.donate-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(11, 37, 69, 0.45);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.donate-form input[type="email"]:focus {
  outline: 2px solid var(--orange-gold);
  outline-offset: 2px;
}

.amount-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.amount-btn {
  flex: 0 0 125px;
  width: 125px;
  height: 125px;
  padding: 0.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.amount-btn:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(244, 201, 93, 0.2);
}

.amount-btn.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 201, 93, 0.35), 0 12px 40px rgba(244, 201, 93, 0.2);
}

.donate-submit {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--orange-gold);
  color: var(--white);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.donate-submit:hover:not(:disabled) {
  background: #ea580c;
  transform: translateY(-1px);
}

.donate-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.donate-error {
  margin-top: 1rem;
  color: #fca5a5;
  min-height: 1.25rem;
  text-align: center;
}

.donate-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted-gray);
  text-align: center;
}

.donate-success-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.donate-success-card p {
  color: var(--muted-gray);
  margin: 1rem 0 1.5rem;
}

.back-home-btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: var(--orange-gold);
  color: var(--white) !important;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
}

.back-home-btn:hover {
  background: #ea580c;
  color: var(--white) !important;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.75rem 1rem 2.25rem;
  border-top: 1px solid rgba(244, 201, 93, 0.35);
  background: #000000;
  color: var(--muted-gray);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.footer-blog-link {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-blog-link:hover,
.footer-blog-link[aria-current="page"] {
  color: var(--light-gold);
}

.footer-copy {
  margin: 0.35rem 0 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal-link:hover {
  color: var(--gold);
}

/* Blog */
.blog-section > .section-title {
  display: none;
}

.blog-section,
.blog-article {
  padding-top: 3rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card-image-link {
  display: block;
  line-height: 0;
}

.blog-card-image-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.blog-card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--gold);
}

.blog-card-title a:hover {
  color: var(--light-gold);
}

.blog-excerpt {
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.blog-read-more {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  background: var(--orange-gold);
  color: var(--white) !important;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
}

.blog-read-more:hover {
  background: #ea580c;
  color: var(--white) !important;
}

.blog-back-link-wrap {
  max-width: 820px;
  margin: 0 auto 1rem;
}

.blog-back-link {
  color: var(--white);
  font-weight: 600;
}

.blog-back-link:hover {
  color: var(--light-gold);
}

.blog-article-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
}

.blog-article-title {
  padding: 1.75rem 1.75rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.blog-article-figure {
  margin: 1.5rem 0 0;
  line-height: 0;
}

.blog-article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article-card > p,
.blog-article-card p {
  padding: 1.25rem 1.75rem 0;
  color: var(--white);
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-article-meta {
  padding: 0.75rem 1.75rem 0;
  color: var(--white);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.9;
}

.blog-article-card h2 {
  padding: 1.75rem 1.75rem 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.blog-article-card h3 {
  padding: 1.25rem 1.75rem 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.blog-article-card ul,
.blog-article-card ol {
  padding: 1.25rem 1.75rem 0 3rem;
  color: var(--white);
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-article-card li + li {
  margin-top: 0.35rem;
}

.blog-article-card table {
  width: calc(100% - 3.5rem);
  margin: 1.25rem 1.75rem 0;
  border-collapse: collapse;
  color: var(--white);
  font-size: 1.05rem;
}

.blog-article-card th,
.blog-article-card td {
  border: 1px solid rgba(244, 201, 93, 0.25);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.blog-article-card strong {
  color: var(--white);
  font-weight: 700;
}

.blog-article-card a {
  color: var(--white);
  text-decoration: underline;
}

.blog-article-card a:hover {
  color: var(--light-gold);
}

.blog-article-card em {
  color: var(--white);
  font-style: italic;
}

.blog-article-tags {
  padding: 1.25rem 1.75rem 0;
  color: var(--light-gold);
  font-size: 0.95rem;
}

.blog-article-card > :last-child {
  padding-bottom: 1.75rem;
}

/* Responsive */
@media (max-width: 640px) {
  .site-nav-panel {
    top: 0.75rem;
    right: 0.75rem;
  }

  .site-nav {
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 1.5rem));
  }

  .amount-btn {
    flex: 0 0 125px;
    width: 125px;
    height: 125px;
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .home-link {
    width: 55%;
    height: 65%;
  }

  section {
    padding: 3rem 0;
  }

  .product-item {
    flex-direction: column;
    text-align: center;
  }

  .product-info {
    align-items: center;
  }

  .app-icon-link img {
    width: 120px;
    height: 120px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
