:root {
  --void: #070806;
  --panel: rgba(16, 19, 16, 0.74);
  --panel-solid: #111510;
  --ink: #f7f2e6;
  --muted: rgba(247, 242, 230, 0.68);
  --soft: rgba(247, 242, 230, 0.1);
  --line: rgba(247, 242, 230, 0.18);
  --jade: #28d7a0;
  --amber: #f0b84d;
  --red: #ef5b45;
  --coal: #0d100d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(40, 215, 160, 0.14), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(240, 184, 77, 0.14), transparent 34%),
    linear-gradient(135deg, #050604 0%, #12150f 46%, #090a08 100%);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(247, 242, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 230, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(40, 215, 160, 0.8);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 215, 160, 0.22), rgba(240, 184, 77, 0.18));
  color: #eafff6;
  box-shadow: 0 0 26px rgba(40, 215, 160, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.07);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

nav a,
.text-button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 9px 13px;
  text-decoration: none;
}

nav a:hover,
.text-button:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(247, 242, 230, 0.07);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(82px, 9vw, 132px) clamp(18px, 5vw, 76px) clamp(72px, 9vw, 118px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 6, 0.94) 0%, rgba(7, 8, 6, 0.78) 36%, rgba(7, 8, 6, 0.26) 74%, rgba(7, 8, 6, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 8, 6, 0.28) 0%, rgba(7, 8, 6, 0.38) 58%, #070806 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero-copy h1,
.section-heading h2,
.process-band h2,
.contact-copy h2,
.admin-shell h1,
.not-found h1 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(42px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede,
.contact-copy p {
  max-width: 760px;
  color: rgba(247, 242, 230, 0.78);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.82;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.primary {
  border-color: rgba(40, 215, 160, 0.52);
  background: linear-gradient(135deg, #20c88e, #f0b84d);
  color: #07100a;
  box-shadow: 0 18px 48px rgba(40, 215, 160, 0.24);
}

.primary:hover {
  box-shadow: 0 22px 60px rgba(240, 184, 77, 0.25);
}

.secondary {
  background: rgba(247, 242, 230, 0.08);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.secondary:hover {
  border-color: rgba(247, 242, 230, 0.38);
  background: rgba(247, 242, 230, 0.14);
}

.compact {
  min-height: 40px;
  padding: 0 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-stats span,
.hero-console {
  border: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.56);
  backdrop-filter: blur(18px);
}

.hero-stats span {
  display: grid;
  min-width: 154px;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--muted);
}

.hero-stats strong {
  color: #fffaf0;
  font-size: 20px;
}

.hero-console {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 7px;
  max-width: 520px;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-console span {
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
}

.hero-console strong {
  color: var(--ink);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px clamp(18px, 5vw, 76px) 52px;
  background: #070806;
}

.keyword-strip span {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(247, 242, 230, 0.14);
  border-radius: 999px;
  background: rgba(247, 242, 230, 0.055);
  color: rgba(247, 242, 230, 0.82);
  font-weight: 900;
}

.section,
.contact-section,
.process-band {
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 76px);
}

.section {
  background:
    radial-gradient(circle at 90% 15%, rgba(239, 91, 69, 0.11), transparent 30%),
    linear-gradient(180deg, #070806, #0d100d);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.process-band h2,
.contact-copy h2,
.admin-shell h1,
.not-found h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
}

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

.service-grid article {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 242, 230, 0.105), rgba(247, 242, 230, 0.035)),
    rgba(12, 15, 12, 0.82);
}

.service-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--amber), var(--red));
}

.service-grid h3 {
  margin: 0 0 13px;
  color: #fffaf0;
  font-size: 24px;
}

.service-grid p,
.process-list p,
.message-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) 1fr;
  gap: 42px;
  background:
    linear-gradient(135deg, rgba(40, 215, 160, 0.13), transparent 34%),
    #10130f;
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 70px 160px 1fr;
  align-items: start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 242, 230, 0.055);
}

.process-list span {
  color: var(--amber);
  font-weight: 900;
}

.process-list strong {
  color: #fffaf0;
  font-size: 20px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(30px, 5vw, 76px);
  background:
    linear-gradient(180deg, rgba(7, 8, 6, 0.64), #070806),
    radial-gradient(circle at 15% 12%, rgba(240, 184, 77, 0.16), transparent 32%);
}

.note-box {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(240, 184, 77, 0.32);
  border-radius: 8px;
  background: rgba(240, 184, 77, 0.08);
  color: var(--muted);
}

.note-box strong {
  color: var(--amber);
}

.contact-form,
.login-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(247, 242, 230, 0.11), rgba(247, 242, 230, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.split,
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(247, 242, 230, 0.9);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(247, 242, 230, 0.18);
  border-radius: 8px;
  background: rgba(7, 8, 6, 0.72);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
}

select option {
  background: #111510;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 242, 230, 0.42);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(40, 215, 160, 0.74);
  box-shadow: 0 0 0 4px rgba(40, 215, 160, 0.13);
}

textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.form-status[data-type="success"] {
  color: var(--jade);
}

.form-status[data-type="error"] {
  color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #070806;
  color: var(--muted);
}

.admin-body {
  min-height: 100vh;
}

.admin-shell {
  padding: clamp(28px, 5vw, 70px);
}

.login-card {
  max-width: 520px;
  margin: 6vh auto;
}

.admin-panel {
  display: grid;
  gap: 22px;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.message-list {
  display: grid;
  gap: 16px;
}

.message-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 242, 230, 0.075);
}

.message-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.message-card h2 {
  margin: 8px 0;
  color: #fffaf0;
  font-size: clamp(22px, 3vw, 32px);
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(240, 184, 77, 0.4);
  border-radius: 999px;
  background: rgba(240, 184, 77, 0.12);
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.status.processing {
  border-color: rgba(40, 215, 160, 0.38);
  background: rgba(40, 215, 160, 0.12);
  color: var(--jade);
}

.status.replied {
  border-color: rgba(247, 242, 230, 0.3);
  background: rgba(247, 242, 230, 0.12);
  color: var(--ink);
}

.status.closed {
  border-color: rgba(239, 91, 69, 0.34);
  background: rgba(239, 91, 69, 0.1);
  color: #ff9a89;
}

.message-details {
  white-space: pre-wrap;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message-meta a,
.message-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 242, 230, 0.06);
  color: var(--ink);
  text-decoration: none;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 24px;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .contact-section,
  .process-band {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-console {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
    padding-top: 70px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-stats span {
    min-width: 100%;
  }

  .service-grid,
  .split,
  .filters {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .message-card-head {
    flex-direction: column;
  }
}
