:root {
  --ink: #17202b;
  --muted: #5d6b7c;
  --paper: #f3f6f8;
  --card: #fff;
  --line: #e3e9ef;
  --brand: #123d35;
  --brand-deep: #0c2a25;
  --accent: #d6b36a;
  --accent-deep: #8d6828;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(16, 36, 48, 0.08);
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: #fff;
  background-image: linear-gradient(90deg, #f5c518 0%, #1a1404 20%, #000000 50%, #1a0608 80%, #d0122d 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font: 16px/1.65 "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

a { color: inherit; }

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  background: #fff;
  color: var(--brand);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}

.skip:focus { transform: none; }

.top {
  background: #0a0a0a;
  color: #f5c518;
  font-size: 13px;
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #f5c518 0%, #111111 34%, #111111 66%, #d0122d 100%);
  border-bottom: 1px solid rgba(245, 197, 24, 0.55);
}

.ticker {
  overflow: hidden;
  background: #111;
  color: #f5c518;
  border-bottom: 2px solid #d0122d;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker p {
  margin: 0;
  padding: 8px 2.5rem;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 132px;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.footer .logo {
  display: flex;
  align-items: center;
  width: 268px;
  height: 78px;
  margin: 0 0 10px;
  overflow: hidden;
}

.footer .logo img {
  width: 250px;
  height: 167px;
  max-width: none;
  flex: none;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  flex-wrap: nowrap;
}

.links a {
  text-decoration: none;
  color: #f7f4ee;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.links a:hover,
.links a[aria-current="page"] {
  color: #111;
  background: #f5c518;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth { display: none; }

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.btn-auth.daftar {
  background: var(--accent);
  color: #1c2a26;
}

.btn-auth.login {
  border: 1px solid #f5c518;
  color: #f5c518;
  background: transparent;
}

.menu {
  display: none;
  border: 1px solid #f5c518;
  background: #111;
  border-radius: 12px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  color: #f5c518;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 72px 0;
  color: #fff;
  background-color: #103d34;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0c3028;
  background-image:
    linear-gradient(90deg, rgba(8, 28, 24, 0.82) 0%, rgba(8, 28, 24, 0.62) 32%, rgba(8, 28, 24, 0.08) 56%),
    url("../images/cantonatoto.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #ead29a;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  max-width: 560px;
  margin: 12px 0 16px;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 520px;
  margin: 0;
  color: #e4eeea;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.btn.gold { background: var(--accent); color: #1c2a26; }
.btn.gold:hover { background: #e3c484; }
.btn.ghost { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.section { padding: 58px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  color: #f7f4ee;
}

.lead { color: #efe8dc; max-width: 720px; margin: 0; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover { border-color: #cfdcd6; }

.card .tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.card h3 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card p:last-child { margin-bottom: 0; }
.card a { margin-top: auto; font-weight: 700; color: var(--brand); text-decoration: none; }
.card a:hover { text-decoration: underline; }

.number {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.04em;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #fff8ea;
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
  color: #57482b;
}

.tight { padding-top: 0; }

.content { padding: 42px 0 72px; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.article h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}

.article h2 { margin: 32px 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.article p,
.article li { color: #4d5969; }
.article ul { margin: 0 0 8px; padding-left: 1.2rem; }
.article li + li { margin-top: 6px; }
.article a { color: var(--brand); }

.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header) + 16px);
}

.sidebar h3 { margin: 0 0 8px; font-size: 16px; }

.sidebar a {
  display: block;
  padding: 10px 0;
  color: #536173;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.sidebar a:last-child { border-bottom: 0; }
.sidebar a:hover { color: var(--brand); }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; color: var(--brand); }
.meta { color: var(--muted); font-size: 13px; margin-top: 0; }

.faq details {
  background: #f8fafb;
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 14px;
  margin: 10px 0;
}

.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.pill {
  display: inline-block;
  border: 1px solid #d7e3de;
  background: #f4faf7;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3f6156;
}

.footer {
  background: linear-gradient(90deg, #f5c518 0%, #111111 14%, #111111 86%, #d0122d 100%);
  color: #f7f4ee;
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer .logo { color: #fff; }
.footer h3 { color: #f5c518; margin: 0 0 10px; font-size: 16px; }

.footer a {
  display: block;
  color: #f3e6c0;
  text-decoration: none;
  margin: 8px 0;
  font-size: 14px;
}

.footer a:hover { color: #fff; }

.footer small {
  display: block;
  border-top: 1px solid rgba(245, 197, 24, 0.35);
  margin-top: 28px;
  padding-top: 16px;
  color: #f0e6d2;
}

.legal { font-size: 14px; color: #f0e6d2; max-width: 420px; }

:focus-visible {
  outline: 3px solid #e3c27a;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .ticker {
    position: sticky;
    top: var(--header);
    z-index: 19;
  }
  .hero { min-height: 460px; padding: 64px 0; }
  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(8, 28, 24, 0.62) 0%, rgba(8, 28, 24, 0.2) 70%),
      url("../images/cantonatoto.png");
    background-position: 70% center;
  }
  .auth { display: flex; gap: 6px; }
  .menu { display: inline-flex; align-items: center; }
  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 36, 48, 0.08);
    flex-direction: column;
    align-items: stretch;
  }
  .links.open { display: flex; }
  .links a { padding: 12px 10px; }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .sidebar { position: static; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .grid > .card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    padding: 16px;
  }
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
    background-color: transparent;
  }
  .hero-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .hero::before {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-image: url("../images/cantonatoto.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
}

@media (max-width: 560px) {
  :root { --header: 68px; }
  .wrap { width: min(100% - 28px, 1120px); }
  .top .wrap { font-size: 12px; }
  .hero { padding: 0; }
  .actions .btn { width: 100%; }
  .nav { gap: 8px; }
  .logo { height: 38px; }
  .logo img { height: 96px; }
  .footer .logo { width: 236px; height: 68px; }
  .footer .logo img { width: 220px; height: 147px; }
  .btn-auth { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .menu { padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker p[aria-hidden="true"] { display: none; }
}
