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

:root {
  --bg: #0a0a0c;
  --bg-1: #101013;
  --bg-2: #16161a;

  --line: #26262d;
  --line-strong: #3b3b45;

  --ink: #ebe9e4;
  --ink-2: #b3b0a8;
  --ink-3: #7a7770;
  --ink-4: #4d4b46;

  --wine: #c44569;
  --wine-hot: #e85a7e;
  --wine-deep: #7a1f3a;
  --wine-glow: rgba(196, 69, 105, 0.45);

  --term-green: #7ec699;
  --term-blue: #82a9d6;

  --radius: 6px;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --max: 1180px;
  --gutter: 32px;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.stub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-grid,
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

.bg-noise {
  opacity: 0.6;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(196, 69, 105, 0.08), transparent 70%),
    radial-gradient(ellipse 80% 60% at 90% 110%, rgba(196, 69, 105, 0.05), transparent 70%);
}

/* Header */

.nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.76);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 0 22px var(--wine-glow),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.brand-name,
.brand-domain {
  white-space: nowrap;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
}

.brand-domain {
  color: var(--ink-3);
  font-size: 12px;
}

.brand-2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
} 

.brand-mark-2 {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 16px var(--wine-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
}
.brand-mark-2::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 50%);
}

.brand-name-2 { font-size: 13px; }
.brand-domain-2 { font-size: 12px; color: var(--ink-3); font-weight: 400; }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--term-green);
  box-shadow: 0 0 8px var(--term-green);
  animation: pulse 2s ease-in-out infinite;
}

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

  50% {
    opacity: 0.4;
  }
}

/* Main */

.stub-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: calc(100vh - 107px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.stub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.stub-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.stub-logo-text {
  display: grid;
  gap: 1px;
}

.stub-logo-text strong {
  font-size: 14px;
  line-height: 1.1;
}

.stub-logo-text span {
  color: var(--ink-3);
  font-size: 12px;
}

.stub-title {
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.stub-title em {
  color: var(--wine);
  font-style: italic;
}

.cursor-blink {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  background: var(--wine);
  box-shadow: 0 0 12px var(--wine-glow);
  animation: blink 1.05s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stub-lead {
  max-width: 56ch;
  margin-bottom: 34px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.stub-lead strong {
  color: var(--ink);
  font-weight: 500;
}

.stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.stub-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: 12px;
}

.stub-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.stub-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--term-green);
}

.stub-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--term-green);
  box-shadow: 0 0 10px var(--term-green);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow:
    0 0 0 0 var(--wine-glow),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover {
  background: var(--wine-hot);
  box-shadow:
    0 0 32px var(--wine-glow),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg-1);
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Terminal */

.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(196, 69, 105, 0.06),
    0 0 60px -20px var(--wine-glow);
  font-size: 13px;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(196,69,105,0.25), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.terminal-head .dots {
  display: flex;
  gap: 6px;
}

.terminal-head .dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-4);
}

.terminal-head .dots span:nth-child(1) {
  background: #ff5f57;
}

.terminal-head .dots span:nth-child(2) {
  background: #febc2e;
}

.terminal-head .dots span:nth-child(3) {
  background: #28c840;
}

.terminal-head .title {
  flex: 1;
  color: var(--ink-3);
  font-size: 11.5px;
  text-align: center;
}

.terminal-head .tabs {
  display: flex;
  gap: 4px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.terminal-head .tabs span {
  padding: 2px 8px;
  border-radius: 3px;
}

.terminal-head .tabs span.on {
  background: var(--bg-1);
  color: var(--ink-2);
}

.terminal-body {
  padding: 16px 18px 18px;
  font-size: 12.5px;
  line-height: 1.7;
}

.ascii-art {
  padding: 4px 0 14px;
  color: var(--wine);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  user-select: none;
  text-shadow: 0 0 10px var(--wine-glow);
}

.term-line {
  display: flex;
  gap: 8px;
}

.term-line.in {
  color: var(--ink);
}

.term-line.in .prompt {
  color: var(--wine);
}

.term-line.out {
  padding-left: 16px;
  color: var(--ink-2);
}

.term-line.ok {
  padding-left: 16px;
  color: var(--term-green);
}

.term-line.muted {
  padding-left: 16px;
  color: var(--ink-3);
  font-style: italic;
}

.term-key {
  color: var(--term-blue);
}

.term-str {
  color: var(--term-green);
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--ink);
  animation: blink 1s steps(2) infinite;
}

/* Footer */

.stub-footer {
  position: relative;
  z-index: 1;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 11.5px;
}

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

.stub-footer a {
  color: var(--ink-3);
}

.stub-footer a:hover {
  color: var(--wine);
}

/* Responsive */

@media (max-width: 900px) {
  .stub-main {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .stub-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brand-domain,
  .status-dot {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 14px;
  }

  .nav-inner {
    min-height: 56px;
  }

  .stub-title {
    font-size: 58px;
  }

  .stub-lead {
    font-size: 15px;
  }

  .stub-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .terminal-head .tabs {
    display: none;
  }

  .terminal-body {
    padding: 14px;
    font-size: 12px;
  }

  .ascii-art {
    font-size: 8px;
  }
}
