/* File Penting — site styles
   Single shared stylesheet, kept small and self-contained.
   Color tokens mirror the app's Material 3 light scheme. */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef1f8;
  --text: #1c1f26;
  --text-muted: #5b6473;
  --primary: #2f55cc;
  --primary-strong: #1f3fa6;
  --primary-soft: #e3ebff;
  --on-primary: #ffffff;
  --border: #e3e7f0;
  --shadow: 0 4px 16px rgba(20, 27, 45, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;
  --content-w: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10131a;
    --surface: #181c25;
    --surface-alt: #20242f;
    --text: #e7e9ef;
    --text-muted: #9aa3b6;
    --primary: #93b1ff;
    --primary-strong: #b9c9ff;
    --primary-soft: #1d2740;
    --on-primary: #0b132a;
    --border: #262b38;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

/* === Layout === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-weight: 800;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

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

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

@media (max-width: 600px) {
  .nav-links { gap: 14px; font-size: 0.9rem; }
  .nav-links .nav-secondary { display: none; }
}

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

.content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* === Hero === */

.hero {
  padding: 70px 20px 50px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 85, 204, 0.25);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

/* === Features === */

.features {
  padding: 30px 20px 70px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 34px;
  max-width: var(--max-w);
  margin-inline: auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 14px 0 6px;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* === Profile / About inline === */

.profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 50px auto;
  max-width: var(--max-w);
}

.profile img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 6px 20px rgba(20, 27, 45, 0.12);
}

.profile h2 { margin: 0 0 6px; }
.profile .role { color: var(--primary-strong); font-weight: 600; margin: 0 0 12px; }
.profile p { color: var(--text-muted); margin: 0; }

@media (max-width: 600px) {
  .profile {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .profile img { margin: 0 auto; width: 130px; height: 130px; }
}

/* === Privacy callout === */

.privacy-callout {
  max-width: var(--max-w);
  margin: 30px auto 50px;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.privacy-callout-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.privacy-callout h3 { margin: 0 0 4px; color: var(--primary-strong); }
.privacy-callout p { margin: 0; color: var(--primary-strong); opacity: 0.85; }

@media (max-width: 700px) {
  .privacy-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .privacy-callout-icon { margin: 0 auto; }
  .privacy-callout .btn { justify-self: center; }
}

/* === Article (privacy/terms/support) === */

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 40px;
  box-shadow: var(--shadow);
}

.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 0.4em; }

.article .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2em;
}

.article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

.lang-tabs {
  display: inline-flex;
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 30px;
}

.lang-tabs a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-tabs a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(20, 27, 45, 0.08);
}

.lang-tabs a:hover { text-decoration: none; }

@media (max-width: 600px) {
  .article { padding: 24px 22px 30px; }
}

/* === Footer === */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .footer-links {
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  color: var(--text-muted);
}

.site-footer .footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* === Misc === */

.center { text-align: center; }
.muted { color: var(--text-muted); }
.spacer-lg { height: 60px; }

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }
