/* ========================================
   TERAVIAN DROPS — Stylesheet
   Cathedral / Archive / Signal Gate
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #7A0C0C;
  --red-deep: #520808;
  --red-light: #9A1A1A;
  --gold: #C9A14A;
  --gold-light: #DDB95E;
  --gold-dim: #8A7034;
  --white: #FFFFFF;
  --off-white: #F5F2EE;
  --gray-100: #E8E4E0;
  --gray-200: #C4BFB8;
  --gray-600: #6B6560;
  --gray-800: #2A2420;
  --black: #0A0806;
  --black-warm: #120E0A;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --container-narrow: 800px;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--off-white);
  background: var(--black);
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  color: var(--white);
  box-shadow: 0 0 30px rgba(122, 12, 12, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}

.btn-secondary:hover {
  background: rgba(201, 161, 74, 0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.9rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 8, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 161, 74, 0.1);
  transition: background 0.3s var(--ease-out);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-logo:hover {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-200);
  transition: color 0.3s var(--ease-out);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s var(--ease-out);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center bottom, var(--red-deep) 0%, var(--black-warm) 50%, var(--black) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 80%, rgba(122, 12, 12, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 50% 20%, rgba(201, 161, 74, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-pre {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s 0.3s var(--ease-out) forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s 0.5s var(--ease-out) forwards;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeUp 1s 0.7s var(--ease-out) forwards;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--ease-out) forwards;
}

.hero-text {
  font-size: 0.95rem;
  color: var(--gray-200);
  max-width: 480px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s 1.1s var(--ease-out) forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1.3s var(--ease-out) forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.8s var(--ease-out) forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-pre {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: 0.02em;
}

/* --- Features --- */
.features {
  background: var(--black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(201, 161, 74, 0.1);
  background: rgba(18, 14, 10, 0.5);
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(201, 161, 74, 0.3);
  background: rgba(18, 14, 10, 0.8);
  box-shadow: 0 0 40px rgba(122, 12, 12, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--gray-200);
  line-height: 1.7;
}

/* --- About --- */
.about {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-warm) 50%, var(--black) 100%);
}

.about-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.about-rule {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 40px auto;
}

.about-text p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gray-100);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
  color: var(--gold);
  font-style: italic;
}

/* --- Pricing --- */
.pricing {
  background: var(--black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.pricing-card {
  padding: 48px 32px;
  border: 1px solid rgba(201, 161, 74, 0.12);
  background: rgba(18, 14, 10, 0.4);
  text-align: center;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.pricing-card:hover {
  border-color: rgba(201, 161, 74, 0.25);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(122, 12, 12, 0.15) 0%, rgba(18, 14, 10, 0.6) 100%);
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(122, 12, 12, 0.15), 0 0 30px rgba(201, 161, 74, 0.08);
}

.pricing-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 20px;
}

.pricing-tier {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-600);
}

.pricing-features {
  margin-bottom: 40px;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--gray-200);
  border-bottom: 1px solid rgba(201, 161, 74, 0.06);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

.pricing-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* --- Testimonials --- */
.testimonials {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-warm) 100%);
}

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

.testimonial-card {
  padding: 40px 32px;
  border: 1px solid rgba(201, 161, 74, 0.08);
  background: rgba(18, 14, 10, 0.3);
  text-align: center;
}

.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--gray-100);
  margin-bottom: 20px;
}

.testimonial-card cite {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* --- Proof / Drop Zero --- */
.proof {
  background: var(--black);
  border-top: 1px solid rgba(201, 161, 74, 0.08);
  border-bottom: 1px solid rgba(201, 161, 74, 0.08);
}

.proof-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.proof-text {
  font-size: 1rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 24px;
}

.proof-includes {
  margin-bottom: 32px;
}

.proof-includes li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-200);
  padding-left: 20px;
  position: relative;
}

.proof-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

.proof-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}

.proof-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.proof-artifact {
  width: 260px;
  height: 340px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(122, 12, 12, 0.12) 0%, rgba(10, 8, 6, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  box-shadow: 0 0 60px rgba(122, 12, 12, 0.1);
}

.proof-artifact::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 161, 74, 0.15);
  pointer-events: none;
}

.proof-artifact-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.proof-artifact-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.proof-artifact-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- CTA --- */
.cta {
  background: radial-gradient(ellipse at center, var(--red-deep) 0%, var(--black) 70%);
  text-align: center;
  padding: 160px 0;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.3;
}

.cta-text {
  font-size: 1rem;
  color: var(--gray-200);
  margin-bottom: 40px;
}

/* --- Contact --- */
.contact {
  background: var(--black);
  text-align: center;
}

.contact-inner {
  max-width: 500px;
  margin: 0 auto;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--gray-200);
  margin-bottom: 24px;
}

.contact-email {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 161, 74, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease-out);
}

.contact-email:hover {
  border-color: var(--gold);
}

/* --- Footer --- */
.footer {
  background: var(--black-warm);
  border-top: 1px solid rgba(201, 161, 74, 0.08);
  padding: 64px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color 0.3s var(--ease-out);
}

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

.footer-contact a {
  font-size: 0.85rem;
  color: var(--gray-600);
}

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

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 80px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 8, 6, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .proof-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .proof-includes {
    text-align: left;
    max-width: 300px;
    margin: 0 auto 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 240px;
  }

  .cta {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .pricing-card {
    padding: 36px 24px;
  }

  .feature-card {
    padding: 32px 20px;
  }
}
