:root {
  --primary-yellow: #ffd400;
  --primary-white: #ffffff;
  --secondary-red: #e31b23;
  --dark-text: #1f1f1f;
  --muted-text: #5f6368;
  --soft-gray: #f7f7f7;
  --border-color: #e5e5e5;
  --success-color: #16a34a;
  --warning-color: #f59e0b;
  --black: #111111;
  --shadow: 0 18px 45px rgba(31, 31, 31, 0.09);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--primary-white);
  color: var(--dark-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.35;
}

address {
  font-style: normal;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft-gray);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p,
.hero-section__content p,
.analysis-section__content p,
.article-card__header p {
  color: var(--muted-text);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--secondary-red);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--primary-yellow);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--black);
  color: var(--primary-white);
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--secondary-red);
  color: var(--primary-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #bf151c;
}

.btn-secondary {
  background: var(--primary-yellow);
  color: var(--black);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #e9bf00;
}

.btn-outline {
  background: var(--primary-white);
  border-color: var(--dark-text);
  color: var(--dark-text);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--dark-text);
  color: var(--primary-white);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--primary-white);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: var(--primary-white);
  color: var(--black);
}

.btn-large {
  min-height: 52px;
  padding-inline: 22px;
}

.header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.header__brand img {
  width: 164px;
  height: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.header__nav a {
  position: relative;
  padding: 8px 0;
}

.header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--secondary-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.header__nav a:hover::after,
.header__nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--primary-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 76px;
  background:
    linear-gradient(120deg, rgba(255, 212, 0, 0.22), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #fffdf0 0%, #ffffff 85%);
}

.hero-section__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
}

.hero-section__content p {
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-section__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-section__quick-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(227, 27, 35, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-section__media {
  position: relative;
}

.hero-section__media img,
.prediction-layout__image img,
.analysis-section__media img,
.map-panel iframe {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-section__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-section__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: min(290px, calc(100% - 36px));
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-yellow);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(31, 31, 31, 0.12);
}

.hero-section__badge strong,
.hero-section__badge span {
  display: block;
}

.hero-section__badge span {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.prediction-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: start;
  gap: 30px;
}

.prediction-layout__image img,
.analysis-section__media img {
  width: 100%;
  aspect-ratio: 9 / 6.5;
  object-fit: cover;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tabs__button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--primary-white);
  color: var(--dark-text);
  font-weight: 800;
  cursor: pointer;
}

.filter-tabs__button.is-active {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

.prediction-grid {
  display: grid;
  gap: 16px;
}

.prediction-card {
  padding: 20px;
  background: var(--primary-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 31, 31, 0.06);
}

.prediction-card.is-hidden {
  display: none;
}

.prediction-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.prediction-card__top span {
  font-size: 1.08rem;
  font-weight: 800;
}

.prediction-card__top strong {
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success-color);
  font-size: 0.8rem;
  white-space: nowrap;
}

.prediction-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.prediction-card dl div,
.stats-grid div {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fffdf2;
}

.prediction-card dt,
.stats-grid span {
  color: var(--muted-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.prediction-card dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.note {
  margin-bottom: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--warning-color);
  border-radius: 6px;
  background: #fff7e7;
  color: #594322;
  font-size: 0.94rem;
}

.bocoran-section__grid,
.analysis-section__grid,
.contact-section__grid,
.faq-section__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 38px;
}

.info-panel,
.contact-card {
  padding: 28px;
  background: var(--primary-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.info-panel__header h3 {
  margin-bottom: 0;
}

.info-panel__header span {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--primary-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stats-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

.info-panel .btn {
  margin-top: 18px;
}

.analysis-section__grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--primary-white);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-color);
  color: var(--primary-white);
  font-size: 0.8rem;
  line-height: 20px;
  text-align: center;
}

.article-card {
  max-width: 940px;
  margin: 0 auto;
  padding: 38px;
  background: var(--primary-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-card__header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-card h3 {
  margin-top: 28px;
}

.article-card p {
  color: #333333;
}

.feature-grid,
.profile-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.profile-card,
.testimonial-card {
  background: var(--primary-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 31, 31, 0.05);
}

.feature-card {
  min-height: 138px;
  padding: 20px;
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--primary-yellow);
  font-size: 0.9rem;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 0;
  font-size: 1.04rem;
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card {
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-card div {
  padding: 20px;
}

.profile-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--secondary-red);
  font-weight: 800;
}

.profile-card p,
.testimonial-card p {
  margin-bottom: 0;
  color: var(--muted-text);
}

.testimonial-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.testimonial-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.rating {
  width: max-content;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--primary-yellow);
  font-weight: 900;
}

.testimonial-card strong {
  display: block;
}

.contact-card address {
  margin-bottom: 22px;
  color: var(--muted-text);
}

.contact-card strong {
  color: var(--dark-text);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 350px;
}

.faq-section__grid {
  grid-template-columns: 0.75fr 1.25fr;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  background: var(--primary-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.faq-item button {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 16px 52px 16px 18px;
  background: var(--primary-white);
  border: 0;
  color: var(--dark-text);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted-text);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 0;
}

.footer {
  background: var(--black);
  color: var(--primary-white);
  padding: 58px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.75fr;
  gap: 30px;
}

.footer img {
  width: 164px;
  margin-bottom: 18px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer h2 {
  margin-bottom: 14px;
  color: var(--primary-white);
  font-size: 1.05rem;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__disclaimer {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--primary-yellow);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.footer__actions {
  display: grid;
  gap: 10px;
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__bottom p {
  margin-bottom: 0;
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--secondary-red);
  color: var(--primary-white);
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(227, 27, 35, 0.38);
  outline-offset: 3px;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .header__inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .header__nav {
    position: fixed;
    top: 79px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 79px);
    overflow: auto;
    padding: 18px 20px 24px;
    background: var(--primary-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 30px rgba(31, 31, 31, 0.08);
  }

  .header__nav.is-open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .header__nav a {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }

  .header__nav a::after {
    display: none;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-section__grid,
  .prediction-layout,
  .analysis-section__grid,
  .bocoran-section__grid,
  .contact-section__grid,
  .faq-section__grid {
    grid-template-columns: 1fr;
  }

  .prediction-layout__image {
    max-width: 760px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .header__inner {
    min-height: 70px;
    gap: 10px;
  }

  .header__brand img,
  .footer img {
    width: 136px;
  }

  .header__actions {
    display: none;
  }

  .header__nav {
    top: 71px;
    max-height: calc(100vh - 71px);
  }

  .header__nav.is-open {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.18;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero-section {
    padding-top: 46px;
  }

  .hero-section__grid {
    gap: 32px;
  }

  .hero-section__actions,
  .contact-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-section__quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-section__media img {
    aspect-ratio: 4 / 3;
  }

  .hero-section__badge {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .prediction-card {
    padding: 16px;
  }

  .prediction-card__top,
  .info-panel__header {
    display: grid;
  }

  .prediction-card__top strong,
  .info-panel__header span {
    width: max-content;
    max-width: 100%;
    white-space: normal;
  }

  .prediction-card dl,
  .stats-grid,
  .feature-grid,
  .profile-grid,
  .testimonial-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .testimonial-card {
    min-height: auto;
  }

  .article-card,
  .info-panel,
  .contact-card {
    padding: 22px;
  }

  .map-panel iframe {
    min-height: 300px;
  }

  .footer {
    padding-top: 44px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 1.72rem;
  }

  h2 {
    font-size: 1.38rem;
  }

  .btn {
    width: 100%;
    padding-inline: 12px;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
