/* ============================================
   NZBolt Website — Style
   ============================================ */

:root {
  /* Palette — derived from the app icon's blue */
  --bg-deep: #040810;
  --bg-primary: #060c18;
  --bg-surface: #0c1628;
  --bg-elevated: #111e36;
  --bg-card: #0e1a30;

  --blue-500: #4a82e0;
  --blue-400: #6ba1f7;
  --blue-300: #93bbff;
  --blue-600: #3566b8;
  --blue-900: #0c1e42;
  --blue-glow: rgba(74, 130, 224, 0.12);
  --blue-glow-strong: rgba(74, 130, 224, 0.25);

  --text-primary: #e2e8f4;
  --text-secondary: #8b9dbe;
  --text-muted: #566a8a;

  --border: rgba(138, 160, 200, 0.08);
  --border-hover: rgba(138, 160, 200, 0.15);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 140px);
  --content-width: 1120px;
  --content-pad: clamp(20px, 4vw, 40px);
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--blue-500);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

h1, h2 {
  font-family: 'Instrument Serif', serif;
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 400;
}

h3, h4 {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 600;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--content-pad);
  background: rgba(6, 12, 24, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 7px 18px;
  border-radius: 8px;
  background: var(--blue-500);
  color: #fff !important;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--blue-400);
  transform: translateY(-1px);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 24px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 0 24px rgba(74, 130, 224, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--blue-400);
  box-shadow: 0 0 36px rgba(74, 130, 224, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* ---- Section common ---- */

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
}

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

.hero {
  position: relative;
  padding: 140px var(--content-pad) 80px;
  max-width: calc(var(--content-width) + var(--content-pad) * 2);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(74, 130, 224, 0.12) 0%, rgba(74, 130, 224, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 8px var(--blue-400);
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 80px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--blue-400);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  max-width: 960px;
  margin: 0 auto;
}

.hero-screenshot {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

/* ---- macOS Window Frame ---- */

.window-frame {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -20px rgba(0, 0, 0, 0.5);
  max-width: 960px;
  margin: 0 auto;
}

.window-frame-sm {
  max-width: 680px;
}

.window-titlebar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: #1e1e32;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

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

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

.dot-close { background: #ff5f57; }
.dot-minimize { background: #febc2e; }
.dot-maximize { background: #28c840; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.window-content {
  min-height: 320px;
  background: #0f0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-frame-sm .window-content {
  min-height: 240px;
}

.screenshot {
  width: 100%;
  height: auto;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.placeholder-size {
  font-size: 11px;
  opacity: 0.5;
}

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

.features {
  padding: var(--section-pad) var(--content-pad);
  max-width: calc(var(--content-width) + var(--content-pad) * 2);
  margin: 0 auto;
}

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

.feature-card {
  padding: 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.015) 0%, transparent 100%);
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, rgba(74, 130, 224, 0.04) 0%, transparent 100%);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue-glow);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-400);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
}

/* ---- Pipeline ---- */

.pipeline {
  padding: var(--section-pad) var(--content-pad);
  max-width: calc(var(--content-width) + var(--content-pad) * 2);
  margin: 0 auto;
}

.pipeline-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 160px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pipeline-step:hover .step-icon {
  border-color: var(--blue-500);
  box-shadow: 0 0 20px var(--blue-glow);
}

.step-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue-400);
}

.pipeline-step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pipeline-step p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 140px;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  padding-top: 52px;
  flex: 0 0 40px;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-hover), var(--blue-500), var(--border-hover));
  position: relative;
}

.connector-line::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--blue-500);
  border-right: 1px solid var(--blue-500);
  transform: rotate(45deg);
}

/* ---- Showcase ---- */

.showcase {
  padding: var(--section-pad) var(--content-pad);
  max-width: calc(var(--content-width) + var(--content-pad) * 2);
  margin: 0 auto;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.showcase-item:last-child {
  margin-bottom: 0;
}

.showcase-item-reverse {
  grid-template-columns: 1.4fr 1fr;
}

.showcase-item-reverse .showcase-text {
  order: 2;
}

.showcase-item-reverse .showcase-visual {
  order: 1;
}

.showcase-text h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.showcase-text > p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-details li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.showcase-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ---- Technical ---- */

.technical {
  padding: var(--section-pad) var(--content-pad);
  max-width: calc(var(--content-width) + var(--content-pad) * 2);
  margin: 0 auto;
}

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

.tech-card {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.25s;
}

.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tech-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tech-value {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Story ---- */

.story {
  padding: var(--section-pad) var(--content-pad);
  max-width: calc(var(--content-width) + var(--content-pad) * 2);
  margin: 0 auto;
}

.story-content {
  max-width: 680px;
  margin: 0 auto;
}

.story-content h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.35;
  margin-bottom: 28px;
  margin-top: 16px;
}

.story-body p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.story-author {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- CTA ---- */

.cta {
  position: relative;
  padding: var(--section-pad) var(--content-pad);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(74, 130, 224, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 12px;
}

.cta > .cta-content > p {
  font-size: 17px;
  margin-bottom: 28px;
}

.cta-meta {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

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

.footer {
  padding: 32px var(--content-pad);
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

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

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

/* ---- Hero entrance animations ---- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-steps {
    flex-direction: column;
    align-items: center;
  }

  .pipeline-step {
    flex: none;
  }

  .pipeline-connector {
    padding-top: 0;
    flex: none;
    height: 32px;
    width: 1px;
  }

  .connector-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-hover), var(--blue-500), var(--border-hover));
  }

  .connector-line::after {
    right: -3px;
    top: auto;
    bottom: -3px;
    transform: rotate(135deg);
  }

  .showcase-item,
  .showcase-item-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-item-reverse .showcase-text { order: 1; }
  .showcase-item-reverse .showcase-visual { order: 2; }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 110px;
  }

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