:root {
  --bg: #0a0d12;
  --bg2: #10141b;
  --bg3: #161b24;
  --border: #1e2530;
  --border2: #2a323f;
  --accent: #ffb454;
  --accent-dim: #cc8f3f;
  --cyan: #5ec8d8;
  --text: #e6e9ef;
  --text2: #8a94a3;
  --text3: #4d5561;
  --red: #ff6b6b;
  --green: #6ee86e;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(255, 180, 84, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(94, 200, 216, 0.05) 0%, transparent 55%);
  background-repeat: no-repeat;
}

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

::selection {
  background: rgba(255, 180, 84, 0.25);
  color: var(--text);
}

/* ---------- layout shells ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg3);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--text2);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.82rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

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

.hero .tagline {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #14100a;
  border-color: var(--accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- terminal ---------- */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border2);
}

.terminal-bar .title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text3);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.terminal-body {
  font-family: var(--mono);
  font-size: 0.86rem;
  padding: 22px;
  min-height: 220px;
  color: var(--text2);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .prompt {
  color: var(--cyan);
}

.terminal-body .cmd {
  color: var(--text);
}

.terminal-body .ok {
  color: var(--green);
}

.terminal-body .path {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

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

/* ---------- sections ---------- */
section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 24px;
}

.section-label .prompt {
  color: var(--cyan);
}

.section-label .cmd {
  color: var(--accent);
}

.about-text {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 68ch;
  margin-bottom: 32px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 8px 14px;
  border: 1px solid var(--border2);
  border-radius: 7px;
  background: var(--bg2);
  color: var(--text2);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* projects */
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 18px;
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: var(--border2);
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.project-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-head a {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  white-space: nowrap;
}

.project-head a:hover {
  text-decoration: underline;
}

.project-desc {
  color: var(--text2);
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--bg3);
  color: var(--text3);
}

/* links list */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.link-row:hover {
  background: var(--bg2);
}

.link-row .slug {
  color: var(--accent);
}

.link-row .slug::before {
  content: 'xarion.pl/';
  color: var(--text3);
}

.link-row .label {
  color: var(--text3);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.links-empty {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.88rem;
}

/* footer / contact */
footer {
  padding: 56px 0 80px;
  border-top: 1px solid var(--border);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-box h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.socials-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

footer .foot-note {
  margin-top: 40px;
  color: var(--text3);
  font-size: 0.8rem;
  font-family: var(--mono);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }
  .nav-links {
    display: none;
  }
  .nav-right {
    gap: 0;
  }
  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
