:root {
  --ink: #17201f;
  --muted: #5b6662;
  --line: #dbe4df;
  --paper: #fbfcf8;
  --soft: #e2f0df;
  --mint: #bfdc87;
  --sky: #dff1ff;
  --teal: #245f26;
  --coral: #e15c45;
  --gold: #d99b25;
  --graphite: #27312f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 32, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(111, 154, 54, 0.22), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(223, 241, 255, 0.9), transparent 25%),
    var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 228, 223, 0.9);
  background: rgba(251, 252, 248, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--gold);
  box-shadow: 5px 5px 0 var(--ink);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.neuron-link {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 4;
}

.neuron-node {
  fill: var(--mint);
  stroke: var(--ink);
  stroke-width: 4;
}

.neuron-node.main {
  fill: var(--coral);
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 850;
}

nav a:hover {
  color: var(--teal);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action,
.primary-button {
  background: var(--teal);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.account-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--gold);
  padding: 0 12px;
  font-weight: 950;
}

.logout-button {
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.secondary-button {
  background: var(--white);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(23, 32, 31, 0.22);
}

.header-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translate(-1px, -1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px clamp(18px, 5vw, 72px) 92px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(64px, 11vw, 148px);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 950;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 650;
}

.hero-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: min(100%, 620px);
  min-height: 66px;
  margin: 28px 0 22px;
  padding: 10px 12px 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(23, 32, 31, 0.18);
  cursor: text;
}

.hero-search span {
  color: var(--ink);
  font-weight: 950;
}

.hero-search a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 800;
}

.hero-search input {
  display: none;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  font-weight: 800;
}

.hero-search.active span {
  display: none;
}

.hero-search.active input {
  display: block;
}

.hero-search input::placeholder {
  color: var(--muted);
}

.hero-search input:focus {
  box-shadow: 0 0 0 4px rgba(36, 95, 38, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-illustration {
  position: relative;
  min-height: 440px;
}

.hero-illustration::before {
  content: "";
  position: absolute;
  inset: 46px 8px 28px;
  border: 2px dashed rgba(23, 32, 31, 0.22);
  border-radius: 34px;
  transform: rotate(-2deg);
}

.brain-card {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--ink);
  font-weight: 950;
}

.brain-card-main {
  top: 74px;
  left: 50%;
  width: min(340px, 88%);
  min-height: 190px;
  padding: 28px;
  transform: translateX(-50%) rotate(2deg);
}

.brain-card-main strong,
.brain-card-main small {
  display: block;
}

.brain-card-main strong {
  margin-top: 58px;
  font-size: 34px;
  line-height: 1;
}

.brain-card-main small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.brain-core {
  position: absolute;
  top: 26px;
  left: 28px;
  width: 50px;
  height: 50px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sky);
}

.brain-core::before,
.brain-core::after {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

.brain-core::before {
  width: 16px;
  height: 16px;
  right: -16px;
  top: -6px;
}

.brain-core::after {
  width: 12px;
  height: 12px;
  right: -22px;
  bottom: 2px;
}

.brain-path {
  position: absolute;
  right: 12%;
  bottom: 90px;
  display: grid;
  gap: 12px;
}

.brain-path span {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

.mini {
  display: grid;
  min-width: 104px;
  min-height: 54px;
  place-items: center;
  padding: 0 16px;
}

.mini.one {
  top: 30px;
  right: 8px;
  background: var(--mint);
  transform: rotate(7deg);
}

.mini.two {
  left: 4px;
  bottom: 116px;
  background: var(--sky);
  transform: rotate(-6deg);
}

.mini.three {
  right: 38px;
  bottom: 34px;
  background: #ffe6db;
  transform: rotate(4deg);
}

.catalog-section,
.trend-section,
.submit-section,
.plan-section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.trend-section {
  background: rgba(191, 220, 135, 0.22);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.plan-section p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
}

.catalog-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(100%, 480px);
  color: var(--muted);
  font-weight: 850;
}

.search-box input,
.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.search-box input {
  min-height: 52px;
  padding: 0 16px;
}

.search-box input:focus,
.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter.active {
  border-color: var(--ink);
  background: var(--gold);
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trend-item {
  display: grid;
  gap: 10px;
  min-height: 150px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(23, 32, 31, 0.18);
  padding: 16px;
}

.trend-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--gold);
  font-weight: 950;
}

.trend-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.project-card {
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 32, 31, 0.06);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.app-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--white);
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
}

.tag {
  align-self: start;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.project-card p {
  color: var(--muted);
  font-weight: 650;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 900;
}

.small-action.primary {
  border-color: var(--ink);
  background: var(--graphite);
  color: var(--white);
}

.submit-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.submit-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(23, 32, 31, 0.14);
}

.submit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.submit-form input,
.submit-form select {
  min-height: 50px;
  padding: 0 14px;
}

.submit-form textarea {
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
}

.plan-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.plan-list {
  display: grid;
  gap: 14px;
}

.plan-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.plan-list span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 950;
}

.plan-list h3,
.plan-list p {
  grid-column: 2;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong {
  color: var(--ink);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 32, 31, 0.42);
}

.auth-modal.open {
  display: flex;
}

.auth-card {
  position: relative;
  width: min(100%, 460px);
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 28px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.auth-copy {
  color: var(--muted);
  font-weight: 650;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.auth-tab {
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}

.auth-tab.active {
  border-color: var(--ink);
  background: var(--gold);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.auth-form input {
  min-height: 50px;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  padding: 0 14px;
}

.auth-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(36, 95, 38, 0.14);
}

.auth-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 850;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero,
  .project-grid,
  .trend-grid,
  .submit-section,
  .plan-section {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    min-height: 340px;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-action {
    display: none;
  }

  .account-area .header-action {
    display: inline-flex;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .account-area {
    width: 100%;
    justify-content: flex-end;
  }

  .account-chip,
  .logout-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 24px;
  }

  .hero {
    min-height: auto;
    padding-block: 52px 70px;
  }

  h1 {
    font-size: 50px;
    line-height: 0.9;
  }

  .hero-search input {
    width: 100%;
  }

  .hero-illustration {
    min-height: 300px;
  }

  .brain-card-main {
    top: 44px;
  }

  .mini.one {
    top: 10px;
  }

  .catalog-section,
  .trend-section,
  .submit-section,
  .plan-section {
    padding-block: 58px;
  }

  .card-actions {
    flex-direction: column;
  }
}
