:root {
  --bg: #0b1218;
  --bg-elevated: #121c26;
  --ink: #e8eef4;
  --ink-muted: #9aafc0;
  --accent: #2fbfa8;
  --accent-deep: #1a8f7c;
  --line: rgba(232, 238, 244, 0.12);
  --danger: #e07a5f;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-brand: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1100px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 191, 168, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(56, 120, 180, 0.18), transparent 50%),
    linear-gradient(180deg, #0a1016 0%, #0d1620 40%, #0b1218 100%);
  overflow-x: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(8, 14, 20, 0.86), rgba(8, 14, 20, 0.35) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 14, 20, 0.92);
  box-shadow: 0 1px 0 var(--line);
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--accent), #3d7ea6, var(--accent-deep), var(--accent));
  box-shadow: 0 0 0 3px rgba(47, 191, 168, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text em {
  font-family: var(--font-brand);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.header-phone {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 48px) clamp(28px, 4vw, 64px) 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-ken 18s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 18, 0.88) 0%, rgba(7, 12, 18, 0.55) 42%, rgba(7, 12, 18, 0.28) 70%),
    linear-gradient(180deg, rgba(7, 12, 18, 0.35) 0%, rgba(7, 12, 18, 0.15) 40%, rgba(7, 12, 18, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-hero {
  margin: 0 0 18px;
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #f2f7fb;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 34em;
  color: #c5d5e2;
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04120f;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3fd0b8, #1f9f8a);
}

.btn-ghost {
  border-color: rgba(232, 238, 244, 0.35);
  background: rgba(8, 14, 20, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section-head {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 clamp(28px, 4vw, 64px);
}

.section-head h2,
.supply-content h2,
.inquiry-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
}

.section-head p,
.supply-lead {
  margin: 0;
  color: var(--ink-muted);
  max-width: 36em;
}

.grades,
.apps,
.specs,
.inquiry {
  padding: 96px 0;
}

.grade-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.grade-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.grade-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.grade-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 24, 0.55));
  pointer-events: none;
}

.grade-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.grade-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.grade-item:last-child {
  border-bottom: 1px solid var(--line);
}

.grade-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.grade-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.grade-item header span {
  font-family: var(--font-brand);
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.grade-item p {
  margin: 0;
  color: var(--ink-muted);
}

/* Supply */
.supply {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.supply-media {
  position: absolute;
  inset: 0;
}

.supply-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supply-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 14, 20, 0.94) 0%, rgba(8, 14, 20, 0.78) 38%, rgba(8, 14, 20, 0.35) 70%),
    linear-gradient(180deg, rgba(8, 14, 20, 0.2), rgba(8, 14, 20, 0.65));
}

.supply-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 96px clamp(28px, 4vw, 64px);
}

.supply-lead {
  margin-bottom: 28px;
}

.supply-points {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.supply-points li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.supply-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.supply-points strong {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.supply-points span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Apps */
.app-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-strip article {
  padding: 28px 22px 28px 0;
  border-right: 1px solid var(--line);
}

.app-strip article:last-child {
  border-right: 0;
  padding-right: 0;
}

.app-strip h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.app-strip p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Specs */
.spec-table-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 64px);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-size: 0.92rem;
}

td:first-child {
  color: var(--ink-muted);
}

/* Inquiry */
.inquiry {
  padding-bottom: 120px;
}

.inquiry-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background:
    linear-gradient(145deg, rgba(18, 28, 38, 0.95), rgba(12, 20, 28, 0.9)),
    radial-gradient(500px 280px at 0% 0%, rgba(47, 191, 168, 0.12), transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inquiry-copy p {
  margin: 0 0 20px;
  color: var(--ink-muted);
}

.inquiry-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #c8d7e4;
}

.inquiry-copy li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.inquiry-form label.full,
.inquiry-form .btn.full,
.form-msg {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(8, 14, 20, 0.55);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: rgba(47, 191, 168, 0.65);
  box-shadow: 0 0 0 3px rgba(47, 191, 168, 0.12);
}

.inquiry-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-msg {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
}

.form-msg.is-ok {
  color: var(--accent);
}

.form-msg.is-err {
  color: var(--danger);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(28px, 4vw, 64px) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.08em;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
