/* ============================================================
   TimeCell — Landing Page Styles
   Dark financial theme. Bloomberg-meets-modern-web.
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */

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

:root {
  --orange:       #F7931A;
  --orange-dim:   #c97510;
  --orange-glow:  rgba(247, 147, 26, 0.12);

  --green:        #5fcf80;
  --green-dim:    rgba(95, 207, 128, 0.15);
  --yellow:       #f5c542;
  --yellow-dim:   rgba(245, 197, 66, 0.15);
  --red:          #e05252;
  --red-dim:      rgba(224, 82, 82, 0.15);

  --bg:           #0f0f0f;
  --bg-surface:   #161616;
  --bg-elevated:  #1c1c1c;
  --bg-code:      #111111;

  --border:       rgba(255, 255, 255, 0.07);
  --border-orange: rgba(247, 147, 26, 0.5);

  --text-primary:   #f0f0f0;
  --text-secondary: #8a8a8a;
  --text-muted:     #555555;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --radius:    4px;
  --radius-lg: 8px;

  --max-width: 960px;
  --section-gap: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout ----------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header ----------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.logo-img {
  height: 28px;
  width: auto;
}

.hero-logo {
  height: clamp(60px, 12vw, 100px);
  width: auto;
  margin-bottom: 8px;
}

.header-nav {
  display: flex;
  gap: 28px;
}

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

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

/* --- Hero ------------------------------------------------- */

.hero {
  padding-top: 140px;
  padding-bottom: 96px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(247, 147, 26, 0.06) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  padding: 4px 12px;
  border: 1px solid var(--border-orange);
  border-radius: var(--radius);
  background: var(--orange-glow);
}

.hero-title {
  font-size: clamp(52px, 10vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--orange);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.1s ease;
}

.cta-button:hover {
  background: #e8871a;
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

/* --- Section Heading -------------------------------------- */

.section-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* --- Dashboard Preview / Mockup --------------------------- */

.preview {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.preview-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: -28px;
  margin-bottom: 40px;
}

.mockup-window {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-code);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(247, 147, 26, 0.03);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot--red    { background: #ff5f57; }
.mockup-dot--yellow { background: #febc2e; }
.mockup-dot--green  { background: #28c840; }

.mockup-titlebar-text {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.mockup-body {
  padding: 0;
}

.mockup-header-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 0.8fr;
  gap: 0;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mockup-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mockup-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 0.8fr;
  gap: 0;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s ease;
}

.mockup-row:last-of-type {
  border-bottom: none;
}

.mockup-row--warn {
  background: rgba(245, 197, 66, 0.03);
}

.mockup-row--critical {
  background: rgba(224, 82, 82, 0.04);
}

.mockup-cell {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.mockup-cell--scenario {
  color: var(--text-primary);
  font-weight: 500;
}

.mockup-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius);
  text-align: center;
  width: fit-content;
}

.mockup-badge--safe {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(95, 207, 128, 0.25);
}

.mockup-badge--warning {
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid rgba(245, 197, 66, 0.25);
}

.mockup-badge--critical {
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(224, 82, 82, 0.25);
}

.mockup-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mockup-summary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mockup-summary-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.mockup-summary-value--warn {
  color: var(--red);
}

.mockup-summary-sep {
  color: var(--text-muted);
  font-size: 18px;
}

/* --- How It Works ----------------------------------------- */

.how-it-works {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  background: var(--bg-surface);
  padding: 40px 32px;
  transition: background 0.15s ease;
}

.step-card:hover {
  background: var(--bg-elevated);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Features --------------------------------------------- */

.features {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-surface);
  padding: 36px 32px;
  transition: background 0.15s ease;
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-icon {
  color: var(--orange);
  font-size: 8px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Social Proof ----------------------------------------- */

.social-proof {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.social-proof-inner {
  text-align: center;
}

.social-proof-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Install ---------------------------------------------- */

.install {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.install-inner {
  max-width: 640px;
  text-align: center;
}

.install-inner .section-heading {
  text-align: center;
}

.install-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  margin-top: -24px;
}

.code-block {
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-code);
  box-shadow: 0 0 32px rgba(247, 147, 26, 0.05);
  text-align: left;
}

.code-block--hero {
  box-shadow:
    0 0 0 1px rgba(247, 147, 26, 0.15),
    0 0 48px rgba(247, 147, 26, 0.08),
    0 16px 64px rgba(0, 0, 0, 0.4);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-orange);
  background: rgba(247, 147, 26, 0.04);
}

.code-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.copy-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-orange);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-button:hover {
  background: var(--orange-glow);
}

.copy-button.copied {
  color: #5fcf80;
  border-color: rgba(95, 207, 128, 0.5);
  background: rgba(95, 207, 128, 0.08);
}

.copy-icon {
  font-size: 13px;
  line-height: 1;
}

.code-content {
  padding: 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--orange);
  letter-spacing: 0.02em;
  overflow-x: auto;
  white-space: pre;
}

.code-content--lg {
  font-size: 24px;
  padding: 32px;
  text-align: center;
}

.install-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.install-secondary-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.install-secondary-link:hover {
  color: var(--orange);
}

/* --- Why -------------------------------------------------- */

.why {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

.why-inner {
  max-width: 680px;
}

.why-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

/* --- Footer ----------------------------------------------- */

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

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

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

.footer-brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

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

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

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* --- Responsive ------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --section-gap: 64px;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 64px;
  }

  .header-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .step-card {
    padding: 28px 24px;
  }

  .code-content {
    font-size: 16px;
  }

  .code-content--lg {
    font-size: 18px;
    padding: 24px;
  }

  .mockup-header-row,
  .mockup-row {
    grid-template-columns: 1.2fr 1fr 0.6fr 0.7fr;
    padding: 12px 16px;
    gap: 8px;
  }

  .mockup-cell {
    font-size: 12px;
  }

  .mockup-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .mockup-summary {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -0.02em;
  }

  .header-nav {
    display: none;
  }

  .code-content {
    font-size: 14px;
    padding: 20px;
  }

  .code-content--lg {
    font-size: 16px;
    padding: 20px;
  }

  .mockup-header-row,
  .mockup-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }

  .mockup-label:nth-child(3),
  .mockup-label:nth-child(4) {
    display: none;
  }

  .mockup-row .mockup-cell:nth-child(3) {
    display: none;
  }

  .mockup-badge {
    justify-self: start;
  }

  .step-number {
    font-size: 24px;
  }
}
