:root {
  /* Main color scheme - borrowed from user-alert but with tweaks for dev tool feel */
  --primary: #FF3A5E;
  --primary-dark: #D32046;
  --primary-light: #FF6682;

  --secondary: #00E5B0;
  --secondary-dark: #00B589;
  --secondary-light: #4DFFD1;

  --tertiary: #5D3AFF;
  --tertiary-dark: #4126D9;
  --tertiary-light: #8A72FF;

  /* Status colors */
  --success: #00E5B0;
  --warning: #FFAE00;
  --danger: #FF3A5E;
  --info: #5D3AFF;

  /* UI colors */
  --dark: #111827;
  --dark-blue: #1A1F35;
  --medium-dark: #252C48;
  --light: #F9FAFB;
  --gray: #6B7280;

  /* Effects */
  --glow-red: 0 0 25px rgba(255, 58, 94, 0.7);
  --glow-green: 0 0 25px rgba(0, 229, 176, 0.7);
  --glow-blue: 0 0 25px rgba(93, 58, 255, 0.7);
  --glow-yellow: 0 0 25px rgba(255, 174, 0, 0.7);

  /* Terminal elements */
  --terminal-bg: #0C0E16;
  --terminal-header: #1A1F35;
  --terminal-text: #E2E8F0;
  --terminal-grid: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--light);
  background-color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(93, 58, 255, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 70%, rgba(255, 58, 94, 0.08) 0%, transparent 25%);
}

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

.terminal {
  font-family: 'Fira Code', monospace;
  background-color: var(--terminal-bg);
  border-radius: 8px;
  border: 1px solid var(--medium-dark);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  background-color: var(--terminal-header);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-body {
  padding: 1.5rem;
  line-height: 1.8;
  position: relative;
}

.terminal-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--terminal-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--terminal-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.1;
}

.terminal-prompt {
  display: flex;
  margin-bottom: 0.5rem;
}

.terminal-prompt-sign {
  color: var(--success);
  margin-right: 0.5rem;
}

.terminal-command {
  color: var(--tertiary-light);
}

.terminal-output {
  color: var(--terminal-text);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.terminal-error {
  color: var(--danger);
}

.terminal-success {
  color: var(--success);
}

.terminal-warning {
  color: var(--warning);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  letter-spacing: -0.05em;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link {
  color: var(--tertiary-light);
  position: relative;
  font-weight: 500;
}

.link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--tertiary-light);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

button,
.btn {
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  transition: all 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  box-shadow: 0 0 0 0 rgba(255, 58, 94, 0.5);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--glow-red);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
  box-shadow: 0 0 0 0 rgba(0, 229, 176, 0.5);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

.btn-tertiary {
  background-color: var(--tertiary);
  color: var(--light);
  box-shadow: 0 0 0 0 rgba(93, 58, 255, 0.5);
}

.btn-tertiary:hover {
  background-color: var(--tertiary-dark);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--light);
  color: var(--light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2-cols {
  grid-template-columns: 1fr 1fr;
}

.grid-3-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.flex {
  display: flex;
}

.gap-sm {
  gap: 1rem;
}

.gap-md {
  gap: 2rem;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--primary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 var(--tertiary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 54px, 0);
  }

  5% {
    clip: rect(67px, 9999px, 59px, 0);
  }

  10% {
    clip: rect(19px, 9999px, 72px, 0);
  }

  15% {
    clip: rect(10px, 9999px, 80px, 0);
  }

  20% {
    clip: rect(72px, 9999px, 22px, 0);
  }

  25% {
    clip: rect(35px, 9999px, 39px, 0);
  }

  30% {
    clip: rect(65px, 9999px, 61px, 0);
  }

  35% {
    clip: rect(19px, 9999px, 33px, 0);
  }

  40% {
    clip: rect(38px, 9999px, 8px, 0);
  }

  45% {
    clip: rect(82px, 9999px, 31px, 0);
  }

  50% {
    clip: rect(31px, 9999px, 73px, 0);
  }

  55% {
    clip: rect(7px, 9999px, 50px, 0);
  }

  60% {
    clip: rect(95px, 9999px, 69px, 0);
  }

  65% {
    clip: rect(69px, 9999px, 42px, 0);
  }

  70% {
    clip: rect(2px, 9999px, 11px, 0);
  }

  75% {
    clip: rect(30px, 9999px, 86px, 0);
  }

  80% {
    clip: rect(22px, 9999px, 92px, 0);
  }

  85% {
    clip: rect(14px, 9999px, 67px, 0);
  }

  90% {
    clip: rect(25px, 9999px, 25px, 0);
  }

  95% {
    clip: rect(82px, 9999px, 77px, 0);
  }

  100% {
    clip: rect(91px, 9999px, 90px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(56px, 9999px, 81px, 0);
  }

  5% {
    clip: rect(27px, 9999px, 93px, 0);
  }

  10% {
    clip: rect(55px, 9999px, 26px, 0);
  }

  15% {
    clip: rect(89px, 9999px, 79px, 0);
  }

  20% {
    clip: rect(35px, 9999px, 27px, 0);
  }

  25% {
    clip: rect(39px, 9999px, 39px, 0);
  }

  30% {
    clip: rect(94px, 9999px, 21px, 0);
  }

  35% {
    clip: rect(15px, 9999px, 65px, 0);
  }

  40% {
    clip: rect(8px, 9999px, 85px, 0);
  }

  45% {
    clip: rect(81px, 9999px, 99px, 0);
  }

  50% {
    clip: rect(42px, 9999px, 67px, 0);
  }

  55% {
    clip: rect(91px, 9999px, 17px, 0);
  }

  60% {
    clip: rect(17px, 9999px, 22px, 0);
  }

  65% {
    clip: rect(50px, 9999px, 25px, 0);
  }

  70% {
    clip: rect(7px, 9999px, 81px, 0);
  }

  75% {
    clip: rect(58px, 9999px, 74px, 0);
  }

  80% {
    clip: rect(43px, 9999px, 62px, 0);
  }

  85% {
    clip: rect(53px, 9999px, 28px, 0);
  }

  90% {
    clip: rect(30px, 9999px, 92px, 0);
  }

  95% {
    clip: rect(5px, 9999px, 71px, 0);
  }

  100% {
    clip: rect(37px, 9999px, 32px, 0);
  }
}

@media (max-width: 768px) {

  .grid-2-cols,
  .grid-3-cols {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }
}
