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

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #111111;
  --panel-strong: #1a1a1a;
  --text: #ffd7a6;
  --muted: #3a3a3a;
  --primary: #ff8a00;
  --secondary: #ffb347;
  --accent: #ff6a00;
  --glow: rgba(255, 138, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 15%, rgba(255, 138, 0, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 179, 71, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(15, 15, 15, 0.85), rgba(5, 5, 5, 0.95)),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 138, 0, 0.05), transparent 35%),
    linear-gradient(-120deg, rgba(255, 106, 0, 0.06), transparent 40%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

main,
header {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6vw 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24pt;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
}

.nav {
  display: flex;
  gap: 14px;
  font-weight: 600;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  border-color: var(--primary);
  background: rgba(255, 138, 0, 0.12);
}

.nav-link.is-active {
  background: var(--accent);
  color: #0b0b0b;
  border-color: transparent;
}

.copy-button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.copy-button:hover,
.copy-button:focus {
  transform: translateY(-1px);
  background: rgba(255, 138, 0, 0.2);
  color: var(--primary);
}

.copy-button.is-copied {
  background: var(--primary);
  color: #0b0b0b;
}

.about,
.try-ssh {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 6vw;
  animation: fade-up 0.9s ease both;
}

.content-panel {
  max-width: 980px;
  margin: 36px auto 48px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 22px;
  padding: 8px 0 20px;
}

.about {
  animation-delay: 0.15s;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hey-accent {
  display: block;
  margin-top: 24px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1.25em;
  color: var(--primary);
}

.socials {
  display: flex;
  gap: 16px;
}

.socials-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 6vw 56px;
  display: flex;
  justify-content: center;
}

.social {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(26, 26, 26, 0.9);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 179, 71, 0.2);
  transition: border 0.2s ease, transform 0.2s ease;
}

.social svg {
  width: 22px;
  height: 22px;
  fill: var(--secondary);
}

.social:hover,
.social:focus {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.try-ssh {
  padding-top: 0;
  animation-delay: 0.3s;
}

.try-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.accent-animated {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

.terminal {
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.fingerprint {
  color: var(--muted);
  margin: 0 0 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 0px;
  color: #ffffff;
}

.prompt-symbol {
  color: #ffffff;
  margin-right: 6px;
}

.typed {
  display: inline-block;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  width: 0ch;
  animation: type-yes 3.4s steps(3, end) infinite;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: #ffffff;
  margin-left: 1px;
  animation: blink 0.8s step-end infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes type-yes {
  0% {
    width: 0ch;
  }
  20% {
    width: 3ch;
  }
  60% {
    width: 3ch;
  }
  100% {
    width: 0ch;
  }
}

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

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 18px;
  }

  .hero-command {
    flex-direction: column;
  }

  .try-line {
    justify-content: center;
  }

  .about,
  .try-ssh {
    padding: 32px 8vw;
  }
}
