:root {
  --bg: #07110b;
  --panel: #0b1810;
  --panel-2: #0f2015;
  --line: rgba(120, 255, 160, 0.18);
  --text: #d7ffe3;
  --muted: #84b393;
  --green: #7dff9b;
  --green-2: #43d96b;
  --amber: #ffd166;
  --red: #ff7b7b;
  --shadow: 0 0 0 1px rgba(125,255,155,0.08), 0 18px 40px rgba(0,0,0,0.35);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  background:
    radial-gradient(circle at top, rgba(67,217,107,0.08), transparent 28%),
    linear-gradient(180deg, #061008 0%, #07110b 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125,255,155,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,255,155,0.02) 1px, transparent 1px);
  background-size: 100% 3px, 40px 100%;
  opacity: 0.4;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  opacity: 0.15;
}

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(6, 16, 8, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 8px rgba(125,255,155,0.18);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(125,255,155,0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.7; }
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.nav a:hover {
  color: var(--green);
  border-color: rgba(125,255,155,0.35);
  box-shadow: 0 0 0 1px rgba(125,255,155,0.12) inset;
}

.hero {
  padding: 34px 0 18px;
}

.terminal-window,
.panel,
.mini-panel,
.code-panel,
.contact-card,
.footer-box {
  background: linear-gradient(180deg, rgba(11,24,16,0.98), rgba(9,18,13,0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-window {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 620px;
}

.term-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}

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

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.9;
}

.dots .r { background: var(--red); }
.dots .y { background: var(--amber); }
.dots .g { background: var(--green-2); }

.term-title {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 12px;
  flex: 1;
  text-align: center;
}

.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-left {
  border-right: 1px solid var(--line);
}

.terminal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.line,
.output,
.ascii,
.status-box,
.command-list li,
.tree li,
.metrics li {
  font-size: 14px;
  line-height: 1.75;
}

.prompt {
  color: var(--green);
  white-space: pre-wrap;
}

.muted { color: var(--muted); }
.green { color: var(--green); }
.amber { color: var(--amber); }

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #effff4;
  text-shadow: 0 0 20px rgba(125,255,155,0.06);
}

.hero-sub {
  color: var(--muted);
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  background: rgba(125,255,155,0.03);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(125,255,155,0.04);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 0.2s ease;
}

.btn:hover {
  background: rgba(125,255,155,0.09);
  border-color: rgba(125,255,155,0.35);
  box-shadow: 0 0 18px rgba(125,255,155,0.08);
}

.btn::before {
  content: ">";
  color: var(--green);
}

.hero-right .terminal-body {
  justify-content: space-between;
}

.ascii {
  color: var(--green);
  opacity: 0.9;
  white-space: pre;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.status-box {
  padding: 14px;
  border: 1px dashed rgba(125,255,155,0.2);
  border-radius: 12px;
  background: rgba(125,255,155,0.02);
  color: var(--text);
}

section {
  padding: 14px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-title::before {
  content: "$";
  color: var(--green);
}

.grid-3,
.grid-2,
.contacts {
  display: grid;
  gap: 16px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.contacts { grid-template-columns: 1.1fr 0.9fr; }

.panel-body,
.contact-body,
.code-body {
  padding: 18px;
}

.panel-head,
.contact-head,
.code-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.01);
}

.panel h3,
.contact-card h3,
.code-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: #f2fff6;
}

.panel p,
.contact-card p,
.code-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.command-list,
.tree,
.metrics,
.links {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.command-list li,
.tree li,
.metrics li,
.link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(125,255,155,0.02);
}

.command-list li::before {
  content: "> ";
  color: var(--green);
}

.tree li::before {
  content: "├─ ";
  color: var(--green);
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  background: #061109;
}

.code-panel {
  overflow: hidden;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}

.link strong {
  display: block;
  color: var(--green);
  margin-bottom: 4px;
  font-size: 14px;
}

.link span {
  color: var(--muted);
  font-size: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.contact-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(125,255,155,0.02);
}

.contact-item strong {
  display: block;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.contact-item a,
.contact-item div {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.footer {
  padding: 18px 0 40px;
}

.footer-box {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-box strong { color: var(--green); }

@media (max-width: 1100px) {
  .terminal-window,
  .grid-3,
  .grid-2,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero-left { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav { justify-content: flex-start; }
  .terminal-body,
  .panel-body,
  .contact-body,
  .code-body { padding: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
}