/* Gaskeun website - design system mirrors the app (dark Apple-Fitness aesthetic). */
:root {
  --bg: #000000;
  --bg2: #0b0d0f;
  --surface: #1c1c1e;
  --surface-hi: #2c2c2e;
  --hairline: #38383a;
  --text: #ffffff;
  --text-2: #98989f;
  --text-3: #6b7176;
  --green: #00f5a0;
  --cyan: #38c8ff;
  --pink: #ff375f;
  --amber: #ffcc33;
  --silver: #d3d9de;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* language toggle visibility */
html[data-lang="id"] .lang-en { display: none; }
html[data-lang="en"] .lang-id { display: none; }

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

/* header */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.langtoggle {
  position: relative; display: inline-flex; align-items: stretch;
  border: 1px solid var(--hairline); background: var(--surface);
  border-radius: 999px; padding: 3px; cursor: pointer; font-family: var(--font);
  width: 86px; height: 32px; user-select: none; -webkit-tap-highlight-color: transparent;
}
.langtoggle .seg {
  position: relative; z-index: 1; flex: 1; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--text-3); transition: color .2s ease;
}
.langtoggle .knob {
  position: absolute; z-index: 0; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: var(--green); border-radius: 999px;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 8px rgba(0, 245, 160, 0.35);
}
html[data-lang="en"] .langtoggle .knob { transform: translateX(100%); }
html[data-lang="id"] .langtoggle .seg-id { color: #04231a; }
html[data-lang="en"] .langtoggle .seg-en { color: #04231a; }
.langtoggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* hero */
.hero { padding: 88px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(0,245,160,0.16), rgba(0,245,160,0) 70%);
  pointer-events: none;
}
.hero .logo-lg { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 14px; text-wrap: balance; }
.hero .tag { color: var(--text-2); font-size: clamp(16px, 2.4vw, 21px); max-width: 640px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 14px;
  padding: 14px 22px; font-weight: 800; font-size: 15px; cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #04231a; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); }

/* phone showcase */
.showcase { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 44px 0 8px; }
.showcase img { width: 232px; height: auto; aspect-ratio: 1242 / 2688; border-radius: 26px; border: 1px solid var(--hairline); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

/* sections */
section { padding: 56px 0; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h2.sec-title { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.8px; margin: 8px 0 8px; text-wrap: balance; }
.sec-lead { color: var(--text-2); max-width: 620px; font-size: 17px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 22px;
}
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 14px; background: linear-gradient(135deg, rgba(0,245,160,0.18), rgba(56,200,255,0.18));
  font-size: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* personas */
.persona-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.persona {
  flex: 1 1 170px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 16px; text-align: center;
}
.persona .emoji { font-size: 28px; }
.persona b { display: block; margin-top: 6px; }
.persona span { color: var(--text-3); font-size: 13px; }

/* sources strip */
.sources { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; color: var(--text-2); font-weight: 600; }
.sources span { display: inline-flex; align-items: center; gap: 8px; }

/* small layout utilities (kept as classes so CSP needs no 'unsafe-inline') */
.mt-lg { margin-top: 26px; }
.note-small { margin-top: 22px; font-size: 14px; color: var(--text-3); }

/* legal pages */
.legal { max-width: 760px; padding-top: 40px; }
.legal h1 { font-size: 34px; letter-spacing: -0.6px; margin-bottom: 4px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 19px; margin-top: 30px; border: none; padding: 0; color: var(--text); }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal code { background: var(--surface-hi); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.legal .card { margin-top: 18px; }

/* footer */
footer { border-top: 1px solid var(--hairline); padding: 34px 0 48px; margin-top: 30px; }
.foot-in { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--text-3); font-size: 13px; }
.foot-links { margin-left: auto; display: flex; gap: 18px; }
.foot-links a { color: var(--text-2); font-size: 13px; font-weight: 600; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
  .foot-links { margin-left: 0; width: 100%; }
}
