:root {
  --bg: #06080f;
  --panel: #0c111d;
  --line: #1f2738;
  --text: #edf2ff;
  --sub: #9aa7c4;
  --accent: #78f2ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text);
  background: radial-gradient(circle at 80% -10%, #1a2848 0%, var(--bg) 45%);
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
}

a { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) .8px, transparent .8px);
  background-size: 3px 3px;
  opacity: .05;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 5vw;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,8,15,.62);
  backdrop-filter: blur(10px);
  transition: all .25s ease;
}
.site-header.scrolled {
  padding: 12px 5vw;
  border-color: var(--line);
  background: rgba(6,8,15,.9);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
}
.lang-switch:hover {
  border-color: var(--accent);
}
nav a {
  text-decoration: none;
  color: var(--sub);
  margin-left: 22px;
  font-size: 14px;
}
nav a:hover { color: var(--text); }

main { width: min(1180px, 90vw); margin: 0 auto; }
.hero {
  padding: 3.25rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0f1a;
  box-shadow: 0 0 30px rgba(120,242,255,.08);
  height: 500px;
  min-height: 400px;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02) brightness(.62);
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-media > img {
  width: 100%;
  height: 500px;
  min-height: 400px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02) brightness(.62);
}
.hero-copy {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(4,8,16,.15) 0%, rgba(4,8,16,.82) 64%, rgba(4,8,16,.92) 100%);
}
.kicker {
  margin: 0 0 .9rem;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  line-height: 1.25;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  letter-spacing: -.02em;
}
.lead {
  margin-top: 1.5rem;
  max-width: 820px;
  color: var(--sub);
  font-size: 1.06rem;
  line-height: 1.9;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #02101a;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}

.section {
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 1.3rem; }
.section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-list article {
  background: linear-gradient(180deg, rgba(15,20,35,.8), rgba(12,17,29,.85));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.service-list img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.service-list h3 { margin: 14px 16px 8px; font-size: 1.05rem; }
.service-list p { margin: 0 16px 16px; color: var(--sub); line-height: 1.75; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags span {
  border: 1px solid var(--line);
  background: rgba(12,17,29,.72);
  color: var(--sub);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
}

.workflow {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.workflow li {
  padding: 14px 16px;
  background: rgba(12,17,29,.72);
  border-bottom: 1px dashed var(--line);
  color: var(--sub);
  line-height: 1.8;
}
.workflow li:last-child { border-bottom: none; }
.workflow strong { color: var(--text); }

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

.insight-intro p {
  margin: 0;
  max-width: 760px;
  color: var(--sub);
  line-height: 1.8;
}

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

.article-feed-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(120, 242, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(15,20,35,.88), rgba(9,14,26,.94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

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

.article-card-tag {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.article-card-date {
  color: var(--sub);
  font-size: 12px;
}

.article-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.45;
}

.article-card p {
  margin: 0;
  color: var(--sub);
  line-height: 1.8;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.article-card-link:hover {
  color: var(--accent);
}

.article-hero {
  padding-bottom: 2rem;
}

.article-hero-shell {
  height: auto;
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(120,242,255,.12), transparent 28%),
    linear-gradient(145deg, #0e1830, #091121);
}

.article-hero-copy {
  position: relative;
  background: none;
}

.article-detail-wrap {
  padding-top: 1.6rem;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-detail-time {
  color: var(--sub);
  font-size: 14px;
}

.article-detail-content {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 17, 31, 0.95), rgba(9, 14, 26, 0.92));
  padding: clamp(20px, 4vw, 34px);
  line-height: 1.9;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3 {
  line-height: 1.3;
}

.article-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.article-detail-content a {
  color: var(--accent);
}

.article-empty {
  margin: 0;
  color: var(--sub);
}

.contact {
  padding: 2.25rem 0 2.5rem;
}
.contact h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  max-width: 860px;
}
.contact p {
  color: var(--sub);
  line-height: 1.8;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 22px;
  color: var(--sub);
}

.site-record {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--sub);
  font-size: 13px;
}

.site-record a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
  text-decoration: none;
}

.site-record-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-record-item img {
  height: 1.5em;
  width: auto;
  object-fit: contain;
}

.site-record a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .service-list { grid-template-columns: 1fr; }
  .article-feed-grid,
  .article-feed-grid-wide { grid-template-columns: 1fr; }
  .insight-intro {
    flex-direction: column;
    align-items: stretch;
  }
  nav { display: none; }
  .header-right { margin-left: auto; }
  .hero { padding-top: 2.6rem; }
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #132540, #0a1428);
  color: var(--accent);
  font-size: 24px;
  cursor: pointer;
}
.chat-badge {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 41;
  background: #ff4d6d;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 7px;
}
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(360px, 90vw);
  background: #0a1224;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  z-index: 40;
  display: none;
}
.chat-panel.open { display: block; }
.chat-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.chat-panel header button {
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 20px;
  cursor: pointer;
}
.chat-list {
  max-height: 280px;
  overflow: auto;
  padding: 12px;
}
.chat-msg { margin-bottom: 10px; }
.chat-msg .bubble {
  background: #111d35;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.6;
  color: var(--text);
}
.chat-msg.from-admin .bubble { border-color: #2f5aa5; }
.chat-msg .meta {
  color: var(--sub);
  font-size: 11px;
  margin-top: 4px;
}
.chat-form {
  border-top: 1px solid var(--line);
  padding: 10px;
}
.chat-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #091225;
  color: var(--text);
  padding: 8px;
  margin-bottom: 8px;
}
.chat-tip {
  margin: 0;
  padding: 0 10px 10px;
  font-size: 12px;
  color: var(--sub);
}

