:root {
  --ink: #0b1c33;
  --ink-soft: #3d4f66;
  --paper: #f2f5f7;
  --paper-2: #e6edf2;
  --white: #ffffff;
  --line: #d3dde6;
  --accent: #1a6f9c;
  --accent-deep: #145578;
  --warm: #c9922e;
  --glow: rgba(26, 111, 156, 0.16);
  --radius: 4px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Prompt", sans-serif;
  --font-body: "Anuphan", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section { padding: 5rem 0; }
.section--tint { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover { background: var(--accent-deep); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--soft {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.btn--line {
  background: #06c755;
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header — dark for white logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 20, 34, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 20, 34, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  width: min(170px, 46vw);
  height: auto;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  text-decoration: none;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-text strong { color: var(--white); }

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--white); }

.site-nav__cta {
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius);
}

.site-nav__cta:hover { background: var(--accent-deep); color: var(--white) !important; }

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(68vh, 580px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: var(--white);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 15%, rgba(201, 146, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 65% 70% at 10% 85%, rgba(26, 111, 156, 0.45), transparent 50%),
    linear-gradient(145deg, #071422 0%, #12304a 45%, #0d2a3a 100%);
}

.hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 55% 40%, #000 15%, transparent 75%);
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  right: -10vmax;
  top: -8vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 3.5rem;
  max-width: 40rem;
  animation: rise 0.85s ease both;
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.hero__brand span { color: var(--warm); }

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 34rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-3%, 5%); }
}

/* Trust / products */
.trust-bar {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.product-grid,
.why-grid,
.module-grid,
.contact-grid,
.stat-grid {
  display: grid;
  gap: 1rem;
}

.product-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-card,
.why-card,
.module-card,
.stat-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.why-card:hover,
.module-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 111, 156, 0.35);
  box-shadow: 0 16px 36px var(--glow);
}

.why-card,
.contact-card,
.stat-card { padding: 1.5rem; }

.product-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #12304a, #1a6f9c);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  color: var(--accent-deep);
  background: linear-gradient(145deg, rgba(26, 111, 156, 0.14), rgba(201, 146, 46, 0.12));
  border: 1px solid rgba(26, 111, 156, 0.16);
}

.icon-badge svg { width: 1.5rem; height: 1.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 111, 156, 0.35);
  box-shadow: 0 14px 28px var(--glow);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  color: var(--accent-deep);
  background: linear-gradient(145deg, rgba(26, 111, 156, 0.14), rgba(201, 146, 46, 0.12));
  border: 1px solid rgba(26, 111, 156, 0.16);
}

.feature-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.product-card h3,
.why-card h3,
.module-card h3,
.contact-card strong {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.product-card p,
.why-card p,
.module-card p,
.contact-card span:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-deep);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  color: var(--accent-deep);
  background: linear-gradient(145deg, rgba(26, 111, 156, 0.14), rgba(201, 146, 46, 0.12));
  border: 1px solid rgba(26, 111, 156, 0.16);
}

.stat-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 111, 156, 0.35);
  box-shadow: 0 16px 36px var(--glow);
}

.stat-card > span:not(.stat-card__icon) { color: var(--ink-soft); font-weight: 600; }

.module-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.module-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #12304a, #1a6f9c);
  overflow: hidden;
}

.module-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.module-card__cta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
}

/* Page hero (inner) */
.page-hero {
  padding: 3.25rem 0 2.25rem;
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(26, 111, 156, 0.12), transparent 55%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-back:hover { color: var(--accent-deep); }

.page-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  padding: 2.75rem 0 4rem;
  align-items: start;
}

.prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.prose p { color: var(--ink-soft); }

.prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.prose li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--warm);
}

.aside-panel {
  position: sticky;
  top: 5.25rem;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.85rem;
}

.aside-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.aside-panel .btn { width: 100%; }

.cta-band {
  padding: 4rem 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer {
  background: #071422;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.4rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.site-footer p { margin: 0 0 0.65rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0.45rem;
}

.site-footer__copy {
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 900px) {
  .product-grid,
  .why-grid,
  .feature-grid,
  .module-grid,
  .stat-grid,
  .contact-grid,
  .page-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .aside-panel { position: static; }

  .nav-toggle { display: inline-flex; }

  .site-header__inner { position: relative; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.1rem;
    background: rgba(7, 20, 34, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav__cta {
    margin-top: 0.65rem;
    text-align: center;
    padding: 0.7rem 0.9rem;
  }

  .hero { min-height: auto; }
  .hero__content { padding: 2.25rem 0 2.75rem; }
}

@media (max-width: 640px) {
  :root { --shell: min(1120px, calc(100% - 1.5rem)); }
  .section { padding: 3.75rem 0; }
  .module-grid,
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__content,
  .reveal,
  .hero__atmosphere::after,
  .product-card,
  .module-card,
  .btn {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
