/* === TOWER STYLES === */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a2e;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --primary: #c9a227;
  --primary-dim: #8b6914;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --border: #2a2a3e;
  --success: #4ade80;
  --danger: #f87171;
  --gradient-start: #c9a227;
  --gradient-end: #ff6b35;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* === NAV === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo {
  color: var(--primary);
  font-size: 1.5rem;
}

.nav-title {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.tower-glyph {
  font-size: 15rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* === SECTIONS === */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
}

/* === APPS GRID === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity 0.3s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-dim);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card h3 {
  font-size: 1.3rem;
  color: var(--text);
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.app-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.app-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--bg-elevated);
  color: var(--text-muted);
  align-self: flex-start;
}

.app-badge-donate {
  background: linear-gradient(135deg, var(--accent), #ff4757);
  color: white;
}

.app-badge-soon {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
}

.app-card-highlight {
  border-color: rgba(255, 107, 53, 0.3);
}

.app-card.preview {
  opacity: 0.7;
  cursor: default;
}

.app-card.preview:hover {
  transform: none;
  border-color: var(--border);
}

/* === ABOUT TEASER === */
.about-teaser {
  background: var(--bg-elevated);
  border-radius: 1rem;
  text-align: center;
  padding: 4rem 2rem;
}

.teaser-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.teaser-content h2 {
  font-size: 2.5rem;
}

.teaser-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-logo {
  color: var(--primary);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* === FORMS === */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* === DROP ZONE === */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: var(--bg-elevated);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(201, 162, 39, 0.05);
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.drop-zone-text {
  color: var(--text-muted);
}

.drop-zone-text strong {
  color: var(--primary);
}

/* === PROGRESS === */
.progress-container {
  margin: 2rem 0;
}

.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 4px;
  transition: width 0.3s;
  width: 0%;
}

.progress-text {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === RESULTS === */
.result-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* === ALERTS === */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--bg);
  padding: 0.3rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-header {
  text-align: center;
}

.pricing-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

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

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* === UTILITY === */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 2.5rem; }
  .tower-glyph { font-size: 8rem; }
  .grid { grid-template-columns: 1fr; }
}

/* === SEALED DOORS (ObscurAI Vault) — extends /styles.css === */
.seal-hero { text-align: center; padding: 3rem 2rem 1rem; }
.seal-hero h1 { font-size: 2.6rem; margin-bottom: 0.6rem; }
.seal-hero .kicker { letter-spacing: 0.25em; font-size: 0.8rem; color: var(--primary); text-transform: uppercase; }
.seal-hero p { color: var(--text-muted); max-width: 720px; margin: 1rem auto 0; font-size: 1.05rem; }
.seal-panel { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; margin-bottom: 1.5rem; }
.seal-panel h2 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.seal-panel p, .seal-panel li { color: var(--text-muted); }
.seal-panel ul { margin-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.proof-class { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--primary-dim); border-radius: 0.3rem; color: var(--primary); font-size: 0.85rem; letter-spacing: 0.03em; }
.claim-figure { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.claim-figure .stat { flex: 1 1 220px; }
.unverified { display: block; margin-top: 0.4rem; font-size: 0.75rem; color: var(--accent); letter-spacing: 0.02em; }
.sealed-list li::marker { content: '▣  '; color: var(--primary-dim); }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.door { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.door.featured { border-color: var(--primary); }
.door-name { font-size: 0.8rem; letter-spacing: 0.3em; color: var(--primary); text-transform: uppercase; }
.door h3 { font-size: 1.3rem; }
.door .door-price { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.door .door-price span { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.door ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.door li { color: var(--text-muted); font-size: 0.95rem; }
.door li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.door .btn { justify-content: center; }
.door-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.fine { color: var(--text-muted); font-size: 0.8rem; }
.notice { border-left: 3px solid var(--accent); background: rgba(255,107,53,0.06); padding: 1rem 1.25rem; border-radius: 0.4rem; color: var(--text); font-size: 0.95rem; }
.steps { counter-reset: step; list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; color: var(--text-muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--primary-dim); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps li strong { color: var(--text); }
.vault-card .app-badge { background: rgba(201,162,39,0.12); color: var(--primary); }
.placeholder { border: 1px dashed var(--accent); color: var(--accent); padding: 1rem; border-radius: 0.5rem; text-align: center; }

/* ===================== EPOCH v2 additions ===================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--bg); padding: 0.5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
.nav-brand { text-decoration: none; color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--primary); }
@media (max-width: 768px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.8rem 1rem; }
  .nav-links { width: 100%; overflow-x: auto; gap: 1.1rem; padding-bottom: 0.3rem; scrollbar-width: none; white-space: nowrap; }
  .nav-links::-webkit-scrollbar { display: none; }
  section { padding: 2.5rem 1.1rem; }
  .seal-hero h1 { font-size: 2rem; }
}
.badge-draft { display: inline-block; background: rgba(255,107,53,0.15); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; letter-spacing: 0.12em; font-size: 0.75rem; padding: 0.3rem 0.8rem; border-radius: 0.3rem; }
.badge-soft { display: inline-block; background: rgba(201,162,39,0.12); color: var(--primary); font-weight: 700; letter-spacing: 0.12em; font-size: 0.72rem; padding: 0.3rem 0.8rem; border-radius: 0.3rem; text-transform: uppercase; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

/* ---------- Landing: Welcome to the New Epoch ---------- */
.epoch-landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,162,39,0.10) 0%, transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(60,20,100,0.35) 0%, transparent 50%), radial-gradient(ellipse at 80% 15%, rgba(20,80,120,0.25) 0%, transparent 50%), var(--bg); position: relative; overflow: hidden; }
.epoch-landing::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 38% 74%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 62%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 20% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 30%, #fff 50%, transparent 51%); }
.epoch-glyph { font-size: 6rem; line-height: 1; color: var(--primary); text-shadow: 0 0 40px rgba(201,162,39,0.45); animation: epochPulse 4s ease-in-out infinite; position: relative; }
@keyframes epochPulse { 0%,100% { opacity: 0.85; } 50% { opacity: 1; text-shadow: 0 0 70px rgba(201,162,39,0.75); } }
.epoch-kicker { margin-top: 1.5rem; letter-spacing: 0.4em; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; position: relative; }
.epoch-title { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 300; letter-spacing: 0.06em; margin: 0.6rem 0 0.4rem; position: relative; }
.epoch-sub { color: var(--text-muted); max-width: 560px; position: relative; }
.epoch-enter { margin-top: 2.5rem; font-size: 1.15rem; padding: 1rem 3rem; letter-spacing: 0.3em; text-transform: uppercase; position: relative; }
.epoch-foot { position: absolute; bottom: 1.2rem; left: 0; right: 0; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.2em; }

/* ---------- Carousel (stacked without JS; snap carousel with JS) ---------- */
.carousel { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 2rem; position: relative; }
.carousel-index { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 0 1.5rem; padding: 0; counter-reset: idx; }
.carousel-index a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 2rem; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; counter-increment: idx; }
.carousel-index a::before { content: counter(idx); color: var(--primary); font-weight: 700; }
.carousel-index a:hover, .carousel-index a[aria-current="true"] { border-color: var(--primary); color: var(--text); background: rgba(201,162,39,0.08); }
.slides { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin: 0; padding: 0; }
.slide { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.4rem; scroll-margin-top: 6rem; position: relative; overflow: hidden; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
.slide-num { font-size: 0.75rem; letter-spacing: 0.3em; color: var(--primary); text-transform: uppercase; }
.slide h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0.4rem 0 0.8rem; }
.slide p { color: var(--text-muted); max-width: 760px; }
.slide .claim-figure .stat { background: var(--bg-elevated); }
.slide-icon { font-size: 2.6rem; float: right; opacity: 0.8; }
.carousel-controls { display: none; }

html.js .carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 1.25rem; outline-offset: 4px; }
html.js .carousel-track::-webkit-scrollbar { display: none; }
html.js .slides { flex-direction: row; gap: 0; }
html.js .slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-height: 430px; }
html.js .carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.carousel-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-status { color: var(--text-muted); font-size: 0.85rem; min-width: 9rem; text-align: center; }
@media (max-width: 768px) { .slide { padding: 1.6rem 1.25rem; } html.js .slide { min-height: 0; } .slide-icon { display: none; } }

/* ---------- Agent grid ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.agent-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.agent-card.placeholder-card { border-style: dashed; opacity: 0.85; }
.agent-card h3 { font-size: 1.2rem; }
.agent-card p { color: var(--text-muted); font-size: 0.95rem; }
.agent-card .price-lines { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; color: var(--text); font-size: 0.92rem; }
.agent-card .price-lines li strong { color: var(--primary); }
.agent-card .door-actions .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
.loader-status { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin-bottom: 1rem; }
