:root {
  --bg: #f8f5ef;
  --bg-strong: #f1e9db;
  --ink: #1a1d24;
  --muted: #6f7480;
  --line: #dbcdb6;
  --card: rgba(255, 252, 246, 0.82);
  --accent: #1e6f5c;
  --accent-2: #c86f2a;
  --accent-soft: rgba(30, 111, 92, 0.14);
  --danger: #c34747;
  --success: #2c8b61;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(80, 54, 20, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 10%, #fff8f0 0%, var(--bg) 45%, #ece5d6 100%);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3,
strong,
.brand {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(28, 26, 24, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 26, 24, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -2;
  opacity: 0.85;
}

.orb-a {
  width: 340px;
  height: 340px;
  top: -90px;
  right: -40px;
  background: rgba(30, 111, 92, 0.22);
  animation: floatA 9s ease-in-out infinite;
}

.orb-b {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -120px;
  background: rgba(200, 111, 42, 0.24);
  animation: floatB 12s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(16px);
  }
}

.site-header {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(156, 141, 119, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(83, 58, 26, 0.08);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.3px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(30, 111, 92, 0.14);
}

.site-header nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.site-header nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-header nav a.is-active {
  background: rgba(30, 111, 92, 0.16);
  color: var(--accent);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 50px;
  display: grid;
  gap: 20px;
}

.container.single {
  max-width: 760px;
  padding-top: 40px;
}

.workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.nav-column {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
}

.nav-column h3 {
  margin: 0;
}

.nav-card {
  width: 100%;
  border: 1px solid rgba(140, 123, 100, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  padding: 12px 12px;
  display: grid;
  gap: 4px;
  text-decoration: none;
}

.nav-card strong {
  font-size: 15px;
  letter-spacing: -0.2px;
}

.nav-card span {
  font-size: 12px;
  color: var(--muted);
}

.nav-card:hover {
  border-color: rgba(30, 111, 92, 0.45);
  background: rgba(255, 255, 255, 1);
}

.nav-card.is-active {
  border-color: rgba(30, 111, 92, 0.6);
  background: linear-gradient(140deg, rgba(30, 111, 92, 0.12), rgba(30, 111, 92, 0.04));
}

.link-card {
  margin-top: 2px;
}

.panel-column {
  min-height: 280px;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panelIn 0.28s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  border-radius: 24px;
  border: 1px solid rgba(146, 124, 95, 0.28);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.84) 0%, rgba(246, 237, 222, 0.82) 100%);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 46%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 7s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    transform: translateX(-120%);
  }
  45%,
  65% {
    transform: translateX(120%);
  }
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.subtitle {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

.hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border-radius: 14px;
  border: 1px solid rgba(139, 121, 95, 0.23);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.metric span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.metric small {
  font-size: 12px;
  color: var(--muted);
}

.card {
  border-radius: 22px;
  border: 1px solid rgba(139, 121, 95, 0.32);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h2,
.card h3 {
  margin: 0;
}

.badge {
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid rgba(30, 111, 92, 0.3);
  color: var(--accent);
  background: rgba(30, 111, 92, 0.1);
}

.badge.soft {
  color: #946012;
  border-color: rgba(148, 96, 18, 0.3);
  background: rgba(148, 96, 18, 0.12);
}

.desc {
  margin: 10px 0 14px;
  color: var(--muted);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.price-line strong {
  font-size: 34px;
  letter-spacing: -0.6px;
}

.price-line span {
  color: var(--muted);
  font-size: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}

input,
textarea,
button,
.btn-link {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(140, 123, 100, 0.35);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(30, 111, 92, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 111, 92, 0.12);
}

.form-grid {
  display: grid;
  gap: 10px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

button,
.btn-link {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #1b5f50);
  color: #f3fffa;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 16px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(30, 111, 92, 0.24);
}

button:hover,
.btn-link:hover {
  transform: translateY(-1px);
}

button.nav-card {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: none;
  justify-content: flex-start;
  align-items: flex-start;
  font-weight: 500;
}

button.nav-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: none;
}

button.nav-card.is-active {
  background: linear-gradient(140deg, rgba(30, 111, 92, 0.12), rgba(30, 111, 92, 0.04));
  color: var(--ink);
}

button:disabled {
  opacity: 0.66;
  cursor: wait;
  transform: none;
}

.result-box {
  margin: 8px 0 0;
  background: #16181f;
  color: #f4f6ff;
  border-radius: 12px;
  padding: 12px;
  min-height: 120px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.status-grid div {
  border: 1px solid rgba(140, 123, 100, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.status-grid span {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.status-grid strong {
  font-size: 17px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
}

.hint.ok {
  color: var(--success);
}

.hint.err {
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(25, 32, 32, 0.9);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.55s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 20px;
  }

  .card {
    padding: 18px;
  }

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

  .workspace {
    grid-template-columns: 1fr;
  }

  .nav-column {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    margin: 10px 10px 0;
    border-radius: 12px;
  }

  .site-header nav a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .container {
    padding: 18px 10px 40px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .nav-column {
    grid-template-columns: 1fr;
  }

  button,
  .btn-link {
    width: 100%;
  }
}
