/* IBEX-inspired clean B2B hardware site: white, corporate blue, restrained */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-mute: #eef2f7;
  --text: #1a2332;
  --text-muted: #5a6578;
  --line: #d8dee8;
  --brand: #0057b8;
  --brand-dark: #003f86;
  --brand-soft: #e8f1fb;
  --hero-overlay: rgba(8, 24, 48, 0.55);
  --radius: 4px;
  --shadow: 0 8px 28px rgba(16, 36, 64, 0.08);
  --header-h: 64px;
  --font: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --space: clamp(1rem, 2.5vw, 1.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(15px, 1.6vw, 16px);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

li + li {
  margin-top: 0.35rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.25rem;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  min-height: 36px;
}

.lang-switch button.is-active {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Hero — full-bleed visual plane */

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 40, 90, 0.75), rgba(0, 87, 184, 0.35)),
    radial-gradient(ellipse at 70% 30%, rgba(120, 190, 255, 0.35), transparent 55%),
    linear-gradient(160deg, #0b1c33 0%, #12345a 45%, #0d2744 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 10vw, 5.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  max-width: 42rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: 1rem;
  width: min(100% - 2rem, 42rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8f1fb;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.8vw, 2.75rem);
  color: #fff;
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Highlight strip */

.highlight {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--text);
}

.section-lead {
  font-size: 1.05rem;
  max-width: 36rem;
}

.section-head {
  margin-bottom: 2rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.highlight-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.highlight-label {
  display: block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.highlight-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Solutions — product-like blocks */

.solutions {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.solution-list {
  display: grid;
  gap: 1.5rem;
}

.solution-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.solution-card-reverse .solution-media {
  order: 2;
}

.solution-card-reverse .solution-body {
  order: 1;
}

.solution-media {
  min-height: 220px;
  background: var(--bg-mute);
}

.solution-media-a {
  background:
    linear-gradient(145deg, #003f86, #2a7de1 60%, #9cc7ff);
}

.solution-media-b {
  background:
    linear-gradient(145deg, #0d2744, #0057b8 55%, #6eb0ff);
}

.solution-media-c {
  background:
    linear-gradient(145deg, #123045, #1f6fbf 50%, #8ec5ff);
}

.solution-media::after {
  content: "";
  display: block;
  height: 100%;
  min-height: 220px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.solution-body {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-body h3 {
  font-size: 1.25rem;
  color: var(--text);
}

.solution-body ul {
  margin-top: 0.5rem;
}

/* About */

.about {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.about-points li {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  color: var(--text);
  font-weight: 500;
}

/* Contact */

.contact {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--brand-soft));
}

.contact-note {
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-dl div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.contact-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-dl dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.contact-dl a {
  color: var(--brand);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f1b2d;
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer strong {
  display: block;
  color: #fff;
  margin-bottom: 0.35rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  font-size: 0.9rem;
}

.footer-copy {
  align-self: end;
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile */

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .solution-card,
  .solution-card-reverse {
    grid-template-columns: 1fr;
  }

  .solution-card-reverse .solution-media,
  .solution-card-reverse .solution-body {
    order: initial;
  }

  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .lang-switch {
    margin: 1rem 0 0;
    align-self: flex-start;
  }

  .hero {
    min-height: min(88vh, 560px);
    align-items: flex-end;
  }

  .hero-content {
    margin-left: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
