/* ──────────────────────────────────────────────────
   Belajar landing — same dark/gold language as the app
   ────────────────────────────────────────────────── */

:root {
  --bg:            #0A0A0B;
  --bg-elev-1:     #111113;
  --bg-elev-2:     #17171A;
  --bg-elev-3:     #1D1D21;
  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text:          #F4F2EE;
  --text-dim:      #9A968E;
  --text-faint:    #5E5B55;
  --accent:        #D4B878;
  --accent-hi:     #E4CC8F;
  --accent-muted:  rgba(212,184,120,0.14);
  --accent-ring:   rgba(212,184,120,0.35);
  --green:         #7DBA82;
  --red:           #D48080;
  --blue:          #7DA8D4;
  --shadow-md:     0 4px 16px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg:     0 24px 60px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
  --font-ui:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:    'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
}

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

body.landing-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient gradient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(212,184,120,0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(125,168,212,0.07), transparent 60%),
    radial-gradient(600px 500px at 50% 110%, rgba(212,128,212,0.05), transparent 60%);
  z-index: 0;
}

.muted { color: var(--text-dim); }

/* ─── Header ─── */
.land-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 64px);
}
.land-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.land-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #B5975A 100%);
  color: #1A1408;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(212,184,120,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.land-name { font-weight: 700; letter-spacing: -0.01em; }
.land-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.land-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.land-nav a:hover { color: var(--text); }
.land-nav-cta {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text) !important;
  transition: all 0.15s ease;
}
.land-nav-cta:hover {
  background: var(--accent);
  color: #1A1408 !important;
  border-color: var(--accent);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(40px, 8vw, 100px) clamp(20px, 5vw, 96px) clamp(60px, 8vw, 120px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding: 6px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 18px;
  color: var(--text);
}
.hero-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-period { color: var(--text); }
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1A1408;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 8px 24px rgba(212,184,120,0.22);
}
.btn-cta:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212,184,120,0.32);
}
.btn-cta:active { transform: translateY(0); }
.btn-full { width: 100%; justify-content: center; padding: 14px 18px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-ghost:hover { background: var(--bg-elev-1); color: var(--text); }

.hero-tags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hero-tag {
  font-size: 13px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 10px rgba(125,186,130,0.5); }
.dot-gold { background: var(--accent); box-shadow: 0 0 10px rgba(212,184,120,0.5); }
.dot-blue { background: var(--blue); box-shadow: 0 0 10px rgba(125,168,212,0.5); }

/* Floating cards */
.hero-right {
  position: relative;
  height: clamp(360px, 48vw, 480px);
  perspective: 1200px;
}
.float-card {
  position: absolute;
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  width: 220px;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.float-card:hover { transform: translateY(-6px) scale(1.02); }
.fc-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fc-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.05;
}
.fc-en {
  font-size: 14px;
  color: var(--text-dim);
}
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(var(--r,0deg)); }
  50%     { transform: translateY(-10px) rotate(var(--r,0deg)); }
}
.fc1 { top: 0%;   left: 4%;   --r: -3deg; animation-delay: 0s;   }
.fc2 { top: 14%;  right: 0%;  --r:  3deg; animation-delay: 1s;   }
.fc3 { top: 38%;  left: 10%;  --r: -1.5deg; animation-delay: 0.5s; }
.fc4 { top: 56%;  right: 6%;  --r:  2deg; animation-delay: 1.5s; }
.fc5 { top: 78%;  left: 18%;  --r: -2deg; animation-delay: 2s;   }
@media (max-width: 880px) {
  .hero-right { height: 320px; max-width: 480px; margin: 0 auto; }
  .float-card { width: 180px; padding: 14px 16px; }
  .fc-word { font-size: 22px; }
}

/* ─── Features ─── */
.features, .how, .signup {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 9vw, 110px) clamp(20px, 5vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}
.features-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.features-head .eyebrow { margin-bottom: 18px; }
.features-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.feat {
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  transition: all 0.2s ease;
}
.feat:hover {
  border-color: var(--accent-ring);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feat h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.feat p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.feat em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-hi);
  font-weight: 400;
}

/* ─── How ─── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.how-step {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
}
.how-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}
.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.how-step p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ─── Final CTA strip ─── */
.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 96px);
  max-width: 720px;
  margin: 0 auto;
}
.final-cta-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.05;
}
.final-cta-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 28px;
}
.btn-large { padding: 16px 28px; font-size: 16px; }

/* ─── Auth modal ─── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal.open { display: flex; animation: auth-fade-in 0.18s ease; }
@keyframes auth-fade-in { from { opacity: 0; } to { opacity: 1; } }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
  animation: auth-pop-in 0.22s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes auth-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-modal-close:hover {
  color: var(--text);
  background: var(--bg-elev-3);
  border-color: var(--border);
}

.sign-headline {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.sign-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 24px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: var(--bg-elev-2);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.1);
}

.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1A1A1A;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.google-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.05);
}

.divider {
  display: flex;
  align-items: center;
  margin: 22px 0 16px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
  gap: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span { white-space: nowrap; }

.field-label {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  margin: 12px 0 6px;
}
.required-mark { color: var(--accent); margin-left: 2px; }
.optional-mark { color: var(--text-faint); font-weight: 400; margin-left: 4px; font-size: 11.5px; }
.field {
  width: 100%;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 11px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field::placeholder { color: var(--text-faint); }
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.field.field-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212,128,128,0.18);
  animation: field-shake 0.3s ease;
}
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* Loading spinner inside the Google button */
.google-btn.loading {
  background: #f0f0f0;
  cursor: progress;
}
.google-btn .spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(26,20,8,0.2);
  border-top-color: #1A1A1A;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

#submit-btn { margin-top: 18px; }

.guest-row {
  text-align: center;
  margin-top: 14px;
}
.guest-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}
.guest-link:hover { color: var(--accent); }

.terms {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin: 18px 0 0;
}
.terms a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--text-faint);
}
.terms a:hover { color: var(--text); }

/* ─── Doc pages (About / Help / Privacy / Terms) ─── */
.doc {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px) 60px;
}
.doc-content { color: var(--text); }
.doc-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 12px 0 24px;
}
.doc-lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.doc-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--text);
}
.doc-content p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.doc-content p strong { color: var(--text); font-weight: 600; }
.doc-content p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-hi);
  font-weight: 400;
}
.doc-content code {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent-hi);
}
.doc-list {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 14px;
  padding-left: 20px;
}
.doc-list li { margin-bottom: 8px; }
.doc-list li strong { color: var(--text); font-weight: 600; }

.doc kbd {
  background: var(--bg-elev-3);
  border: 1px solid var(--border-strong);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
}

/* FAQ accordion */
.faq {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin: 10px 0;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq[open] { border-color: var(--border-strong); }
.faq > summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.faq > p, .faq > ul, .faq > ol {
  padding: 0 20px 18px;
  margin: 0 !important;
}

.doc-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.doc-footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.doc-footer-links a:hover { color: var(--accent); }

/* ─── Footer ─── */
.land-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 28px clamp(20px, 5vw, 96px);
}
.land-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.land-foot-text {
  font-size: 13px;
  color: var(--text);
}

/* ─── Responsive tweaks ─── */
@media (max-width: 600px) {
  .land-nav { gap: 12px; }
  .land-nav a:not(.land-nav-cta) { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-cta, .btn-ghost { justify-content: center; }
  .sign-card { padding: 28px 22px; }
  .hero-right { display: none; }
}
