/**
 * NORA Website - Section Styles
 * Hero, features, pricing, and other page-specific sections
 */

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(80px + var(--space-2xl)); /* Account for fixed nav */
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  color: var(--gold-bright);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: var(--text-hero);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  display: block;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 50%, var(--accent-amethyst) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}

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

.hero-orb {
  position: relative;
  width: clamp(280px, 50vw, 400px);
  aspect-ratio: 1;
}

.hero-orb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 60px var(--gold-glow));
  animation: orb-float 6s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-orb-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at center,
    var(--gold-glow) 0%,
    transparent 70%
  );
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========================================
   Oracle Section (Mae Mhor Intro)
   ======================================== */

.oracle-section {
  position: relative;
}

.oracle-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.oracle-portrait {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.oracle-portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-lg), 0 0 40px var(--gold-glow);
}

.oracle-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oracle-portrait-decoration {
  position: absolute;
  inset: -30px;
  border: 1px solid var(--border-gold);
  border-radius: calc(var(--radius-xl) + 30px);
  opacity: 0.3;
  animation: decoration-rotate 30s linear infinite;
}

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

.oracle-text {
  text-align: center;
}

.oracle-quote {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: var(--space-lg);
  position: relative;
  padding: 0 var(--space-lg);
}

.oracle-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 3em;
  color: var(--gold-glow);
  line-height: 1;
}

.oracle-bio {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ========================================
   Reading Modes Section
   ======================================== */

.modes-section {
  position: relative;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Horizontal scroll on mobile */
.modes-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--container-padding);
  padding-bottom: var(--space-md);
  margin: 0 calc(-1 * var(--container-padding));
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  -webkit-overflow-scrolling: touch;
}

.modes-scroll::-webkit-scrollbar {
  height: 4px;
}

.modes-scroll::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 2px;
}

.modes-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 2px;
}

.modes-scroll > .mode-card {
  flex: 0 0 85%;
  max-width: 320px;
  scroll-snap-align: start;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-section {
  position: relative;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.how-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.how-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--bg-void);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

.how-step-content {
  flex: 1;
  padding-top: var(--space-sm);
}

.how-step-title {
  font-size: var(--text-title);
  margin-bottom: var(--space-sm);
}

.how-step-text {
  color: var(--text-soft);
  line-height: var(--leading-relaxed);
}

.how-step-qr {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  background: #fff;
  padding: var(--space-xs);
}

/* Timeline connector */
.how-steps::before {
  content: '';
  position: absolute;
  left: calc(var(--container-padding) + 28px);
  top: var(--space-3xl);
  bottom: var(--space-3xl);
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--gold-primary),
    var(--accent-amethyst),
    var(--accent-aurora)
  );
  opacity: 0.3;
}

/* ========================================
   Daily Charms Section
   ======================================== */

.charms-section {
  position: relative;
}

.charms-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.charms-text {
  order: 2;
}

.charms-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.charms-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.charms-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-glow);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.charms-feature-text {
  flex: 1;
}

.charms-feature-text strong {
  display: block;
  color: var(--text-radiant);
  margin-bottom: var(--space-xs);
}

.charms-feature-text span {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.charms-preview {
  order: 1;
  position: relative;
}

.charms-mockup {
  max-width: 320px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Karma Routes Section
   ======================================== */

.karma-section {
  position: relative;
}

.karma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.karma-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-default);
}

.karma-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.karma-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-nebula));
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.karma-card-title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--text-radiant);
  margin-bottom: var(--space-xs);
}

.karma-card-subtitle {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* ========================================
   Trust Section
   ======================================== */

.trust-section {
  background: var(--bg-nebula);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.trust-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  color: var(--accent-sage);
  font-size: 1.25rem;
}

.trust-item-text h4 {
  font-size: var(--text-body);
  color: var(--text-radiant);
  margin-bottom: var(--space-xs);
}

.trust-item-text p {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* ========================================
   Final CTA Section
   ======================================== */

.cta-section {
  position: relative;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-orb {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-xl);
}

.cta-orb-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--gold-bright),
    var(--gold-deep) 50%,
    var(--accent-amethyst)
  );
  border-radius: 50%;
  box-shadow: 0 0 80px var(--gold-glow);
  animation: cta-orb-glow 3s ease-in-out infinite;
}

@keyframes cta-orb-glow {
  0%, 100% {
    box-shadow: 0 0 60px var(--gold-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 100px rgba(242, 201, 76, 0.5);
    transform: scale(1.05);
  }
}

.cta-title {
  font-size: var(--text-display);
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: var(--text-body);
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing-section {
  position: relative;
}

.pricing-table {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-row-name span {
  font-size: 1.25rem;
}

.pricing-row-price {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--gold-primary);
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
  position: relative;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--text-radiant);
  transition: background var(--duration-fast) var(--ease-default);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item.is-open .faq-question-icon {
  transform: rotate(45deg);
}

/* Smooth animated accordion */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 var(--space-lg);
  color: var(--text-soft);
  line-height: var(--leading-relaxed);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.is-open .faq-answer-inner {
  padding-bottom: var(--space-lg);
}

/* ========================================
   About Page Sections
   ======================================== */

.about-hero {
  text-align: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-soft);
  line-height: var(--leading-relaxed);
}

.about-content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-radiant);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
  padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  font-size: var(--text-headline);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-title);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-soft);
  line-height: var(--leading-relaxed);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-soft);
  list-style: disc;
}

.legal-content a {
  color: var(--accent-aurora);
  text-decoration: underline;
}

.legal-last-updated {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ========================================
   Reading Modes Page
   ======================================== */

.modes-hero {
  text-align: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-cosmos) 0%, var(--bg-nebula) 100%);
}

.modes-hero .section-kicker {
  margin-bottom: var(--space-md);
}

.modes-hero .section-subtitle {
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

/* ========================================
   Daily Charms Page
   ======================================== */

.charms-hero {
  text-align: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-cosmos) 0%, var(--bg-nebula) 100%);
}

.charms-hero .section-kicker {
  margin-bottom: var(--space-md);
}

.charms-hero .section-subtitle {
  max-width: 500px;
  margin: var(--space-md) auto 0;
}

/* Charms Pricing */
.charms-pricing {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
}

.charms-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.charms-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  color: var(--gold-primary);
}

.charms-price-unit {
  font-size: var(--text-body);
  color: var(--text-soft);
}

/* Charms Preview Card */
.charms-preview-card {
  max-width: 340px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px var(--gold-glow);
}

.charms-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--gold-glow), rgba(167, 139, 250, 0.2));
  border-bottom: 1px solid var(--border-subtle);
}

.charms-preview-time {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text-radiant);
}

.charms-preview-badge {
  font-size: var(--text-caption);
  padding: var(--space-xs) var(--space-sm);
  background: var(--gold-primary);
  color: var(--bg-void);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
}

.charms-preview-content {
  padding: var(--space-lg);
}

.charms-preview-greeting {
  font-size: var(--text-body);
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.charms-preview-message {
  font-size: var(--text-body);
  color: var(--text-soft);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.charms-preview-lucky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.charms-preview-lucky-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.charms-preview-lucky-item .label {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.charms-preview-lucky-item .value {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text-radiant);
}

/* ========================================
   Help Page Specific
   ======================================== */

.help-hero {
  text-align: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-cosmos) 0%, var(--bg-nebula) 100%);
}

.arcane-card {
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 40px var(--gold-glow);
}

.arcane-card-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.arcane-card-title {
  font-size: var(--text-headline);
  margin-bottom: var(--space-md);
}

.arcane-card-description {
  color: var(--text-soft);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}
