/* NXT Website - Refined per Design Brief */

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

/* ============================================
   COLOR SYSTEM (normalized to design system)
   ============================================ */
:root {
  /* Backgrounds */
  --bg-base: #0d1620;
  --bg-elevated: #141d2b;
  --bg-surface: #1a2332;

  /* Text Hierarchy */
  --text-primary: rgba(255, 255, 255, 0.9);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --text-muted: rgba(255, 255, 255, 0.35);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-emphasis: rgba(255, 255, 255, 0.2);

  /* Accent - neutral (no colored accents per quieter directive) */
  --accent-primary: rgba(255, 255, 255, 0.8);
  --accent-muted: rgba(255, 255, 255, 0.06);
  --accent-border: rgba(255, 255, 255, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 200ms ease;
}

html, body {
  height: 100%;
  background: var(--bg-base);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.scroll-locked {
  overflow: hidden;
}

/* ============================================
   INTERACTION SHELL
   ============================================ */

.interaction-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2rem 120px;
}

/* Section label - "EXPLORE OUR CAPABILITIES" */
.shell-prompt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 80px;
}

/* Viewport container */
.token-viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 60px;
}

/* Token row */
.token-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  position: relative;
  margin-bottom: 32px;
}

/* Token wrapper (contains token + label) */
.token-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Token labels */
.token-label {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

/* Brighten label when token is active */
.token-wrapper:has(.token.is-active) .token-label {
  color: var(--text-secondary);
}

/* Token icon */
.token-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

/* Brighten icon when active - subtle, not dramatic */
.token.is-active .token-icon {
  color: var(--text-primary);
}

/* Position indicator dots */
.position-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border-default);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.dot:hover {
  background: var(--text-tertiary);
}

.dot.is-active {
  background: var(--text-primary);
}

/* Content area — collapsed by default */
.content-area {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 400ms cubic-bezier(0.16, 1, 0.3, 1) 200ms,
    opacity 300ms ease-out 300ms;
}

/* Content area — expanded when active */
.content-area.is-visible {
  max-height: 400px;
  opacity: 1;
  transition:
    max-height 400ms cubic-bezier(0.16, 1, 0.3, 1) 340ms,
    opacity 300ms ease-out 400ms;
}

/* Content slots container */
.content-slots {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 4rem;
  text-align: center;
}

/* Show only the active content */
.content-slots.is-active {
  display: flex;
}

/* Content fade transition wrapper */
.content-slots .slot {
  transition: opacity 150ms ease-out;
}

/* Fade out state for content switching */
.content-slots.is-fading .slot {
  opacity: 0;
}

/* Headline slot - primary text */
.slot-headline {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 16px;
}

/* Details slot - secondary text */
.slot-details {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
}

/* Details list */
.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  display: inline-block;
}

.details-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  text-align: left;
}

.details-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--text-tertiary);
  border-radius: 50%;
}

/* Media slot — diagram container */
.slot-media {
  width: 320px;
  margin-top: 48px;
}

/* Process diagram */
.process-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CTA BUTTON (pill-shaped per brief)
   ============================================ */

/* CTA always visible below content area */
.contact-entry {
  margin-top: 48px;
}

.contact-entry.always-visible {
  opacity: 1;
  visibility: visible;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  border-color: var(--border-emphasis);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   REVIEW PANEL
   ============================================ */

.review-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 300ms ease-out;
  z-index: 100;
}

.review-panel.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.review-panel.is-closing {
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 250ms ease-out;
}

.review-panel-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.review-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.review-context {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 32px;
}

/* Form fields — sequential reveal */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 200ms ease-out,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form-field.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-label {
  display: block;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 14px;
  transition: border-color var(--transition-fast);
}

.field-input:focus {
  outline: none;
  border-color: var(--border-emphasis);
}

.field-input::placeholder {
  color: var(--text-muted);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 8px;
}

.submit-button:hover {
  border-color: var(--border-emphasis);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Confirmation — brief inline message */
.confirmation {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  opacity: 0;
  transition:
    opacity 250ms ease-out,
    transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 101;
}

.confirmation.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   TOKEN SYSTEM (motion LOCKED, styling updated)
   ============================================ */

/* Individual token - now transparent with hairline border */
.token {
  --token-width: 180px;
  --token-height: 110px;

  position: relative;
  width: var(--token-width);
  height: var(--token-height);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;

  /* Default state */
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center center;

  /* Performance hint */
  will-change: transform, opacity;

  /* Hover transition: weighted feel (LOCKED) */
  transition:
    transform 170ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 170ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

/* Accent line — bottom edge, active state only - now subtle */
.token::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--text-tertiary);
  border-radius: 0;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

/* Hover state: gentle lift only */
.token:hover:not(.is-active):not(.is-inactive) {
  transform: translateY(-2px);
  border-color: var(--border-default);
}

/* Inactive tokens: recede when another is active */
.token.is-inactive {
  opacity: 0.5;
  transition:
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 340ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

/* Hover state for inactive tokens */
.token.is-inactive:hover {
  opacity: 0.65;
  border-color: var(--border-default);
}

/* Active token: subtle elevation, no dramatic fill */
.token.is-active {
  z-index: 10;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-emphasis);
  transition:
    transform 300ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 300ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

/* Accent appears after motion completes */
.token.is-active::after {
  opacity: 1;
  transition: opacity 180ms ease-out 200ms;
}

/* Deactivation timing (LOCKED) */
.token.is-deactivating {
  transition:
    transform 270ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 270ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

/* Accent fades immediately on deactivation */
.token.is-deactivating::after {
  opacity: 0;
  transition: opacity 80ms ease-out;
}

/* ============================================
   DIVIDERS (from brief)
   ============================================ */

.divider {
  width: 60px;
  height: 1px;
  background: var(--border-default);
  margin: 80px auto;
}

.divider-full {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 22, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-medium);
}

.site-nav.is-scrolled {
  background: rgba(13, 22, 32, 0.96);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

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

/* ============================================
   SECTIONS (shared)
   ============================================ */

.section {
  padding: 160px 2rem;
}

.section-hero {
  min-height: 100vh;
  padding-top: 100px;
}

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

.section-narrow {
  max-width: 600px;
}

.section-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 80px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

/* Hero headline */
.hero-headline {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  padding-top: 60px;
}

.hero-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   VALUE PROPOSITION (Section 2)
   ============================================ */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 20px;
  color: var(--text-tertiary);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}

.value-description {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

/* ============================================
   PROCESS (Section 3)
   ============================================ */

.process-flow-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  overflow-x: auto;
  padding: 0 20px;
}

.process-flow-diagram {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.process-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 60px;
}

.video-placeholder {
  max-width: 600px;
  margin: 0 auto;
}

.video-placeholder-inner {
  aspect-ratio: 16/9;
  border: 1px dashed var(--border-default);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.video-placeholder-text {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

.video-placeholder-note {
  color: var(--text-muted);
  font-size: 11px;
}

/* ============================================
   HERITAGE (Section 4)
   ============================================ */

.heritage-content {
  text-align: center;
}

.heritage-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.heritage-tagline {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.heritage-link {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.heritage-link:hover {
  text-decoration-color: var(--text-primary);
}

/* ============================================
   SUSTAINABILITY (Section 5)
   ============================================ */

.sustainability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.sustainability-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.sustainability-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--text-tertiary);
  border-radius: 50%;
}

/* ============================================
   CONTACT / CTA (Section 6)
   ============================================ */

.contact-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--border-emphasis);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cta-primary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-tertiary);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cta-secondary:hover {
  border-color: var(--border-emphasis);
  color: var(--text-primary);
}

.contact-info {
  text-align: center;
}

.contact-email {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-note {
  color: var(--text-tertiary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.clock-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 40px 2rem;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-primary {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 12px;
}

.footer-location {
  color: var(--text-muted);
  font-size: 12px;
}

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

.footer-link {
  color: var(--text-tertiary);
  font-size: 12px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-secondary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 500ms ease-out,
    transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.value-item.fade-in:nth-child(1) { transition-delay: 0ms; }
.value-item.fade-in:nth-child(2) { transition-delay: 100ms; }
.value-item.fade-in:nth-child(3) { transition-delay: 200ms; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .section {
    padding: 120px 1.5rem;
  }

  .section-hero {
    padding-top: 100px;
  }

  .hero-headline {
    margin-bottom: 40px;
    padding-top: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .shell-prompt {
    margin-bottom: 48px;
  }

  .token-row {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .token {
    --token-width: 140px;
    --token-height: 85px;
  }

  .token-icon {
    width: 26px;
    height: 26px;
  }

  .token-label {
    font-size: 9px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-flow-diagram {
    min-width: 500px;
  }

  .contact-ctas {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-primary {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .token {
    --token-width: 110px;
    --token-height: 70px;
  }

  .token-icon {
    width: 22px;
    height: 22px;
  }

  .content-slots {
    padding: 40px 1.5rem;
  }

  .slot-media {
    width: 100%;
    max-width: 280px;
  }

}
