:root {
  --toko-red: #ff0000;
  --toko-yellow: #ffdd00;
  --toko-yellow-soft: #ffe675;
  --toko-brown: #b17e3c;
  --ink: #19130f;
  --muted: #665b50;
  --cream: #fff9e7;
  --paper: #ffffff;
  --line: #ebdfbd;
  --shadow: 0 18px 45px rgba(25, 19, 15, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 12px 48px;
  background: #000000;
  border-bottom: 1px solid rgba(177, 126, 60, 0.18);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 166px;
  height: auto;
}

.back-home {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 54px;
  padding: 8px 28px 10px;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--toko-red), #d50000 52%, #a10000);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  box-shadow:
    0 14px 28px rgba(255, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.back-home::after {
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid rgba(255, 221, 0, 0.28);
  border-radius: calc(var(--radius) - 2px);
  content: "";
}

.back-home span {
  color: var(--toko-yellow-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.back-home strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.05;
}

.back-home:hover,
.back-home:focus-visible {
  background: linear-gradient(135deg, var(--toko-yellow), #ffd000);
  box-shadow:
    0 14px 28px rgba(255, 221, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  color: #000000;
  transform: translateY(-2px);
}

.back-home:hover span,
.back-home:focus-visible span,
.back-home:hover strong,
.back-home:focus-visible strong {
  color: #000000;
}

.header-spacer {
  width: 166px;
  height: 1px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 56px;
  min-height: 620px;
  padding: 72px 7vw;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(25, 19, 15, 0.16), rgba(25, 19, 15, 0)),
    var(--toko-brown);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: url("assets/toko-pattern.png");
  background-size: 150px 150px;
  opacity: 0.08;
  content: "";
}

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

.hero-media {
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--toko-yellow-soft);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.form-intro h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  color: var(--toko-yellow-soft);
  font-size: 4.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #fff7dc;
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: #ffffff;
  background: var(--toko-red);
  box-shadow: 0 14px 28px rgba(255, 0, 0, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #000000;
  background: var(--toko-yellow);
  box-shadow: 0 14px 28px rgba(255, 221, 0, 0.24);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: #ffffff;
}

.rules-section {
  background: #ffffff;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading .eyebrow,
.form-intro .eyebrow {
  color: var(--toko-red);
}

.section-heading h2 {
  max-width: 720px;
  font-size: 2.4rem;
  font-weight: 900;
}

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

.rule-card {
  min-height: 230px;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #000000;
  background: var(--toko-yellow);
  border-radius: var(--radius);
  font-weight: 900;
}

.rule-card h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
}

.form-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    var(--toko-yellow);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
  gap: 34px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 110px;
  padding: 34px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-intro h2 {
  color: var(--toko-yellow-soft);
  font-size: 2.18rem;
  font-weight: 900;
}

.form-intro p {
  margin: 18px 0 0;
  color: #f7edd4;
}

.prize-box {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 18px;
  color: var(--ink);
  background: var(--toko-yellow);
  border-radius: var(--radius);
}

.prize-box strong {
  font-size: 2rem;
  line-height: 1;
}

.prize-box span {
  font-weight: 800;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(25, 19, 15, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.field-half {
  grid-column: auto;
}

.field-group label {
  font-size: 0.9rem;
  font-weight: 900;
}

.field-group input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdf6;
  border: 1px solid #dfd3b5;
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field-group input::placeholder {
  color: #9b8d78;
}

.field-group input:focus {
  background: #ffffff;
  border-color: var(--toko-red);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer {
  color: #ffffff;
  background: #000000;
}

.footer-shell {
  width: min(1800px, calc(100% - 72px));
  margin: 0 auto;
  padding: 18px 0 16px;
}

.footer-locations {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 24px;
  align-items: start;
  text-align: center;
}

.footer-locations h3 {
  margin: 0 0 2px;
  color: var(--toko-yellow);
  font-size: clamp(1rem, 1.12vw, 1.4rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.footer-locations a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.05vw, 1.28rem);
  font-weight: 900;
  line-height: 1.08;
}

.footer-locations p {
  margin: 1px 0;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.05vw, 1.28rem);
  font-weight: 700;
  line-height: 1.12;
}

.whatsapp-mark {
  color: #52b964;
  font-size: 0.86em;
  line-height: 1;
}

.phone-mark {
  color: #d5d5d5;
  font-size: 0.86em;
  line-height: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.footer-social svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 20px;
  color: #ffffff;
  background: #111111;
  font-size: clamp(1rem, 1.02vw, 1.24rem);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 10px 28px;
  }

  .header-spacer {
    width: 136px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 52px 28px;
  }

  .hero-media {
    max-width: 640px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .section-heading,
  .form-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }

  .footer-locations {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
  }

  .footer-locations h3,
  .footer-locations a,
  .footer-locations p {
    font-size: 1rem;
  }
}

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

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: initial;
    gap: 12px;
    min-height: 74px;
    padding: 10px 14px;
    background: rgba(5, 4, 3, 0.96);
  }

  .brand img {
    width: 104px;
  }

  .back-home {
    justify-self: end;
    width: clamp(178px, 57vw, 230px);
    min-height: 48px;
    margin-top: 0;
    padding: 7px 12px 9px;
  }

  .back-home span {
    font-size: 0.62rem;
  }

  .back-home strong {
    font-size: 0.86rem;
  }

  .header-spacer {
    display: none;
  }

  .hero {
    gap: 28px;
    padding: 36px 20px 46px;
  }

  .hero-media {
    padding: 8px;
  }

  .hero-media img {
    min-height: 260px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
    padding: 52px 0;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading h2,
  .form-intro h2 {
    font-size: 1.72rem;
  }

  .rule-grid,
  .signup-form,
  .footer-locations {
    grid-template-columns: 1fr;
  }

  .field-half {
    grid-column: 1 / -1;
  }

  .signup-form,
  .form-intro {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
