:root {
  --nexa-black: #030305;
  --nexa-bg: #050507;
  --nexa-card: #0b0b0f;
  --nexa-card-light: #111116;
  --nexa-gray: #85858f;
  --nexa-light-gray: #b9b9c2;
  --nexa-white: #ffffff;

  --nexa-cyan: #00e5ff;
  --nexa-pink: #ff00c8;

  --nexa-gradient: linear-gradient(
    105deg,
    #00e5ff 0%,
    #5b7cff 45%,
    #ff00c8 100%
  );

  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.16);

  --shadow:
    0 30px 80px rgba(0, 0, 0, 0.5);

  --radius: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(0, 229, 255, 0.07),
      transparent 32%
    ),
    var(--nexa-bg);
  color: var(--nexa-white);
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 500;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.08;
  z-index: -2;
}

.ambient-one {
  top: 10%;
  left: -280px;
  background: var(--nexa-cyan);
}

.ambient-two {
  top: 45%;
  right: -280px;
  background: var(--nexa-pink);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.025;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* HEADER */

.site-header {
  width: 100%;
}

.nav-container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 28px 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  opacity: 0.72;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.back-link:hover {
  opacity: 1;
  transform: translateX(-3px);
}

.back-arrow {
  font-size: 19px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;

  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;

  background: var(--nexa-cyan);

  box-shadow:
    0 0 10px rgba(0, 229, 255, 0.9);
}

/* MAIN */

.main-container {
  width: min(980px, 92%);
  margin: 0 auto;
  padding-bottom: 80px;
}

/* HERO */

.hero {
  text-align: center;
  padding: 48px 0 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: rgba(255, 255, 255, 0.45);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;

  margin-bottom: 28px;
}

.eyebrow-line {
  width: 25px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-mark {
  display: inline-block;
  line-height: 0.8;
  margin-bottom: 13px;
}

.brand-name {
  font-size: clamp(46px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: -0.08em;

  background: var(--nexa-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(
    0 0 30px rgba(0, 229, 255, 0.12)
  );
}

.brand-sub {
  margin-top: 9px;

  font-size: clamp(18px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: 0.31em;

  color: rgba(255, 255, 255, 0.9);
}

.est {
  color: rgba(255, 255, 255, 0.38);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35em;

  margin-top: 16px;
}

.hero-title {
  max-width: 700px;
  margin: 42px auto 16px;

  font-size: clamp(38px, 6vw, 65px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero-title span {
  display: block;

  background: var(--nexa-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 610px;
  margin: 0 auto;

  color: var(--nexa-gray);

  font-size: 15px;
  line-height: 1.8;
}

/* TOOL CARD */

.tool-card {
  position: relative;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.008)
    ),
    var(--nexa-card);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  padding: clamp(22px, 5vw, 48px);

  box-shadow: var(--shadow);

  overflow: hidden;
}

.tool-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 8%;

  width: 84%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.55),
    rgba(255, 0, 200, 0.55),
    transparent
  );
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 20px;

  margin-bottom: 35px;
}

.tool-kicker {
  display: block;

  color: var(--nexa-cyan);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;

  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.045em;
}

.page-title span {
  background: var(--nexa-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--nexa-gray);
  font-size: 14px;
  line-height: 1.7;

  max-width: 550px;

  margin-top: 8px;
}

.tool-status {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  gap: 7px;

  color: rgba(255, 255, 255, 0.4);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;

  border: 1px solid var(--border);
  padding: 8px 11px;
  border-radius: 100px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: var(--nexa-cyan);

  box-shadow: 0 0 10px var(--nexa-cyan);
}

/* PALETTE */

.palette-stage {
  position: relative;

  min-height: 300px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    ),
    #060608;

  overflow: hidden;
}

.empty-state {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 35px;
}

.empty-icon {
  display: flex;
  gap: 5px;

  height: 45px;
  align-items: flex-end;

  margin-bottom: 22px;
}

.empty-icon span {
  display: block;

  width: 12px;
  border-radius: 5px;

  background: var(--nexa-gradient);

  opacity: 0.75;
}

.empty-icon span:nth-child(1) {
  height: 24px;
}

.empty-icon span:nth-child(2) {
  height: 36px;
}

.empty-icon span:nth-child(3) {
  height: 45px;
}

.empty-icon span:nth-child(4) {
  height: 33px;
}

.empty-icon span:nth-child(5) {
  height: 19px;
}

.empty-title {
  font-size: 17px;
  font-weight: 700;
}

.empty-description {
  margin-top: 7px;

  color: #62626c;

  font-size: 13px;
}

.palette-container {
  display: flex;
  min-height: 300px;

  opacity: 0;
  transform: scale(0.985);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.palette-container.visible {
  opacity: 1;
  transform: scale(1);
}

.palette {
  display: flex;
  width: 100%;
  min-height: 300px;
}

.color-box {
  position: relative;

  flex: 1;
  min-width: 0;

  display: flex;
  align-items: flex-end;

  padding: 18px;

  cursor: pointer;

  transition:
    flex 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.3s ease;
}

.color-box:hover {
  flex: 1.28;
  filter: brightness(1.08);
}

.color-box::after {
  content: "CLICK TO COPY";

  position: absolute;
  top: 18px;
  left: 50%;

  transform: translateX(-50%) translateY(-5px);

  padding: 6px 8px;

  border-radius: 5px;

  background: rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(10px);

  color: rgba(255, 255, 255, 0.85);

  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;

  opacity: 0;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  white-space: nowrap;
}

.color-box:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.color-overlay {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 8px;
}

.color-number {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.65;
}

.color-hex {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ACTIONS */

.palette-actions {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;

  margin-top: 16px;
}

.btn {
  position: relative;

  min-height: 54px;

  border-radius: 13px;

  border: none;

  font-weight: 700;
  font-size: 14px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gradient {
  background: var(--nexa-gradient);
  color: #050507;

  box-shadow:
    0 10px 35px rgba(0, 229, 255, 0.09);
}

.btn-gradient:hover {
  filter: brightness(1.08);

  box-shadow:
    0 15px 45px rgba(0, 229, 255, 0.15);
}

.generate-button {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 13px;
}

.button-icon {
  font-size: 17px;
}

.button-arrow {
  font-size: 18px;
  margin-left: 4px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);

  border: 1px solid var(--border);

  color: #fff;
}

.btn-secondary:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.06);
}

.copy-icon {
  margin-left: 7px;
  color: #777781;
}

.tip-row {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #55555e;

  font-size: 10px;

  margin-top: 14px;
}

.tip-icon {
  width: 15px;
  height: 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #4b4b54;
  border-radius: 50%;

  font-size: 9px;
}

/* PAYWALL */

.paywall {
  position: relative;

  display: none;

  margin-top: 25px;

  padding: 35px 25px;

  text-align: center;

  overflow: hidden;

  border-radius: 20px;

  border: 1px solid rgba(0, 229, 255, 0.18);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(0, 229, 255, 0.07),
      transparent 60%
    ),
    #08080b;
}

.paywall-glow {
  position: absolute;

  width: 220px;
  height: 220px;

  left: 50%;
  top: -150px;

  transform: translateX(-50%);

  background: var(--nexa-cyan);

  filter: blur(100px);

  opacity: 0.08;
}

.pro-badge {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 7px 10px;

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.09);

  color: #fff;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.pro-badge span {
  color: var(--nexa-cyan);
}

.paywall h2 {
  position: relative;

  margin-top: 18px;

  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.04em;
}

.paywall-description {
  position: relative;

  max-width: 550px;

  margin: 10px auto 22px;

  color: #777781;

  font-size: 13px;
  line-height: 1.7;
}

.paywall-price {
  position: relative;

  font-size: 36px;
  font-weight: 700;

  margin-bottom: 20px;
}

.paywall-price > span {
  font-size: 18px;
  color: var(--nexa-cyan);
}

.paywall-price small {
  display: block;

  color: #55555e;

  font-size: 9px;
  font-weight: 500;

  margin-top: 2px;

  letter-spacing: 0.08em;
}

.pay-button {
  position: relative;

  width: min(380px, 100%);

  display: inline-flex;
  justify-content: center;
  align-items: center;

  gap: 20px;
}

.secure-note {
  position: relative;

  margin-top: 13px;

  color: #44444c;

  font-size: 9px;
}

/* DETAILS */

.palette-info {
  margin-top: 28px;

  display: none;
}

.info-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #5e5e68;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;

  padding-bottom: 11px;

  border-bottom: 1px solid var(--border);
}

.colour-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  gap: 8px;

  margin-top: 10px;
}

.colour-detail {
  padding: 12px;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(255, 255, 255, 0.05);

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.colour-detail:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.detail-top {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 7px;
}

.detail-swatch {
  width: 18px;
  height: 18px;

  border-radius: 5px;
}

.detail-number {
  color: #55555e;

  font-size: 8px;
  font-weight: 700;
}

.detail-hex {
  font-size: 11px;
  font-weight: 700;
}

/* EXPERIENCE */

.experience-note {
  display: grid;
  grid-template-columns: 80px 1fr;

  gap: 25px;

  margin: 90px 0 40px;

  padding: 10px 10px 10px 0;
}

.experience-number {
  color: rgba(255, 255, 255, 0.12);

  font-size: 45px;
  font-weight: 700;

  letter-spacing: -0.08em;
}

.experience-kicker {
  color: var(--nexa-pink);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.experience-note h2 {
  margin-top: 9px;

  max-width: 600px;

  font-size: clamp(27px, 4vw, 45px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.experience-note h2 span {
  background: var(--nexa-gradient);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.experience-note p {
  max-width: 570px;

  margin-top: 15px;

  color: #676771;

  font-size: 13px;
  line-height: 1.8;
}

/* FOOTER */

footer {
  padding-top: 30px;

  border-top: 1px solid var(--border);

  display: flex;
  align-items: center;
  gap: 20px;

  color: #45454d;

  font-size: 10px;
}

.footer-brand {
  display: flex;
  flex-direction: column;

  line-height: 0.9;
}

.footer-brand strong {
  font-size: 17px;

  background: var(--nexa-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand span {
  font-size: 6px;
  letter-spacing: 0.28em;

  color: #85858d;

  margin-top: 4px;
}

.footer-copy {
  margin-left: auto;
}

/* TOAST */

.toast {
  position: fixed;

  left: 50%;
  bottom: 25px;

  transform:
    translate(-50%, 30px);

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 11px 15px;

  border-radius: 100px;

  background: rgba(15, 15, 18, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(20px);

  color: #fff;

  font-size: 11px;
  font-weight: 700;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-check {
  width: 17px;
  height: 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--nexa-gradient);

  color: #000;

  font-size: 10px;
}

/* RESPONSIVE */

@media (max-width: 720px) {

  .nav-container {
    padding: 20px 0;
  }

  .nav-brand {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .tool-top {
    flex-direction: column;
  }

  .tool-status {
    align-self: flex-start;
  }

  .palette-stage,
  .palette-container,
  .palette {
    min-height: 460px;
  }

  .palette {
    flex-direction: column;
  }

  .color-box {
    min-height: 92px;
    width: 100%;

    transition:
      min-height 0.35s ease,
      filter 0.3s ease;
  }

  .color-box:hover {
    flex: initial;
    min-height: 108px;
  }

  .color-box::after {
    display: none;
  }

  .palette-actions {
    grid-template-columns: 1fr;
  }

  .colour-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-note {
    grid-template-columns: 50px 1fr;

    gap: 15px;

    margin-top: 65px;
  }

  .experience-number {
    font-size: 32px;
  }

  footer {
    flex-wrap: wrap;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 430px) {

  .main-container {
    width: 94%;
  }

  .tool-card {
    padding: 18px;
    border-radius: 21px;
  }

  .hero-description {
    font-size: 13px;
  }

  .palette-stage,
  .palette-container,
  .palette {
    min-height: 420px;
  }

  .color-box {
    min-height: 84px;
  }

  .color-hex {
    font-size: 12px;
  }

  .colour-list {
    grid-template-columns: 1fr 1fr;
  }

  .experience-note {
    grid-template-columns: 1fr;
  }

  .experience-number {
    display: none;
  }
}