/*
  TAMAN14 — Landing Page
  Stylesheet profesional, mobile-first, ringan, dan mudah dirawat.
  Struktur: Tokens → Base → Layout → Komponen → Section → Footer → Nav → Media query
*/

/* =========================================================
   1. Design Tokens
   ========================================================= */
:root {
  /* Warna */
  --color-bg: #050507;
  --color-bg-elev: #0d0d12;
  --color-surface: #14141b;
  --color-surface-strong: #1c1c25;
  --color-text: #ffffff;
  --color-muted: #b6b6c2;
  --color-faint: #8a8a98;
  --color-primary: #ffcc00;
  --color-primary-strong: #ffb300;
  --color-accent: #21d4ff;
  --color-border: #2a2a35;
  --color-border-gold: rgba(255, 204, 0, 0.30);

  /* Gradien */
  --grad-gold: linear-gradient(135deg, #ffe27a 0%, #ffcc00 45%, #ffb300 100%);
  --grad-accent: linear-gradient(135deg, #5fe3ff 0%, #21d4ff 55%, #009ec4 100%);
  --grad-surface: linear-gradient(180deg, var(--color-surface-strong) 0%, var(--color-bg-elev) 100%);

  /* Bayangan */
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 28px rgba(255, 204, 0, 0.18);
  --shadow-accent: 0 10px 28px rgba(33, 212, 255, 0.20);

  /* Radius & ukuran */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container-width: 480px;
  --bottom-nav-height: 72px;

  /* Tipografi */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   2. Base / Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3 {
  line-height: 1.25;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link aksesibilitas */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #000;
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* =========================================================
   3. Layout Shell
   ========================================================= */
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px 14px calc(var(--bottom-nav-height) + 22px);
  background: var(--color-bg);
}

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  background: var(--grad-surface);
  box-shadow: var(--shadow-soft);
}

.site-logo {
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-logo span {
  -webkit-text-fill-color: var(--color-text);
}

/* =========================================================
   5. Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, border-color 160ms ease, filter 160ms ease;
}

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

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-small {
  min-height: 34px;
  padding: 6px 16px;
  border-width: 1px;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.btn-outline {
  color: var(--color-text);
  border-color: var(--color-border-gold);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* CTA terisi penuh */
.btn-fill {
  color: #000;
  border-color: transparent;
}

.btn-login {
  background: var(--grad-accent);
  box-shadow: var(--shadow-accent);
}

.btn-login:hover,
.btn-login:focus-visible {
  box-shadow: 0 14px 32px rgba(33, 212, 255, 0.32);
}

.btn-register {
  background: var(--grad-gold);
  box-shadow: var(--shadow-gold);
}

.btn-register:hover,
.btn-register:focus-visible {
  box-shadow: 0 14px 32px rgba(255, 204, 0, 0.32);
}

/* =========================================================
   6. Sections umum
   ========================================================= */
.hero-section,
.feature-list,
.promo-section,
.notice-section,
.seo-info-section,
.faq-section {
  margin-bottom: 18px;
}

/* --- Hero --- */
.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-soft);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 7, 0.55) 100%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-surface);
}

.hero-content {
  padding: 16px 4px 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-pill);
  background: rgba(255, 204, 0, 0.06);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.20);
}

.hero-content h1 {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p,
.seo-info-section p {
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* --- Action buttons --- */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.action-buttons .btn {
  flex: 1;
}

/* --- Feature list (trust row) --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.feature-list svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.feature-list span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.3;
}

/* --- Promo --- */
.promo-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-soft);
}

.promo-image {
  width: 100%;
  aspect-ratio: 1000 / 260;
  object-fit: cover;
  background: var(--color-surface);
}

/* --- Notice (running text style) --- */
.notice-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-pill);
  background: rgba(255, 204, 0, 0.05);
}

.notice-section::before {
  content: "📢";
  font-size: 16px;
  line-height: 1;
}

.notice-section p {
  color: var(--color-primary);
  font-size: 12.5px;
  line-height: 1.5;
}

/* --- SEO info --- */
.seo-info-section {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--grad-surface);
}

.seo-info-section h2,
.faq-section h2 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

.seo-info-section p + p {
  margin-top: 10px;
}

/* --- FAQ (native accordion) --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 16px 16px;
  color: var(--color-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* =========================================================
   7. Footer
   ========================================================= */
.site-footer {
  margin-top: 24px;
  padding: 20px 4px 8px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer .site-logo {
  font-size: 16px;
}

.site-footer p {
  margin-top: 8px;
  color: var(--color-faint);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer .footer-note {
  margin-top: 6px;
  font-size: 11px;
}

/* =========================================================
   8. Bottom Navigation
   ========================================================= */
.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  max-width: var(--container-width);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--color-border);
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-item {
  display: inline-flex;
  flex: 1;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-faint);
  font-size: 10.5px;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--color-primary);
}

.nav-item:focus-visible {
  outline-offset: -4px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.nav-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  transition: transform 160ms ease;
}

.nav-item:active .nav-icon svg {
  transform: scale(0.9);
}

/* Halaman aktif */
.nav-item[aria-current="page"] {
  color: var(--color-primary);
}

.nav-item-primary {
  color: var(--color-primary);
}

.nav-item-primary img {
  width: 44px;
  height: 44px;
  margin-top: -16px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg);
  box-shadow: var(--shadow-gold);
}

/* =========================================================
   9. Responsive enhancements (tablet / desktop frame)
   ========================================================= */
@media (min-width: 481px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 204, 0, 0.10), transparent 30rem),
      radial-gradient(circle at 50% 100%, rgba(33, 212, 255, 0.06), transparent 26rem),
      var(--color-bg);
  }

  .app-shell {
    margin-block: 16px;
    border: 1px solid rgba(255, 204, 0, 0.14);
    border-radius: var(--radius-lg);
    min-height: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }

  .bottom-nav {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* =========================================================
   10. Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
