/* ===== ORIGIN GLOBAL STYLESHEET ===== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #5C73B6;
  --accent-dim: rgba(92, 115, 182, 0.15);
  --accent-glow: rgba(92, 115, 182, 0.4);
  --bg: #000000;
  --bg-1: #050505;
  --bg-2: #0A0A0A;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(92, 115, 182, 0.35);
  --text-primary: #F0F0F0;
  --text-muted: #A0A0A0;
  --text-dim: #606060;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 70px;
  --radius: 14px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded {
  opacity: 1;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-1);
}
::-webkit-scrollbar-thumb {
  background: rgba(92, 115, 182, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== TEXT SELECTION ===== */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ===== AMBIENT BACKGROUND ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(92, 115, 182, 0.04) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite alternate;
  border-radius: 50%;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(92, 115, 182, 0.03) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite alternate-reverse;
  border-radius: 50%;
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.15) translate(2%, 3%); opacity: 1; }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}

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

.nav-logo img {
  height: 30px;
  display: block;
  filter: brightness(1);
  transition: filter var(--transition);
}
.nav-logo img:hover { filter: brightness(1.2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-discord {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition);
}
.nav-discord:hover { color: var(--text-primary); }
.nav-discord svg { width: 16px; height: 16px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(92, 115, 182, 0.3), 0 0 40px rgba(92, 115, 182, 0.1);
}

.btn-primary:hover {
  background: #6a84cc;
  box-shadow: 0 0 30px rgba(92, 115, 182, 0.5), 0 0 60px rgba(92, 115, 182, 0.2);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(92, 115, 182, 0.3);
  background: rgba(92, 115, 182, 0.06);
  color: #fff;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  background: none;
  border: none;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.04); }
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 99;
  padding: 20px 24px 30px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 12px 0;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

/* Mouse glow effect on cards */
.glass-card .card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
}

.glass-card:hover .card-glow {
  opacity: 1;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== DIVIDER ===== */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin: 24px 0;
}

.divider-center { margin: 24px auto; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px;
  background: rgba(5,5,5,0.8);
  position: relative;
  z-index: 1;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--text-muted); }
.footer-links a svg { width: 14px; height: 14px; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ===== HERO SECTION (index.html) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92, 115, 182, 0.08);
  border: 1px solid rgba(92, 115, 182, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.hero-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 900px;
  width: 100%;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(92, 115, 182, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(92, 115, 182, 0.15);
  box-shadow: 0 0 80px rgba(92, 115, 182, 0.15), 0 40px 80px rgba(0,0,0,0.5);
  display: block;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-1);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.about-section .section-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.feature-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(92, 115, 182, 0.1);
  border: 1px solid rgba(92, 115, 182, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PRICING GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 60px;
}

.pricing-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-card.featured {
  border-color: rgba(92, 115, 182, 0.5) !important;
  box-shadow: 0 0 60px rgba(92, 115, 182, 0.12), inset 0 0 60px rgba(92, 115, 182, 0.03);
  transform: scale(1.04);
  z-index: 1;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.pricing-tier {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 1.4rem;
  vertical-align: top;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-cycle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.pricing-divider {
  height: 1px;
  background: var(--glass-border);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(92, 115, 182, 0.2);
}

.faq-item.open {
  border-color: rgba(92, 115, 182, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.faq-question:hover { color: #fff; }

.faq-icon {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(92, 115, 182, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--accent);
}

.faq-item.open .faq-icon {
  background: rgba(92, 115, 182, 0.15);
  transform: rotate(45deg);
}

.faq-icon svg {
  width: 10px;
  height: 10px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

/* ===== LEGAL TABS ===== */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-top: 60px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-tab {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-tab:hover {
  color: var(--text-primary);
  border-color: rgba(92, 115, 182, 0.25);
  background: rgba(92, 115, 182, 0.04);
}

.legal-tab.active {
  color: var(--text-primary);
  border-color: rgba(92, 115, 182, 0.4);
  background: rgba(92, 115, 182, 0.07);
}

.legal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 44px;
}

.legal-doc { display: none; }
.legal-doc.active { display: block; }

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.legal-doc h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 14px;
}

.legal-doc p, .legal-doc li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-doc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-doc ul li {
  padding-left: 18px;
  position: relative;
}

.legal-doc ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.legal-doc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-doc hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 28px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-content { padding: 30px 24px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 70px 20px; }
  .page-hero { padding: 140px 20px 60px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.03em; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
}
