:root {
  --purple: #7c22ff;
  --purple-2: #9f60ff;
  --blue: #168cff;
  --cyan: #54c7ff;
  --ink: #0b0b12;
  --muted: #555b6a;
  --paper: #fffefd;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(124, 34, 255, 0.2);
  --shadow: 0 18px 38px rgba(47, 87, 160, 0.08);
  --nav-font: Impact, "Arial Black", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at 95% 10%, rgba(22, 140, 255, 0.16), transparent 26%),
    radial-gradient(circle at 0% 82%, rgba(124, 34, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #fcfbff 48%, #f3f8ff 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(10, 10, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 20, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px clamp(24px, 4vw, 64px) 28px;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: absolute;
  left: 36%;
  right: 0;
  bottom: 4px;
  height: 34px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  clip-path: polygon(0 52%, 100% 0, 96% 72%, 4% 100%);
  opacity: 0.88;
  z-index: -1;
}

.working-page .site-shell::before {
  display: none;
}

.site-doodle {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.72;
}

.working-page .site-doodle {
  display: none;
}

.site-doodle.lightbulb {
  left: 42px;
  top: 152px;
  width: 100px;
  height: 100px;
  border: 6px solid rgba(124, 34, 255, 0.35);
  border-radius: 50%;
}

.site-doodle.lightbulb::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -28px;
  width: 34px;
  height: 34px;
  border: 6px solid rgba(22, 140, 255, 0.45);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.site-doodle.star {
  left: 38px;
  bottom: 264px;
  font-size: 72px;
  color: var(--purple);
  font-family: cursive;
  transform: rotate(-12deg);
}

.site-doodle.arrow {
  left: 46%;
  top: 210px;
  width: 220px;
  height: 160px;
  border-top: 8px solid var(--purple);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.site-doodle.arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -22px;
  width: 38px;
  height: 38px;
  border-right: 8px solid var(--purple);
  border-top: 8px solid var(--purple);
  transform: rotate(65deg);
}

.site-doodle.cone {
  left: 55%;
  top: 280px;
  width: 74px;
  height: 80px;
}

.site-doodle.cone::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid var(--purple);
  clip-path: polygon(50% 0, 84% 78%, 16% 78%);
  border-radius: 10px;
}

.site-doodle.dots-left {
  left: -30px;
  bottom: -20px;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle, rgba(124, 34, 255, 0.6) 0 4px, transparent 4.5px);
  background-size: 24px 24px;
  transform: rotate(-8deg);
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: 86px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #050508;
  min-width: 210px;
  max-width: 380px;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.08));
}

.brand-mark img {
  display: block;
  width: min(330px, 34vw);
  min-width: 210px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 44px);
  margin-left: auto;
  font-family: var(--nav-font);
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a,
.nav-utility a,
.button-link,
.card-link {
  text-decoration: none;
}

.nav-links a,
.nav-utility a {
  position: relative;
  color: #07070a;
}

.nav-links a.active::after,
.nav-utility a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transform: rotate(-1deg);
  box-shadow: 0 6px 14px rgba(22, 140, 255, 0.25);
}

.nav-links a.active,
.nav-utility a.active {
  color: var(--purple);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 22px;
  font-weight: 700;
}

.nav-user {
  max-width: 220px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.logout-form {
  margin: 0;
}

.button-link,
.logout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: #fff;
  font-family: var(--nav-font);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(22, 140, 255, 0.2);
  cursor: pointer;
}

.button-link.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border: 2px solid rgba(124, 34, 255, 0.3);
  box-shadow: none;
}

.site-main {
  position: relative;
  z-index: 1;
  padding-top: clamp(26px, 4vh, 44px);
}

.flash-list {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 1180px;
}

.flash-list li {
  margin-bottom: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.82);
  border-left: 5px solid var(--purple);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 48vw);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  min-height: calc(100vh - 190px);
}

.hero-copy {
  max-width: 770px;
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--nav-font);
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-title,
.page-title {
  margin: 0;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-family: var(--nav-font);
  color: #050508;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
}

.hero-title {
  font-size: clamp(62px, 9vw, 150px);
}

.hero-title .accent,
.page-title .accent {
  display: block;
  font-family: "Brush Script MT", "Segoe Print", Impact, cursive;
  letter-spacing: -0.04em;
  background: linear-gradient(95deg, var(--purple) 4%, #6637ff 44%, var(--blue) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skew(-5deg) rotate(-1deg);
  transform-origin: left center;
}

.hero-title .accent {
  margin-top: 0.08em;
  font-size: 0.7em;
}

.page-title {
  font-size: clamp(42px, 5vw, 84px);
}

.accent-line {
  display: block;
  margin-top: 10px;
  font-family: "Brush Script MT", "Segoe Print", Impact, cursive;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(95deg, var(--purple) 4%, #6637ff 44%, var(--blue) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skew(-5deg) rotate(-1deg);
  transform-origin: left center;
}

.hazard {
  width: min(620px, 86%);
  height: 30px;
  margin: 24px 0 36px 6px;
  background:
    repeating-linear-gradient(-55deg, var(--purple) 0 28px, transparent 28px 47px),
    linear-gradient(90deg, var(--purple), var(--blue));
  clip-path: polygon(0 18%, 100% 0, 97% 82%, 2% 100%);
  opacity: 0.92;
}

.message-card,
.feature-card,
.content-card,
.cta-panel,
.link-grid article {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.message-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: center;
  width: min(620px, 96%);
  padding: 22px 28px;
  border: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--blue)) 1;
  font-weight: 800;
}

.message-card p,
.content-card p,
.feature-copy p,
.cta-panel p,
.page-intro p,
.link-grid p {
  margin: 0;
  color: #2b2e39;
  line-height: 1.5;
}

.message-card p {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.22;
}

.message-card small {
  display: block;
  margin-top: 8px;
  font-size: clamp(14px, 1.2vw, 18px);
  color: #2b2e39;
  font-weight: 500;
}

.message-card small strong {
  color: var(--purple);
}

.tools-icon {
  width: 56px;
  height: 56px;
  position: relative;
  filter: drop-shadow(0 4px 0 rgba(22, 140, 255, 0.12));
}

.tools-icon::before,
.tools-icon::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  width: 8px;
  height: 58px;
  border: 5px solid var(--purple);
  border-radius: 8px;
  transform: rotate(45deg);
  background: white;
}

.tools-icon::after {
  transform: rotate(-45deg);
  border-color: var(--blue);
}

.hero-media {
  position: relative;
  min-height: 620px;
}

.paint-splash {
  position: absolute;
  right: -80px;
  top: -40px;
  width: 330px;
  height: 330px;
  background:
    radial-gradient(circle at 45% 45%, rgba(124, 34, 255, 0.9) 0 8%, transparent 9%),
    radial-gradient(circle at 58% 52%, rgba(22, 140, 255, 0.55) 0 5%, transparent 6%);
  background-size: 34px 34px, 48px 48px;
  opacity: 0.38;
  transform: rotate(8deg);
}

.hero-photo {
  position: absolute;
  inset: 32px -64px 76px 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 4% 100%, 0 62%);
  box-shadow: -20px 28px 60px rgba(0, 0, 0, 0.1);
  filter: saturate(1.02) contrast(1.02);
}

.slash {
  position: absolute;
  left: -18px;
  top: -20px;
  width: 64px;
  height: 108%;
  background: linear-gradient(180deg, rgba(124, 34, 255, 0.15), rgba(22, 140, 255, 0.42));
  transform: rotate(9deg);
  border-left: 5px solid rgba(124, 34, 255, 0.55);
  border-right: 5px solid rgba(22, 140, 255, 0.28);
}

.brush-blue {
  position: absolute;
  right: -95px;
  bottom: 34px;
  width: 360px;
  height: 175px;
  background: linear-gradient(135deg, rgba(124, 34, 255, 0.38), rgba(22, 140, 255, 0.9));
  clip-path: polygon(8% 54%, 95% 0, 72% 28%, 100% 46%, 63% 55%, 85% 76%, 21% 100%, 38% 70%, 0 88%);
  opacity: 0.9;
}

.feature-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: -40px auto 0;
  max-width: 1120px;
  padding: 18px 10px 0;
}

.feature-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px 20px;
  border-right: 2px solid rgba(124, 34, 255, 0.35);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card h3,
.content-card h2,
.cta-panel h2,
.link-grid h3 {
  margin: 0 0 8px;
}

.feature-copy p {
  font-size: 16px;
}

.line-icon {
  width: 58px;
  height: 58px;
  border: 5px solid var(--purple);
  border-radius: 14px;
  position: relative;
  color: var(--purple);
}

.line-icon.cap {
  border-radius: 0;
  border: 0;
}

.line-icon.cap::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 54px;
  height: 28px;
  border: 5px solid var(--purple);
  clip-path: polygon(50% 0, 100% 42%, 50% 84%, 0 42%);
}

.line-icon.target {
  border-radius: 50%;
}

.line-icon.target::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 5px solid var(--purple);
  border-radius: 50%;
}

.line-icon.target::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -4px;
  width: 26px;
  height: 5px;
  background: var(--blue);
  transform: rotate(-35deg);
}

.line-icon.book::before,
.line-icon.book::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 8px;
  width: 21px;
  border: 4px solid var(--purple);
  border-radius: 8px 2px 2px 8px;
}

.line-icon.book::before {
  left: 6px;
}

.line-icon.book::after {
  right: 6px;
  transform: scaleX(-1);
}

.line-icon.trophy::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 24px;
  height: 25px;
  border: 5px solid var(--purple);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.line-icon.trophy::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 32px;
  width: 6px;
  height: 18px;
  background: var(--purple);
  box-shadow: -13px 18px 0 1px var(--purple), 13px 18px 0 1px var(--purple);
}

.page-stack {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.page-intro,
.content-grid,
.link-grid {
  display: grid;
  gap: 24px;
}

.page-intro {
  align-content: start;
}

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.content-card,
.cta-panel,
.link-grid article {
  padding: 24px;
  border: 2px solid rgba(124, 34, 255, 0.16);
}

.content-card ul,
.cta-panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #2b2e39;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 140, 255, 0.1);
  border: 1px solid rgba(22, 140, 255, 0.18);
  font-family: var(--nav-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--purple);
  font-family: var(--nav-font);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-link::after {
  content: ">";
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-utility {
    margin-left: auto;
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-photo {
    inset: 0 -24px 30px 10px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }

  .feature-card:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 24px 18px;
  }

  .brand-mark {
    min-width: 185px;
  }

  .nav-links {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .nav-utility {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 58px;
  }

  .message-card {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 380px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid rgba(124, 34, 255, 0.25);
  }

  .site-doodle {
    opacity: 0.35;
  }
}
