/* =========================================================
   TARA — Creator Support Page
   Design tokens
   ========================================================= */
:root {
  --bg: #000000;
  --bg-soft: #060606;
  --gold: #D4AF37;
  --gold-soft: #e8cd7a;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --white: #f5f4f0;
  --white-dim: rgba(245, 244, 240, 0.68);
  --white-faint: rgba(245, 244, 240, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(212, 175, 55, 0.45);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   Ambient background layers
   ========================================================= */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, #0a0a0c 0%, #000000 60%);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  box-shadow: 0 0 8px 1px rgba(212, 175, 55, 0.6);
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 30px)); opacity: 0; }
}

main, .site-footer {
  position: relative;
  z-index: 2;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.section-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-top {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bottom {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-mark {
  width: 132px;
  height: 132px;
  margin-bottom: 22px;
  position: relative;
  border-radius: 50%;
  animation: portrait-glow 6s ease-in-out infinite;
  transition: transform 0.6s var(--ease);
}

.portrait-mark:hover {
  transform: scale(1.04);
}

.portrait-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  border-radius: 50%;
  filter: sepia(0.2) saturate(1.18) contrast(1.08) brightness(0.96);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 0.55) 84%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 0.55) 84%, rgba(0, 0, 0, 0) 100%);
  position: relative;
  z-index: 2;
}

.portrait-mark::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(212, 175, 55, 0) 0%,
    rgba(212, 175, 55, 0.5) 18%,
    rgba(212, 175, 55, 0) 40%,
    rgba(212, 175, 55, 0) 60%,
    rgba(212, 175, 55, 0.35) 78%,
    rgba(212, 175, 55, 0) 100%
  );
  animation: portrait-shimmer 8s linear infinite;
  z-index: 1;
  opacity: 0.8;
}

.portrait-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.32);
  pointer-events: none;
  z-index: 3;
}

@keyframes portrait-shimmer {
  to { transform: rotate(360deg); }
}

@keyframes portrait-glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.2)); }
  50% { filter: drop-shadow(0 0 34px rgba(212, 175, 55, 0.36)); }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 14px;
  opacity: 0.85;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.6rem, 12vw, 7.6rem);
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, var(--gold-soft) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(212, 175, 55, 0.16));
  animation: wordmark-glow 6s ease-in-out infinite;
}

@keyframes wordmark-glow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.12)); }
  50% { filter: drop-shadow(0 0 42px rgba(212, 175, 55, 0.26)); }
}

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--white-dim);
  margin: 22px 0 36px;
}

.scroll-cue {
  margin-top: 56px;
  width: 26px;
  height: 42px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color 0.3s var(--ease);
}

.scroll-cue:hover { border-color: var(--gold); }

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* =========================================================
   Glass card base
   ========================================================= */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* =========================================================
   Support option cards (display only — no price tags)
   ========================================================= */
.support-options {
  padding: 60px 0 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.support-card {
  padding: 30px 24px;
  text-align: center;
  font-family: var(--font-body);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 100%;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.support-card:hover,
.support-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 32px rgba(212, 175, 55, 0.12);
  outline: none;
}

.support-card:active {
  transform: translateY(-2px) scale(0.98);
}

.card-icon {
  font-size: 1.9rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.25));
}

.support-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  color: var(--white);
}

.card-tap-hint {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.75;
}

.support-card .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  transform: scale(0);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================
   Payment section
   ========================================================= */
.payment-section {
  padding: 20px 0 140px;
}

.pay-instruction {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-soft);
  letter-spacing: 0.01em;
}

.payment-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 52px 40px;
  text-align: center;
}

.payment-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  margin: 0 0 10px;
  color: var(--white);
}

.payment-sub {
  color: var(--white-faint);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

.amount-label {
  display: block;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.amount-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.amount-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 0 24px rgba(212, 175, 55, 0.15);
}

.amount-field .rupee {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-right: 8px;
  opacity: 0.9;
}

.amount-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  padding: 16px 0;
  width: 100%;
  -moz-appearance: textfield;
}

.amount-field input::-webkit-outer-spin-button,
.amount-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-field input::placeholder {
  color: var(--white-faint);
  font-size: 1.3rem;
  font-weight: 300;
}

.field-error {
  min-height: 22px;
  color: #e2a8a8;
  font-size: 0.85rem;
  text-align: left;
  margin: 8px 2px 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.field-error.visible { opacity: 1; }

.supporter-fields {
  margin-top: 22px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-row input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s var(--ease);
  width: 100%;
}

.input-row input:focus {
  border-color: var(--gold-dim);
}

.input-row input::placeholder {
  color: var(--white-faint);
}

.pay-button {
  position: relative;
  margin-top: 30px;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d787 0%, var(--gold) 45%, #a9822a 100%);
  color: #14110a;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}

.pay-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.4);
  filter: brightness(1.05);
}

.pay-button:active {
  transform: translateY(0) scale(0.985);
}

.pay-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pay-button-spinner {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(20, 17, 10, 0.3);
  border-top-color: #14110a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.pay-button.loading .pay-button-spinner { display: block; }
.pay-button.loading .pay-button-label { opacity: 0.75; }

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

/* ripple */
.pay-button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(20, 17, 10, 0.28);
  transform: scale(0);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}

.razorpay-button-wrap {
  margin: 30px 0 6px;
  display: flex;
  justify-content: center;
  border-radius: 999px;
}

.razorpay-button-wrap form {
  display: flex;
  justify-content: center;
  width: 100%;
}

.razorpay-button-wrap.attention-pulse {
  animation: attention-pulse-ring 1.8s ease-out;
  border-radius: 999px;
}

@keyframes attention-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55); }
  60% { box-shadow: 0 0 0 22px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.secure-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--white-faint);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 48px 24px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 4px 0;
  font-size: 0.88rem;
  color: var(--white-dim);
}

.site-footer .heart {
  color: var(--gold);
}

.site-footer .muted {
  color: var(--white-faint);
  font-size: 0.78rem;
}

.legal-info {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.legal-name {
  color: var(--white-dim) !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}

.legal-line {
  color: var(--white-faint) !important;
  font-size: 0.76rem !important;
}

.legal-line a {
  color: var(--white-faint);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 244, 240, 0.2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.legal-line a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-dim);
}

.legal-links {
  margin-top: 12px !important;
  font-size: 0.76rem !important;
}

.legal-links a {
  color: var(--white-faint);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 244, 240, 0.2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.legal-links a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-dim);
}

.legal-links span {
  color: var(--white-faint);
  opacity: 0.4;
  margin: 0 8px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 560px) {
  /* Hero no longer forces full-screen height on mobile — this is
     the single biggest reduction in scroll distance to the button. */
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 20px 32px;
  }

  .hero-top { align-self: center; margin-bottom: 4px; }
  .portrait-mark { width: 104px; height: 104px; margin-bottom: 14px; }
  .wordmark { margin: 4px 0; }
  .hero-bottom { align-self: center; margin-top: 18px; }
  .tagline { margin: 14px 0 0; }
  .scroll-cue { margin-top: 28px; }

  .support-options { padding: 22px 0 16px; }
  .support-card { padding: 22px 18px; }
  .card-icon { font-size: 1.6rem; }
  .support-card h3 { font-size: 1.05rem; }

  .payment-section { padding: 8px 0 90px; }
  .payment-card { padding: 36px 22px; }
  .pay-instruction { font-size: 1.02rem; }

  .input-row { grid-template-columns: 1fr; }
  .amount-field input { font-size: 1.7rem; }
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
