:root {
  --ink: #15362e;
  --body: #2c3a35;
  --muted: #5e6f69;
  --line: #d8e0dc;
  --paper: #ffffff;
  --wash: #f2f5f4;
  --deep: #0b1d18;
  --deep-2: #123129;
  --brand: #075b4c;
  --brand-soft: #e3f2ec;
  --gold: #f4b942;
  --mint: #7fc8a9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: "Segoe UI", Calibri, Arial, sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.6;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 12px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); }
.section-lede { font-size: 17px; color: var(--muted); max-width: 680px; }

/* --- nav --- */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 29, 24, 0.96);
  border-bottom: 1px solid #1e3a32;
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.brand em { font-style: normal; color: var(--gold); }
.brand-name { font-size: 16px; line-height: 1.15; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #cfe3da; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #2c4a42; color: #fff; border-radius: 8px; font-size: 20px; padding: 4px 12px; cursor: pointer; }

/* --- buttons --- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  background: var(--gold); color: #15362e; font-weight: 800; font-size: 16px;
  text-decoration: none; border: 1px solid var(--gold);
}
.btn:hover { background: #e5a92f; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: #fff; border-color: #3c5a51; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- hero --- */
.hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.hero #sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding: 110px 24px 120px; max-width: 1080px; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold); border: 1px solid #2c4a42; border-radius: 999px;
  padding: 6px 16px; margin: 0 0 20px 0; text-transform: uppercase;
}
.badge-light { color: var(--brand); border-color: var(--line); }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 58px); max-width: 760px; }
.hero .lede { font-size: clamp(16px, 2.4vw, 20px); color: #c4d8d0; max-width: 640px; }
.hero .lede strong { color: var(--gold); }

.boxhand-story { position: relative; min-height: 540px; display: grid; align-items: end; overflow: hidden; background: var(--deep); }
.boxhand-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .72; }
.boxhand-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,29,24,.94) 0%, rgba(11,29,24,.68) 48%, rgba(11,29,24,.18) 100%); }
.boxhand-story-copy { position: relative; z-index: 1; width: 100%; padding-top: 88px; padding-bottom: 72px; color: #fff; }
.boxhand-story-copy h2 { color: #fff; max-width: 560px; font-size: clamp(32px, 5vw, 50px); }
.boxhand-story-copy > p:not(.badge) { max-width: 560px; color: #d8e7e1; font-size: 18px; }

/* --- sections --- */
.mission, .letters, .product, .contact { padding: 88px 0; }
.mission { background: var(--paper); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pillars article { border-top: 3px solid var(--brand); padding-top: 18px; }
.pillars h3 { font-size: 19px; }
.pillars p { color: var(--muted); font-size: 15px; margin: 0; }

.letters { background: var(--deep-2); }
.letters h2, .letters .section-lede { color: #fff; }
.letters .section-lede em { color: var(--gold); }
.letter-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 32px; }
.letter-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #0b1d18; border: 1px solid #2c4a42; border-radius: 10px;
  padding: 16px 8px; cursor: pointer; color: #fff;
}
.letter-tabs button:hover { border-color: var(--mint); }
.letter-tabs button[aria-selected="true"] { border-color: var(--gold); background: #16473c; }
.tab-letter { font-size: 34px; font-weight: 800; color: var(--gold); }
.tab-word { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: #cfe3da; }
.letter-panels article {
  margin-top: 16px; background: #0b1d18; border: 1px solid #2c4a42;
  border-radius: 10px; padding: 28px 32px;
}
.letter-panels h3 { color: #fff; font-size: 30px; }
.letter-panels h3 span { color: var(--gold); }
.letter-panels p { color: #c4d8d0; font-size: 17px; margin: 0; max-width: 640px; }

.product { background: var(--wash); }
.product-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.feature-list { list-style: none; margin: 24px 0 0 0; padding: 0; }
.feature-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
.product-cards { display: flex; flex-direction: column; gap: 20px; }
.gayap-card, .boxhand-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 32px; text-decoration: none; text-align: center;
}
.gayap-card:hover, .boxhand-card:hover { border-color: var(--brand); }
.gayap-card strong, .boxhand-card strong { font-size: 28px; letter-spacing: 6px; color: var(--brand); }
.gayap-card span, .boxhand-card span { font-size: 14px; font-weight: 600; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.contact-card p { margin: 0 0 16px 0; }
.contact-card a { color: var(--brand); font-weight: 700; }
.contact-card .btn { margin-top: 8px; }

footer { background: var(--deep); color: #9db8ae; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand p { font-size: 14px; color: #9db8ae; margin: 0 0 12px 0; }
.foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-logo strong { color: #fff; font-size: 17px; }
.foot-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border: 1px solid #2c4a42; border-radius: 999px; padding: 5px 14px; }
.foot-col h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot-col a, .foot-col span { display: block; color: #cfe3da; text-decoration: none; font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-top: 1px solid #1e3a32; padding-top: 20px; padding-bottom: 24px; }
.foot-bottom p { margin: 0; font-size: 14px; color: #9db8ae; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
button.btn { cursor: pointer; font-family: inherit; }
.btn-wa { background: #1faa55; border-color: #1faa55; color: #fff; }
.btn-wa:hover { background: #178a45; border-color: #178a45; }
.contact-card .btn-wa { margin-left: 8px; }

/* --- policy dialogs --- */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 640px; width: calc(100% - 48px); color: var(--body); }
dialog::backdrop { background: rgba(11, 29, 24, 0.6); }
dialog h2 { margin-bottom: 4px; }
.dialog-date { color: var(--muted); font-size: 13px; margin-top: 0; }
dialog p { font-size: 15px; }
dialog a { color: var(--brand); font-weight: 700; }
dialog form { margin-top: 20px; text-align: right; }

/* --- floating WhatsApp --- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 8px; background: #1faa55; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; padding: 12px 20px 12px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(11, 29, 24, 0.35); }
.wa-float:hover { background: #178a45; }

/* --- responsive --- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .product-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .letter-tabs { gap: 6px; }
  .tab-letter { font-size: 26px; }
  .tab-word { font-size: 10px; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-bottom: 1px solid #1e3a32; padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #1e3a32; }
  .nav-links .btn { margin-top: 12px; text-align: center; }
  .hero-inner { padding: 80px 24px 90px; }
  .letter-tabs { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: 13px; }
}
