/* ============ Apply Unifi — official unifi.com.my design language ============ */
:root {
  --orange: #FF5E00;        /* unifi hero orange */
  --orange-head: #FF7A00;   /* unifi heading orange */
  --orange-dark: #E14F00;
  --orange-soft: #FFF1E8;
  --navy: #06013A;          /* unifi deep space navy */
  --indigo: #180092;        /* unifi royal indigo */
  --blue: #1801E6;          /* bright accent (old brand secondary) */
  --ink: #141414;
  --muted: #5A5A5A;
  --line: #E9E9EC;
  --bg: #FFFFFF;
  --bg-gray: #F4F4F6;       /* unifi card gray */
  --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(6, 1, 58, .08);
  --shadow-lg: 0 24px 60px rgba(6, 1, 58, .18);
  --radius: 22px;
  --wa: #25D366;
  --font-head: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* unifi ketupat diamond pattern, white at low opacity */
  --ketupat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 4 40 22 22 40 4 22Z' fill='none' stroke='%23FFFFFF' stroke-opacity='.10' stroke-width='2'/%3E%3Cpath d='M22 14 30 22 22 30 14 22Z' fill='%23FFFFFF' fill-opacity='.05'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92%); margin-inline: auto; }
.center { text-align: center; }

/* unifi headline style: wide grotesk, uppercase, tracked out */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12; font-weight: 800;
  text-transform: uppercase; letter-spacing: .035em;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; letter-spacing: .04em; }
.section > .container > .section-head h2 { color: var(--orange-head); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 .98rem var(--font-head);
  letter-spacing: .02em;
  padding: .85rem 1.8rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 94, 0, .3); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(255, 94, 0, .4); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: var(--orange-soft); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1EBE5B; }
.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-dark);
  font: 700 .78rem var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.pill-light { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand-logo { height: 44px; width: auto; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  text-decoration: none; font: 500 .95rem var(--font-body); color: var(--ink);
  transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero: unifi orange band + ketupat pattern + curved bottom ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    var(--ketupat),
    radial-gradient(700px 440px at 78% 2%, rgba(255, 170, 80, .34), transparent 60%),
    linear-gradient(118deg, #FF8A2B 0%, var(--orange) 44%, #9C2A85 76%, #3A18AE 94%, var(--indigo) 100%);
}
/* white curve cutting up into the orange, like unifi.com.my section edges */
.hero::after {
  content: ""; position: absolute; z-index: 1;
  left: -10%; right: -10%; bottom: -2px; height: 64px;
  background: #fff; border-radius: 100% 100% 0 0;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 4.2rem 0 6.2rem;
}
.hero-sub {
  margin: 1.2rem 0 1.8rem; font-size: 1.06rem; max-width: 34rem;
  color: rgba(255,255,255,.94); text-transform: none;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-ctas.center { justify-content: center; }
.accent-underline { position: relative; white-space: nowrap; isolation: isolate; }
.accent-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em;
  background: var(--blue); border-radius: 999px; opacity: .95; z-index: -1;
}
.hero-trust { list-style: none; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; }
.hero-trust em { font-style: normal; opacity: .9; }
.hero-trust svg { flex: none; color: #FFD9C2; }

/* Lead form card */
.form-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-card h2 {
  font-size: 1.05rem; margin-bottom: 1.4rem;
  text-transform: none; letter-spacing: 0; color: var(--navy);
}
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; }
.req { color: var(--orange); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: .75rem 1rem; font: 400 .95rem var(--font-body);
  border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,94,0,.15); }
.field input.invalid { border-color: #D92D20; }
.radio-group { border: 0; }
.radio-group .radio {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .95rem; font-weight: 500; margin-right: 1.4rem; cursor: pointer;
}
.radio input { accent-color: var(--orange); width: 1.05rem; height: 1.05rem; cursor: pointer; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .9rem; }
/* honeypot: off-screen rather than display:none, which some bots skip */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Stats: deep space navy ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 2.2rem 0; text-align: center;
}
.stat strong {
  display: block; font: 800 2.2rem var(--font-head); color: var(--orange-head); line-height: 1.1;
}
.stat span { font-size: .85rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-tint { background: var(--bg-gray); }
.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-top: .9rem; color: var(--muted); }

/* Orange patterned section with curved top edge (unifi "why users prefer" style) */
.section-orange {
  position: relative; color: #fff; overflow: hidden;
  background:
    var(--ketupat),
    linear-gradient(160deg, #FF6A0D 0%, var(--orange) 60%, #F05500 100%);
  padding-top: 7rem;
}
/* curve must match the background of whichever section sits directly above */
.section-orange::before {
  content: ""; position: absolute;
  left: -10%; right: -10%; top: -2px; height: 64px;
  background: var(--bg-gray); border-radius: 0 0 100% 100%;
}
.section-orange > .container > .section-head h2 { color: #fff; }

/* ---------- Plans ---------- */
/* 6 columns with each card spanning 2 gives 3 across; offsetting the 4th card
   centres the remaining two underneath instead of leaving a gap on the right */
.plans-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem;
  align-items: stretch;
}
.plan-card { grid-column: span 2; }
.plan-card:nth-child(4) { grid-column: 2 / span 2; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid #DEDEE6; border-radius: var(--radius);
  padding: 0 1.5rem 1.8rem; overflow: hidden;
  box-shadow: 0 6px 18px rgba(6, 1, 58, .09);
  transition: box-shadow .2s, border-color .2s;
}
.plan-card:hover { box-shadow: 0 14px 34px rgba(6, 1, 58, .16); border-color: var(--orange); }
.plan-featured { border: 2.5px solid var(--orange); box-shadow: 0 18px 44px rgba(255, 94, 0, .26); }
/* orange ribbon band across the top, like unifi's card ribbons */
.plan-ribbon {
  margin: 0 -1.5rem 1.4rem;
  background: linear-gradient(120deg, #FF7A1A, var(--orange));
  color: #fff; text-align: center;
  font: 800 .95rem var(--font-head); letter-spacing: .05em; text-transform: uppercase;
  padding: .6rem 1rem;
}
.plan-ribbon-indigo { background: linear-gradient(120deg, #2A18B8, var(--indigo)); }
/* the featured card carries two labels side by side in one ribbon */
.plan-ribbon-split { display: flex; padding: 0; background: none; }
.plan-ribbon-split > span { flex: 1; padding: .6rem .4rem; }
.plan-ribbon-split .seg-orange { background: linear-gradient(120deg, #FF7A1A, var(--orange)); }
.plan-ribbon-split .seg-blue { background: linear-gradient(120deg, #4A2BFF, var(--blue)); }
.plan-head { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.plan-speed { font: 800 2.9rem var(--font-head); color: var(--navy); line-height: 1; }
.plan-speed small { font-size: 1.1rem; font-weight: 700; color: var(--muted); margin-left: .25rem; }
.plan-price { margin: 1rem 0 1.3rem; font: 800 3.4rem var(--font-head); color: var(--orange); line-height: 1; }
.plan-price sup { font-size: 1.2rem; font-weight: 800; vertical-align: super; margin-right: .15rem; }
.plan-price span { font: 500 1rem var(--font-body); color: var(--muted); }
.plan-features { list-style: none; flex: 1; margin-bottom: 1.4rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .86rem; color: var(--muted);
  margin-bottom: .75rem;
}
.fi {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; margin-top: -.1rem;
  background: var(--orange-soft); color: var(--orange-dark);
}
.fi svg { width: 17px; height: 17px; }

/* ---------- Features (inside orange section) ---------- */
.feature-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 12px 32px rgba(6, 1, 58, .14);
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: 0 18px 42px rgba(6, 1, 58, .22); }
.feature-card h3 { color: var(--navy); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); margin-bottom: 1.2rem;
}
.feature-card p { color: var(--muted); font-size: .93rem; margin-top: .5rem; }

/* ---------- Specialists ---------- */
.specialists-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.specialists-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--orange-soft), #fff);
}
.specialists-copy h2 { color: var(--orange-head); }
.specialists-copy p { color: var(--muted); margin: 1rem 0 1.4rem; }
.check-list { list-style: none; margin-bottom: 1.8rem; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .22rem; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--orange-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E14F00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 60%; background-repeat: no-repeat; background-position: center;
}

/* ---------- Steps ---------- */
#how-it-works .section-head h2 { color: var(--orange-head); }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 2.6rem;
}
.step {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: #fff; font: 800 1.2rem var(--font-head);
  margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(255,94,0,.3);
}
.step h3 { color: var(--navy); }
.step p { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

/* ---------- Biz banner: royal indigo ---------- */
.biz-banner {
  background:
    var(--ketupat),
    radial-gradient(700px 400px at 90% -20%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg, #2A18B8 0%, var(--indigo) 100%);
  color: #fff;
}
.biz-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem; padding: 3.2rem 0;
}
.biz-inner h2 { max-width: 32rem; }
.biz-banner .btn-white { color: var(--indigo); }
.biz-banner .btn-white:hover { background: #EEEBFF; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.testimonial-card {
  background: var(--bg-gray); border: 1.5px solid #DEDEE6; border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 0 4px 14px rgba(6, 1, 58, .06);
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card:hover { box-shadow: 0 14px 34px rgba(6, 1, 58, .14); border-color: #C9C9D6; }
.stars { color: #FFB020; letter-spacing: .15em; font-size: .95rem; }
.testimonial-card blockquote { font-size: .98rem; color: var(--ink); flex: 1; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial-card figcaption img { width: 64px; height: 64px; object-fit: contain; }
.testimonial-card figcaption strong { display: block; font-size: .92rem; color: var(--navy); }
.testimonial-card figcaption span { font-size: .8rem; color: var(--muted); }

/* ---------- Final CTA: deep navy with orange/indigo glow ---------- */
.final-cta {
  background:
    var(--ketupat),
    radial-gradient(760px 440px at 85% -20%, rgba(255, 94, 0, .4), transparent 60%),
    radial-gradient(600px 400px at 0% 120%, rgba(24, 0, 146, .55), transparent 55%),
    var(--navy);
  color: #fff; padding: 4.5rem 0;
}
.final-cta p { margin: .9rem auto 1.8rem; max-width: 32rem; color: rgba(255,255,255,.92); }

/* ---------- Footer: navy + indigo bar ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-inner { padding: 3rem 0 2.4rem; text-align: center; font-size: .85rem; }
.footer-logo {
  height: 40px; width: auto; margin: 0 auto 1.4rem;
  background: #fff; padding: .6rem 1.1rem; border-radius: 14px; box-sizing: content-box;
}
.footer-bar { background: var(--indigo); padding: .9rem 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.85); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: background-color .2s, box-shadow .2s;
}
.wa-float:hover { background: #1EBE5B; box-shadow: 0 12px 30px rgba(37,211,102,.6); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0 5rem; }
  .specialists-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .specialists-photo { max-width: 420px; margin-inline: auto; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  /* 2 across, with the 5th card centred on its own row */
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .plan-card:nth-child(4) { grid-column: span 2; }
  .plan-card:nth-child(5) { grid-column: 2 / span 2; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 4%;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 540px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card, .plan-card:nth-child(4), .plan-card:nth-child(5) { grid-column: auto; }
  .section { padding: 3.4rem 0; }
  .section-orange { padding-top: 5.6rem; }
  .form-card { padding: 1.5rem; }
  .btn { width: 100%; }
  .header-actions .btn-whatsapp { width: auto; }
  .biz-inner { text-align: center; justify-content: center; }
}
