/* ==========================================================================
   SINGULARITY SERVERS - MINIMAL TERMINAL CENTERPIECE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --bg: #050711;
  --terminal-bg: #04060e;
  --cyan: #00f3ff;
  --gold: #ffb700;
  --green: #00ffaa;
  --text: #e2e8f0;
  --text-dim: #8fa0be;
  --border: rgba(0, 243, 255, 0.25);
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 243, 255, 0.08);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0 2rem 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero h1 .cyan {
  color: var(--cyan);
}

.hero h1 .gold {
  color: var(--gold);
}

/* Centerpiece Terminal Window */
.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  margin: 0 auto 3rem auto;
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  background: #0d1224;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots {
  display: flex;
  gap: 8px;
}

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

.term-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-content {
  padding: 2.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1.6;
}

.prompt-symbol {
  color: var(--cyan);
  margin-right: 0.75rem;
}

.term-text {
  color: var(--green);
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.3rem;
  background: var(--cyan);
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Pay in Bitcoin — matches the How It Works section-header exactly */
.btc-icon {
  vertical-align: -3px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ==========================================================================
   CALCULATOR & INSTANCE CONFIGURATOR
   ========================================================================== */

.calculator-section {
  padding: 3.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

/* Presets Card */
.presets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.presets-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.presets-os {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
}

.presets-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
}

.preset-card {
  background: rgba(13, 18, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  color: inherit;
  font-family: inherit;
}

.preset-card:hover {
  background: rgba(18, 25, 50, 0.9);
  border-color: rgba(0, 243, 255, 0.4);
  transform: translateY(-2px);
}

.preset-card.active {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--cyan);
}

.preset-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-card.active .preset-name {
  color: var(--cyan);
}

.preset-details {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Calculator & Presets Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
  width: 100%;
}

.summary-card,
.presets-wrapper {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

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

.price-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.discount-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 183, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 183, 0, 0.3);
}

.price-main {
  margin: 0.75rem 0 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.currency-symbol {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--cyan);
}

.total-amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.period-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

.summary-specs-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-label {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

.stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
  padding: 0;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--cyan);
  color: #04060e;
  transform: scale(1.08);
}

.stepper-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.stepper-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.spec-value {
  min-width: 110px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  font-size: 0.92rem;
}

.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }
.font-mono { font-family: var(--font-mono); }

.cyan-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cyan-link:hover {
  color: var(--green);
}

/* ==========================================================================
   HOW IT WORKS (GRAPHICAL PIPELINE)
   ========================================================================== */

.how-it-works-section {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* River Flow Container */
.river-flow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* SVG River – centered, full height */
.river-svg {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* River Steps */
.river-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  z-index: 2;
}

.river-step:last-child {
  margin-bottom: 0;
}

/* Left bank: card on the left, marker in center */
.river-left {
  flex-direction: row;
  padding-right: calc(50% + 30px);
}

/* Right bank: marker in center, card on the right */
.river-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 30px);
}

/* River Marker (dot + number) */
.river-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
  top: 1.5rem;
}

.river-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.river-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

/* Flow Card (reused, adapted for river) */
.flow-card {
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  flex: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.flow-card:hover {
  border-color: rgba(0, 243, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.flow-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.flow-desc {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Graphical Widgets inside Flow Cards */
.graphic-widget {
  background: #02040a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.widget-label {
  color: rgba(255, 255, 255, 0.65);
}

.widget-val {
  font-weight: 600;
  color: #fff;
  font-size: 0.82rem;
}

/* Step 2 Code Widget */
.code-widget {
  font-family: var(--font-mono);
  gap: 0.45rem;
}

.code-line {
  font-size: 0.82rem;
}

.cmd-method {
  color: var(--green);
  font-weight: 700;
}

.cmd-path {
  color: var(--cyan);
}

.code-body {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.widget-pill {
  font-size: 0.8rem;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Get Started Section */
.get-started-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
  text-align: center;
}

.get-started-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.get-started-prompt code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cyan);
  text-align: left;
  /* Wrap at spaces first and only break inside a word when one cannot fit on its
     own line -- break-all would hyphenlessly split ordinary words mid-letter. */
  overflow-wrap: anywhere;
}

.copy-prompt-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-subsection {
  margin-top: 2.5rem;
  padding: 0 calc(1.25rem + 1px);
  text-align: center;
}

/* A step below the section's own h2 -- smaller and lighter than "How to Get
   Started", so it reads as a subheading of it rather than a second section. */
.subsection-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.get-started-contact {
  max-width: 580px;
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.get-started-contact .heart-icon {
  vertical-align: -2px;
}

.get-started-contact .contact-address {
  font-family: var(--font-mono);
  /* An @-less address keeps scrapers off it, so it must not wrap mid-phrase. */
  white-space: nowrap;
}

/* Step 3 Delivery Widget */
.delivery-widget {
  gap: 0.7rem;
}

.delivery-channel {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.channel-icon {
  font-size: 1.1rem;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.channel-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

.channel-detail {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

@media (max-width: 768px) {
  /* Two nav links no longer fit beside the full-size logo at this width. */
  header { flex-wrap: wrap; row-gap: 0.75rem; }
  .logo { font-size: 1.05rem; }
  .nav-links { flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
  .hero h1 { white-space: normal; }
  .terminal-content { font-size: 1.1rem; padding: 1.8rem 1.25rem; }
  .calculator-grid { grid-template-columns: 1fr; }

  /* River → stacked vertical on mobile */
  .river-svg { display: none; }
  .river-left,
  .river-right {
    padding-left: 0;
    padding-right: 0;
    flex-direction: row;
  }
  .river-marker {
    position: relative;
    left: auto;
    transform: none;
    top: auto;
    flex-direction: row;
    gap: 0.5rem;
    min-width: 50px;
    margin-top: 1.2rem;
  }
  .river-step {
    gap: 1rem;
  }
}
