/* ==========================================================================
   DarkGhost Agent — Clean, Human, OLED Pitch-Black & Display P3 Stylesheet
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-oled, #000000);
  color: var(--text-primary, #ffffff);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-oled, #000000);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary, #ffffff);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Ambient Subtle Lighting for OLED */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100vw);
  height: 500px;
  background: radial-gradient(circle at 50% 0%, var(--brand-orange-glow) 0%, rgba(86, 112, 71, 0.1) 40%, transparent 75%);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-avatar {
  transform: scale(1.08);
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 96, 0, 0.35));
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange-border);
}

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

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.lab-link:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.lab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-olive);
}

.btn-cta-small {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--brand-orange);
  color: #000000;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 16px var(--brand-orange-glow);
  transition: all 0.2s ease;
}

.btn-cta-small:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-icon-showcase {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-app-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 96, 0, 0.35)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.hero-app-icon:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 42px rgba(255, 96, 0, 0.55)) drop-shadow(0 14px 32px rgba(0, 0, 0, 0.85));
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  max-width: 860px;
}

.highlight-text {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--accent-amber) 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-orange);
  color: #000000;
  box-shadow: 0 0 28px var(--brand-orange-glow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--brand-orange-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(18, 20, 19, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.trust-item strong {
  color: var(--text-primary);
}

.trust-separator {
  color: var(--text-dim);
}

/* ==========================================================================
   Section Basics
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 720px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 46px;
}

/* ==========================================================================
   Benefits Grid
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.benefit-card {
  position: relative;
  background: #090a09;
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
}

.feature-highlight {
  border-color: var(--brand-orange-border);
  background: radial-gradient(circle at 90% 10%, rgba(255, 96, 0, 0.08) 0%, #090a09 60%);
}

.feature-highlight:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), 0 0 28px var(--brand-orange-subtle);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.tag-orange { color: var(--brand-orange); }
.tag-olive { color: var(--brand-olive); }
.tag-amber { color: var(--accent-amber); }
.tag-green { color: var(--accent-green); }
.tag-sage { color: var(--brand-sage); }

.benefit-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-orange { background: var(--brand-orange-subtle); color: var(--brand-orange); border: 1px solid var(--brand-orange-border); }
.icon-olive { background: var(--brand-olive-subtle); color: var(--brand-olive); border: 1px solid var(--brand-olive-border); }
.icon-amber { background: var(--accent-amber-subtle); color: var(--accent-amber); border: 1px solid rgba(209, 158, 61, 0.3); }
.icon-green { background: var(--accent-green-subtle); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-sage { background: var(--brand-sage-subtle); color: var(--brand-sage); border: 1px solid rgba(112, 132, 122, 0.3); }

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.benefit-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Everyday Scenarios Section
   ========================================================================== */
.scenario-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.scenario-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #0d0f0e;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-tab:hover {
  background: #141715;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.scenario-tab.active {
  background: var(--brand-orange-subtle);
  border-color: var(--brand-orange-border);
  color: var(--brand-orange);
  box-shadow: 0 0 20px var(--brand-orange-subtle);
}

.tab-emoji {
  font-size: 1.1rem;
}

/* Scenario Stage Box */
.scenario-stage {
  background: #000000;
  border: 1px solid var(--brand-orange-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--brand-orange-subtle);
}

.stage-window {
  display: flex;
  flex-direction: column;
}

.stage-header {
  padding: 14px 22px;
  background: #0d0f0e;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-window-dots {
  display: flex;
  gap: 6px;
}

.wdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.stage-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stage-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prompt-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.user-avatar {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #202422;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.prompt-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.agent-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.agent-mini-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 96, 0, 0.35));
}

.agent-response-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.agent-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.agent-output {
  background: #080908;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-preview {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border-left: 3px solid var(--brand-orange);
}

.time-hour {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-orange);
  min-width: 65px;
}

.time-act {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.agent-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--brand-olive-subtle);
  border: 1px solid var(--brand-olive-border);
  color: #c5e3ba;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 10px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 820px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #080a09;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-orange-border);
}

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

.faq-icon {
  font-size: 1.4rem;
  color: var(--brand-orange);
  transition: transform 0.25s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 22px 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-banner-section {
  padding: 40px 0 100px 0;
}

.cta-card {
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(255, 96, 0, 0.12) 0%, #080908 70%);
  border: 1px solid var(--brand-orange-border);
  border-radius: 28px;
  padding: 60px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px var(--brand-orange-subtle);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 650px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.cta-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #000000;
  padding: 36px 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
}

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

.p3-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
}

.p3-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .stage-body {
    padding: 20px;
  }

  .agent-box {
    flex-direction: column;
  }

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

  .footer-left, .footer-right {
    align-items: center;
  }
}
