/* ═══════════════════════════════════════
   Zcrafter Landing Page — Styles
   Uses the exact --zc-* design tokens from
   packages/ui/src/index.css
   ═══════════════════════════════════════ */

/* ─── Design Tokens (Dark = default, matches Flexoki Dark) ─── */
:root {
  /* Core palette — from :root in index.css */
  --zc-bg: #151313;
  --zc-sidebar: #1C1B1A;
  --zc-accent: #DA702C;
  --zc-text: #CECDC3;
  --zc-text-secondary: #878580;
  --zc-text-muted: #575653;
  --zc-border: #343331;
  --zc-surface: rgba(28, 27, 26, 0.62);
  --zc-input-bg: #1C1B1A;
  --zc-input-border: #343331;
  --zc-input-text: #CECDC3;
  --zc-input-placeholder: #575653;
  --zc-hero-text: #CECDC3;
  --zc-chip-bg: rgba(206, 205, 195, 0.045);
  --zc-chip-border: rgba(206, 205, 195, 0.09);
  --zc-chip-text: #878580;
  --zc-chip-hover-border: rgba(206, 205, 195, 0.18);
  --zc-chip-hover-text: #CECDC3;
  --zc-stop-bg: #f5f5f4;
  --zc-stop-text: #18181b;

  /* Landing-page header derived from core tokens */
  --zc-header-bg: rgba(21, 19, 19, 0.78);
  --zc-header-border: rgba(206, 205, 195, 0.08);
  --zc-accent-text: #151313;
}

/* ─── Light Theme (matches [data-zc-theme="light"] in index.css) ─── */
[data-theme="light"] {
  --zc-bg: #fcfcfd;
  --zc-sidebar: #f1f2f4;
  --zc-accent: #18181b;
  --zc-text: #18181b;
  --zc-text-secondary: #71717a;
  --zc-text-muted: #71717a;
  --zc-border: #e4e4e7;
  --zc-surface: #f4f4f5;
  --zc-input-bg: #ffffff;
  --zc-input-border: #d4d4d8;
  --zc-input-text: #18181b;
  --zc-input-placeholder: #71717a;
  --zc-hero-text: #52525b;
  --zc-chip-bg: #fafafa;
  --zc-chip-border: #d4d4d8;
  --zc-chip-text: #52525b;
  --zc-chip-hover-border: #a1a1aa;
  --zc-chip-hover-text: #18181b;
  --zc-stop-bg: #18181b;
  --zc-stop-text: #ffffff;

  --zc-header-bg: rgba(252, 252, 253, 0.72);
  --zc-header-border: rgba(0, 0, 0, 0.06);
  --zc-accent-text: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--zc-bg);
  color: var(--zc-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}


/* ═══════════ HEADER ═══════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding: 0 1.75rem;
  border-radius: 9999px;
  background: var(--zc-header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--zc-header-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--zc-text);
}

.header-spacer {
  flex: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--zc-text);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: var(--zc-accent);
  color: var(--zc-accent-text);
  transition: transform 0.15s, opacity 0.15s;
}
.nav-cta:hover { opacity: 0.9; transform: scale(1.02); }
.nav-cta:active { transform: scale(0.97); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
  color: var(--zc-text-secondary);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.theme-toggle:hover { opacity: 1; }

.mobile-menu-btn {
  display: none;
  padding: 0.25rem;
  color: var(--zc-text);
}

.hidden { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .theme-toggle { margin-left: auto; margin-right: 0.5rem; }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.mobile-menu {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: 90%;
  max-width: 24rem;
  background: var(--zc-header-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--zc-header-border);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.mobile-link {
  display: block;
  padding: 0.875rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--zc-text);
  border-radius: 0.75rem;
  transition: background 0.15s;
}
.mobile-link:hover {
  background: var(--zc-chip-bg);
}
.mobile-cta {
  margin-top: 0.5rem;
  background: var(--zc-accent);
  color: var(--zc-accent-text);
  font-weight: 600;
  border-radius: 0.75rem;
}
.mobile-cta:hover { opacity: 0.9; background: var(--zc-accent); }


/* ═══════════ MAIN CONTENT ═══════════ */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

.content-container {
  max-width: 52rem;
  text-align: center;
}

.hero-body {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.hero-body p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1875rem;
  color: var(--zc-text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Clean fade-in for the whole text block */
.hero-body {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.15s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Blinking terminal cursor */
.terminal-cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--zc-text);
  margin-left: 0.25em;
  vertical-align: text-bottom;
  opacity: 0;
  animation:
    cursorAppear 0s 1.2s forwards,
    cursorBlink 1s 1.2s step-end infinite;
}

@keyframes cursorAppear {
  to { opacity: 0.6; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-body {
    opacity: 1;
    animation: none;
  }
  .terminal-cursor {
    animation: cursorBlink 1s step-end infinite;
    opacity: 0.6;
  }
}

.hero-body p:last-child {
  margin-bottom: 0;
}


/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--zc-border);
  background: var(--zc-bg);
  overflow: hidden;
}

.footer-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  color: var(--zc-text);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--zc-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--zc-text); }

.ext-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zc-border);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-socials a {
  color: var(--zc-text-secondary);
  transition: color 0.2s;
  display: flex;
}
.footer-socials a:hover { color: var(--zc-text); }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--zc-text-secondary);
}

.footer-divider {
  opacity: 0.3;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zc-text-secondary);
}

.status-dot {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #22c55e;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.6;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #22c55e;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Giant text */
.footer-giant-text {
  font-size: 20.5vw;
  font-weight: 900;
  text-align: center;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--zc-text);
  user-select: none;
  pointer-events: none;
  padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

