/* ===== Campton Font (path goes up one level to /assets/fonts) ===== */
@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/camptonbook.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/camptonmedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/camptonsemibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/camptonbold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Kantumruy Pro";
  src: url("../assets/fonts/KantumruyPro-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --bg: #080b14;
  --surface: #10275b;
  --border: rgba(88, 166, 255, 0.18);
  --blue: #58a6ff;
  --brand: #2f7bff;
  --amber: #ffb400;
  --text: #eef2fa;
  --text-muted: #9fb1d2;
  --text-dim: #8fa4ca;
  --font-display: "Campton", sans-serif;
  --font-body: "Campton", sans-serif;
  --font-khmer: "Kantumruy Pro", "Khmer OS", "Khmer MN", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Campton", "Kantumruy Pro", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lang-km,
body.lang-km h1,
body.lang-km h2,
body.lang-km h3,
body.lang-km h4,
body.lang-km .btn,
body.lang-km .nav-links,
body.lang-km .language-option {
  font-family: var(--font-khmer);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ NAV ============ */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  position: relative; /* add this — needed so .nav-links can anchor to it */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-wordmark {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ffffff;
}

.logo-wordmark strong {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  position: absolute; /* add */
  left: 50%; /* add */
  transform: translateX(-50%); /* add */
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.language-option {
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 242, 250, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.language-option:hover,
.language-option.active {
  background: #ffffff;
  color: #0d1b3e;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.nav-actions .btn,
.nav-actions .btn-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  height: 50px;
  min-width: 150px;
  line-height: 1;
}

.mobile-trade-btn {
  display: none !important;
}

/* Burger hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(18, 96, 204, 0.2);
  color: #3b7bff;
}

.nav-toggle.active {
  background: rgba(18, 96, 204, 0.3);
  border: 1px solid rgba(59, 111, 237, 0.4);
  color: #3b7bff;
}

/* Mobile only */
@media (max-width: 768px) {
  .nav-actions .btn {
    display: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    transform: none; /* ← add this line */
    background: #171722;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px;
    gap: 22px;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
  }

  .mobile-trade-btn {
    display: inline-flex !important;
    width: 100%;
    height: 56px;
    border-radius: 999px !important;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    gap: 10px;
  }

  .logo-icon {
    height: 36px;
  }

  .language-toggle {
    padding: 2px;
  }

  .language-option {
    min-width: 42px;
    height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(47, 123, 255, 0.25);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-brand:hover {
  box-shadow: 0 10px 28px rgba(47, 123, 255, 0.4);
  transform: translateY(-1px);
}

.btn-sm {
  height: 46px;
  min-width: 130px;
  padding: 0 26px;
  font-size: 14px;
}

.btn-lg {
  height: 56px;
  min-width: 200px;
  padding: 0 34px;
  font-size: 16px;
}

/* ============ PAGE CONTENT ============ */
h1 {
  font-size: 56px;
  line-height: 1.1;
}

.body-text {
  font-size: 18px;
  line-height: 1.9;
  color: #d4d8e3;
}
.feature-page-content {
  padding: 140px 0 100px;
}

.feature-page-content .inner {
  max-width: 900px;
}

.feature-page-tag {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}

.feature-page-content h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
}

.feature-page-content p.body-text {
  color: white;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.feature-page-content .back-link {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--blue);
  font-size: 14px;
}

.feature-page-content .back-link:hover {
  text-decoration: underline;
}

.feature-image {
  width: 100%;
  max-width: 700px;
  height: 360px;
  aspect-ratio: 35 / 18;
  object-fit: cover;
  border-radius: 20px;
  margin: 24px auto;
  display: block;
  overflow: hidden;
  transition: 0.4s;
}
.feature-image:hover {
  transform: translateY(-4px);
}
.inner {
  max-width: 900px;
}

/* BENEFIT SUMMARY */

.benefit-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  margin: 35px 0 45px;

  padding: 28px;

  background: #07142e;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 20px;
}

.benefit-item {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* SECTION TITLE */

.section-title {
  margin-top: 60px;
  margin-bottom: 25px;

  color: #fff;
  font-size: 34px;
  font-weight: 700;
}

/* FEATURE CARDS */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;

  margin-top: 20px;
}

.feature-card {
  background: #07142e;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  padding: 24px;

  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-card p {
  color: #bfc6d7;
  line-height: 1.7;
}

/* CTA SECTION */

.cta-box {
  margin-top: 70px;

  padding: 50px;

  border-radius: 24px;

  text-align: center;

  background: linear-gradient(135deg, #123b91, #3f7eff);
}

.cta-box h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 15px;
}

.cta-box p {
  color: #fff;
  opacity: 0.95;

  margin-bottom: 25px;

  font-size: 18px;
}

/* IMAGE EFFECT */

.feature-image {
  border-radius: 20px;
  transition: 0.4s ease;
}

.feature-image:hover {
  transform: translateY(-4px);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .feature-image,
  .feature-card {
    transition: none;
  }

  .feature-image:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .benefit-summary {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 35px 25px;
  }

  .cta-box h2 {
    font-size: 28px;
  }
}
/* ============ FOOTER ============ */
footer.feature-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

footer.feature-footer p {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}
