:root {
  --ink: #1f211d;
  --muted: #686055;
  --line: #e5d4bc;
  --paper: #fff8ed;
  --cream: #fffdf8;
  --apricot: #f7b46c;
  --apricot-dark: #a75e1e;
  --leaf: #466d55;
  --sea: #346e84;
  --night: #242a2a;
  --shadow: 0 24px 70px rgba(63, 39, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body[data-language="my"] {
  line-height: 1.9;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(229, 212, 188, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.language-option {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-option.active {
  color: #fff;
  background: var(--ink);
}

.nav-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 126px));
  margin: 0 auto;
  padding: 64px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--apricot-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

body[data-language="my"] h1 {
  line-height: 1.04;
}

body[data-language="my"] h2 {
  line-height: 1.18;
}

body[data-language="my"] h3,
body[data-language="my"] .hero-lede,
body[data-language="my"] .faq summary {
  line-height: 1.55;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--night);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 750;
}

.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  min-width: 164px;
  padding: 0 22px;
  border: 1px solid var(--ink);
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.74);
}

.hero-stats dt {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.phone-stage {
  position: relative;
  min-height: 660px;
  isolation: isolate;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 8% 8% 12% 12%;
  background: rgba(247, 180, 108, 0.22);
  border: 1px solid rgba(229, 212, 188, 0.8);
  border-radius: 28px;
  transform: rotate(-4deg);
}

.phone {
  position: absolute;
  width: 265px;
  border: 8px solid #181915;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #181915;
}

.phone-main {
  left: 50%;
  top: 6%;
  z-index: 3;
  width: min(62vw, 318px);
  transform: translateX(-50%);
}

.phone-left {
  left: 0;
  bottom: 6%;
  z-index: 2;
  transform: rotate(-8deg);
}

.phone-right {
  right: 0;
  bottom: 11%;
  z-index: 1;
  transform: rotate(8deg);
}

.preview-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.preview-strip img {
  width: 100%;
  aspect-ratio: 401 / 867;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(63, 39, 15, 0.11);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.intro,
.trust,
.final-cta {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.intro p:last-child,
.trust p:last-child,
.final-cta p {
  color: var(--muted);
  font-size: 1.16rem;
}

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

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

.feature-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

body[data-language="my"] .feature-grid article,
body[data-language="my"] .steps li,
body[data-language="my"] .restaurant-grid p {
  padding-top: 28px;
  padding-bottom: 28px;
}

.feature-grid p,
.restaurant-grid p,
.faq p {
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--leaf);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.78rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 190px;
  padding: 24px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.steps li > span:first-child {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.step-copy {
  display: inline;
}

.restaurant {
  padding: 86px 0;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.restaurant-grid p {
  min-height: 150px;
  margin: 0;
  padding: 24px;
  background: var(--cream);
  font-weight: 750;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list li {
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.trust {
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 900;
}

.faq details p {
  max-width: 740px;
  margin-bottom: 24px;
}

.final-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 64px;
  color: #fff;
  border-radius: 8px;
  background: var(--night);
}

.final-cta .eyebrow,
.final-cta p {
  color: #ffd9a6;
}

.final-cta .button.primary {
  color: var(--ink);
  background: var(--apricot);
  border-color: var(--apricot);
}

.final-cta .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.56);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .intro,
  .trust,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .phone-stage {
    min-height: 580px;
  }

  .phone-main {
    width: 300px;
  }

  .preview-strip,
  .feature-grid,
  .steps,
  .restaurant-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-cta,
  .trust {
    padding: 40px;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
  }

  .nav-cta {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .nav-tools {
    gap: 0;
  }

  .language-switcher {
    min-height: 34px;
    padding: 3px;
  }

  .language-option {
    min-width: 32px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .hero,
  .section,
  .preview-strip,
  .final-cta,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    gap: 28px;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 4.6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats,
  .preview-strip,
  .feature-grid,
  .steps,
  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 500px;
    overflow: hidden;
  }

  .phone {
    border-width: 6px;
    border-radius: 28px;
  }

  .phone-main {
    width: min(76vw, 284px);
    top: 0;
  }

  .phone-left {
    width: 180px;
    left: -34px;
    bottom: 18px;
  }

  .phone-right {
    width: 180px;
    right: -34px;
    bottom: 24px;
  }

  .preview-strip {
    margin-bottom: 42px;
  }

  .section {
    padding: 58px 0;
  }

  .feature-grid article,
  .steps li,
  .restaurant-grid p {
    min-height: auto;
  }

  .trust,
  .final-cta {
    padding: 28px;
  }

  .footer {
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
