/* Promise Design System - Steve Jobs & Apple Standard */
:root {
  --bg-primary: #08080A;
  --bg-surface: #111116;
  --bg-card: #16161D;
  --bg-card-hover: #1E1E28;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(232, 168, 72, 0.3);
  --primary-amber: #E8A848;
  --primary-amber-dark: #B57922;
  --amber-glow: rgba(232, 168, 72, 0.35);
  --text-main: #FFFFFF;
  --text-sub: #A0A0AB;
  --text-muted: #6B6B78;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.page-body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #23232C;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-amber);
}

/* Top Frosted Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-crest {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E8A848, #9E6A1B);
  color: #08080A;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--amber-glow);
}

.brand-name {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary-amber) !important;
  color: #08080A !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 0 14px var(--amber-glow);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--amber-glow);
}

/* Hero Section */
.hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 168, 72, 0.1);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-amber);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4DF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #E8A848 0%, #F5C578 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.5;
}

.store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-store.primary {
  background: #E8A848;
  color: #08080A;
  border-color: #E8A848;
  box-shadow: 0 0 24px var(--amber-glow);
}

.btn-store.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px var(--amber-glow);
}

.btn-store:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card);
}

/* Interactive Sacred Seal Simulator */
.seal-simulator-box {
  background: radial-gradient(circle at center, #181822 0%, #0D0D12 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 48px 24px;
  max-width: 580px;
  margin: 0 auto 80px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.seal-simulator-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 168, 72, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.seal-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-amber);
  margin-bottom: 8px;
}

.seal-prompt {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 32px;
}

.seal-btn-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.seal-progress-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.seal-progress-bg {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
  fill: none;
}

.seal-progress-bar {
  stroke: var(--primary-amber);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 0.05s linear;
}

.interactive-seal-button {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2A2A38 0%, #121218 70%);
  border: 2px solid rgba(232, 168, 72, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.interactive-seal-button:active, .interactive-seal-button.pressing {
  transform: scale(0.92);
  border-color: var(--primary-amber);
  box-shadow: 0 0 35px var(--amber-glow), inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.seal-icon-glyph {
  font-size: 26px;
  margin-bottom: 4px;
}

.seal-text-action {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-amber);
  text-transform: uppercase;
}

.seal-hint-text {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 0;
}

.seal-success-modal {
  display: none;
  background: rgba(232, 168, 72, 0.12);
  border: 1px solid var(--primary-amber);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

.seal-success-modal.show {
  display: block;
}

.seal-success-title {
  color: var(--primary-amber);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.seal-success-body {
  font-size: 13px;
  color: #ECECED;
}

/* The Contrast Matrix (The Status Quo vs. Promise) */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .contrast-grid {
    grid-template-columns: 1fr;
  }
}

.contrast-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 36px 30px;
  border: 1px solid var(--border-subtle);
}

.contrast-card.enemy {
  border-color: rgba(255, 80, 80, 0.15);
  background: linear-gradient(180deg, #141113 0%, var(--bg-surface) 100%);
}

.contrast-card.promise {
  border-color: var(--border-glow);
  background: linear-gradient(180deg, #18161A 0%, var(--bg-surface) 100%);
}

.contrast-header {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contrast-card.enemy .contrast-header {
  color: #FF6B6B;
}

.contrast-card.promise .contrast-header {
  color: var(--primary-amber);
}

.contrast-list {
  list-style: none;
}

.contrast-list li {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.contrast-list li strong {
  color: var(--text-main);
  display: block;
}

/* Feature Showcase Chapters */
.chapter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.chapter-row.reverse {
  direction: rtl;
}

.chapter-row.reverse .chapter-text {
  direction: ltr;
}

@media (max-width: 860px) {
  .chapter-row, .chapter-row.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    direction: ltr;
  }
}

.chapter-text h3 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.chapter-text p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 24px;
}

.chapter-bullets {
  list-style: none;
}

.chapter-bullets li {
  font-size: 14px;
  color: #C4C4CF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-amber);
}

.phone-mockup-frame {
  background: #000000;
  border: 8px solid #23232C;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(232, 168, 72, 0.08);
  max-width: 340px;
  margin: 0 auto;
  overflow: hidden;
}

.phone-mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

/* Verification Callout */
.verify-callout-banner {
  background: linear-gradient(135deg, #18151D 0%, #0F0E13 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 50px 32px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.verify-callout-banner h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}

.verify-callout-banner p {
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
}

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

.faq-icon {
  font-size: 20px;
  color: var(--primary-amber);
  transition: transform 0.2s;
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

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

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050507;
  padding: 40px 24px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Legacy Witness Modal Compatibility */
.witness-modal-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.witness-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  padding: 36px 32px;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.witness-container .brand-color {
  color: var(--primary-amber);
}

.witness-container .promise-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: left;
  border: 1px solid var(--border-subtle);
}

.witness-container .promisor {
  font-size: 12px;
  color: var(--primary-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.witness-container .promise-text {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.5;
}

.witness-container button {
  background: var(--primary-amber);
  color: #08080A;
  border: none;
  padding: 16px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.witness-container button:hover {
  opacity: 0.9;
}

.witness-container button:disabled {
  background: #33333F;
  color: #777785;
  cursor: not-allowed;
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary-amber);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.hidden { display: none !important; }

/* Soundscape Interactive Player */
.soundscape-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.sound-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.sound-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.sound-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sound-card-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.sound-play-btn {
  background: rgba(232, 168, 72, 0.12);
  color: var(--primary-amber);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  text-transform: none;
  letter-spacing: 0;
}

.sound-play-btn:hover {
  background: var(--primary-amber);
  color: #08080A;
}

.sound-play-btn.playing {
  background: var(--primary-amber);
  color: #08080A;
}

/* Badge Realms */
.badge-realm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 168, 72, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--primary-amber);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.double-phone-frame {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.double-phone-frame .phone-mockup-frame {
  max-width: 250px;
}
