/* ===== Design tokens ===== */
:root {
  --navy: #0f1c2e;
  --navy-2: #16283f;
  --steel: #2b6cb0;
  --steel-dark: #1f4f85;
  --accent: #f59e0b;
  --accent-dark: #d98a06;
  --text: #1f2937;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 28, 46, 0.14);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-dark);
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1 {
  font-size: clamp(2.1rem, 5vw + 0.5rem, 3.8rem);
}
h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 40px;
}
.hide-sm {
  display: inline;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  font-family: inherit;
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.92rem;
}
.btn-primary {
  background: var(--steel);
  color: #fff;
}
.btn-primary:hover {
  background: var(--steel-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: #111827;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #111827;
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}
.btn-outline-dark {
  border-color: var(--steel);
  color: var(--steel);
}
.btn-outline-dark:hover {
  background: var(--steel);
  color: #fff;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.88rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a {
  color: #e2e8f0;
}
.topbar a:hover {
  color: var(--accent);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(15, 28, 46, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}
.logo:hover {
  color: var(--navy);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--steel), var(--navy));
  color: #fff;
  font-size: 1.3rem;
}
.logo-light,
.logo-light:hover {
  color: #fff;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.primary-nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 600;
  border-radius: 8px;
  position: relative;
}
.primary-nav a:not(.btn):hover,
.primary-nav a.active {
  color: var(--steel);
  background: var(--bg-alt);
}
.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 3px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(80px, 14vw, 180px) 0;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(
      105deg,
      rgba(15, 28, 46, 0.92) 0%,
      rgba(15, 28, 46, 0.75) 45%,
      rgba(15, 28, 46, 0.35) 100%
    ),
    url("../../image/index.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0 2px,
    transparent 2px 22px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero h1 {
  color: #fff;
}
.accent {
  color: var(--accent);
}
.lead {
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.3rem);
  color: #cbd5e1;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8em;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 60px 0;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.3em;
}
.breadcrumb {
  color: #94a3b8;
  margin: 0;
}
.breadcrumb a {
  color: #e2e8f0;
}

/* ===== Sections ===== */
.section {
  padding: clamp(50px, 8vw, 96px) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.align-center {
  align-items: center;
}

/* ===== Stats ===== */
.stats {
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 10px;
}
.stat {
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--steel);
  line-height: 1.1;
}
.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel);
}
.card p {
  color: var(--muted);
}
.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6f0fb, #d3e4f7);
  color: var(--steel);
  margin-bottom: 18px;
}
.link-arrow {
  margin-top: auto;
  font-weight: 700;
}
.spec-list {
  margin: 0 0 20px;
}
.spec-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.spec-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 800;
}
.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.check-list {
  margin: 20px 0 28px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  top: 3px;
}

.feature-panel {
  display: grid;
  gap: 16px;
}
.feature {
  display: flex;
  gap: 16px;
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.feature > span {
  font-size: 1.8rem;
}
.feature h4 {
  margin-bottom: 0.2em;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.image-block {
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--steel), var(--navy));
  display: grid;
  place-items: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
}

.steps .step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  margin-bottom: 14px;
}
.step p {
  color: var(--muted);
  margin: 0;
}
.badge-card {
  background: #fff;
  border: 2px dashed var(--steel);
  border-radius: var(--radius);
  padding: 34px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

/* ===== Solution We Offer ===== */
.solution {
  background: var(--bg-alt);
}
.solution-head {
  max-width: 900px;
  margin: 0 auto 52px;
  text-align: center;
}
.solution-head h2 {
  margin-bottom: 0.5em;
}
.solution-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
  padding-bottom: 20px;
  position: relative;
}
.solution-head p::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 4px;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 4px;
}
.solution-grid {
  gap: 32px;
}

.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel);
}

.solution-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--steel), var(--navy));
}
.solution-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.solution-card:hover .solution-media img {
  transform: scale(1.08);
}
.solution-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 28, 46, 0.45));
  pointer-events: none;
}
.solution-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.85);
}
.solution-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.solution-body {
  padding: 24px 26px 30px;
  border-top: 4px solid var(--accent);
  flex: 1;
}
.solution-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--navy);
}
.solution-body p {
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ===== Product cards (image on top) ===== */
.product-card {
  padding: 0;
  overflow: hidden;
}
.product-card .solution-media {
  height: 215px;
  border-radius: 0;
  box-shadow: none;
}
.product-card:hover .solution-media img {
  transform: scale(1.08);
}
.product-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 4px solid var(--accent);
}
.product-body h3 {
  margin-bottom: 8px;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--steel), var(--navy));
  color: #fff;
  padding: 56px 0;
}
.cta h2 {
  color: #fff;
  margin-bottom: 0.2em;
}
.cta p {
  margin: 0;
  color: #cbd5e1;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Contact / Forms ===== */
.grid-contact {
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.info-item {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.info-item > span {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  background: #e6f0fb;
  border-radius: 12px;
  font-size: 1.2rem;
}
.info-item h4 {
  margin: 0 0 0.15em;
}
.info-item p {
  margin: 0;
  color: var(--muted);
}
.form {
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.94rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.15);
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert ul {
  padding-left: 18px;
  list-style: disc;
}
.alert-success {
  background: #e8f8ee;
  color: #176b3a;
  border: 1px solid #b7e4c7;
}
.alert-error {
  background: #fdecec;
  color: #9b1c1c;
  border: 1px solid #f5b5b5;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 1em;
  position: relative;
  padding-bottom: 10px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.site-footer a {
  color: #cbd5e1;
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-about {
  margin-top: 16px;
  max-width: 320px;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(15, 28, 46, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .primary-nav.open {
    max-height: 480px;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .primary-nav a:not(.btn) {
    padding: 14px 12px;
  }
  .nav-cta {
    margin: 10px 0 0;
    display: block;
  }
  .grid-2,
  .grid-contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(15, 28, 46, 0.88), rgba(15, 28, 46, 0.78)),
      url("../../image/index.png");
    background-position: 65% center;
  }
  .hide-sm {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form {
    padding: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats {
    margin-top: -30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
