/* Ledakjitu Ember — warm amber + deep navy, material-like cards */

:root {
  --ember: #FFCA28;
  --ember-soft: #FFE082;
  --ember-deep: #FFA000;
  --navy: #0B1426;
  --navy-mid: #152238;
  --navy-card: #1A2A42;
  --navy-raised: #213352;
  --ink: #E8EDF5;
  --muted: #8FA3BF;
  --line: rgba(255, 202, 40, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --max: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 202, 40, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 160, 0, 0.06), transparent);
  min-height: 100vh;
}

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

a { color: var(--ember); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ember-soft); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--ember);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip:focus { left: 1rem; top: 1rem; }

.shell { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 38, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.header--scrolled { box-shadow: var(--shadow); }

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ember-deep), var(--ember));
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(255, 202, 40, 0.35);
}

.brand__name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--navy-card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(255, 202, 40, 0.08); }
.nav a.is-on { color: var(--navy); background: var(--ember); font-weight: 600; }
.nav__cta {
  margin-left: 0.35rem;
  background: linear-gradient(135deg, var(--ember-deep), var(--ember)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(255, 202, 40, 0.3);
}
.nav__cta:hover { color: var(--navy) !important; filter: brightness(1.06); }

/* Auth bar */
.auth-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--line);
}
.auth-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.auth-bar__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-bar__actions { display: flex; gap: 0.5rem; }
.auth-bar__btn {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-bar__btn:hover { transform: translateY(-1px); }
.auth-bar__btn--line {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.auth-bar__btn--line:hover { color: var(--ember); border-color: var(--ember); }
.auth-bar__btn--fill {
  background: var(--ember);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(255, 202, 40, 0.25);
}
.auth-bar__btn--fill:hover { color: var(--navy); }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 202, 40, 0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--ember);
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--ember-deep), var(--ember));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(255, 202, 40, 0.35);
}
.btn--primary:hover { color: var(--navy); }
.btn--ghost {
  background: var(--navy-card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { color: var(--ember); border-color: var(--ember); }

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
}

/* Sections */
.section { padding: 3rem 0; }
.section__head {
  text-align: center;
  margin-bottom: 2rem;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  margin-inline: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--navy-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--navy-raised);
}
.card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--ember); }
.card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}
.card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ember);
}

/* Trust / E-E-A-T */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.trust-item {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.trust-item__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 202, 40, 0.15);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.trust-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.trust-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Page layout */
.page {
  padding: 2rem 0 3.5rem;
}
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}
.page__meta {
  color: var(--ember);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.byline {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ember); }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--ember-soft);
}
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }

.article-cover {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list { max-width: 720px; }
.faq-item {
  background: var(--navy-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ember); font-size: 1.25rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact-card {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  max-width: 520px;
  box-shadow: var(--shadow);
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-top: 1rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.25rem 0 0; color: var(--ink); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-card));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}
.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: rgba(11, 20, 38, 0.6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 28ch;
}
.footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li { margin-bottom: 0.4rem; }
.footer a {
  color: var(--muted);
  font-size: 0.88rem;
}
.footer a:hover { color: var(--ember); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 52ch;
  margin-top: 0.5rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 0;
}
.error-page h1 {
  font-size: 5rem;
  color: var(--ember);
  margin: 0;
  line-height: 1;
}
.error-page p { color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; text-align: center; }
  .nav__cta { margin-left: 0; }
  .header { position: relative; }
  .hero__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .auth-bar__inner { justify-content: center; text-align: center; }
}
