/* Corporate marketing site. One stylesheet, no framework. */
:root {
  --bg: #070d1a;
  --bg-alt: #0a1324;
  --surface: #0f1b31;
  --surface-2: #14233f;
  --line: rgba(148, 170, 210, .16);
  --line-strong: rgba(148, 170, 210, .3);
  --text: #e9eef8;
  --muted: #a6b3ca;
  --accent: #2dd4bf;
  --accent-2: #5b9dff;
  --ink: #04131c;
  --danger: #ff9b9b;
  --ok: #7ee2b8;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1160px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }
.icon { flex: none; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { padding: .62rem 1rem; font-size: .92rem; }
.btn--primary { background: linear-gradient(135deg, var(--accent), #38bdf8); color: var(--ink); box-shadow: 0 8px 26px -12px rgba(45, 212, 191, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(45, 212, 191, .9); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(45, 212, 191, .07); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(7, 13, 26, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 68px; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav__links { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .4rem 0; transition: color .15s ease; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.lang a { display: block; padding: .36rem .62rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--surface-2); color: var(--text); }
.lang a:focus-visible { outline-offset: -2px; }
.nav-toggle { display: none; }

/* Wide enough for the longer Bahasa Malaysia labels to stay on one line. */
@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: .8rem; padding-bottom: .8rem; }
  .nav__links { flex-direction: column; gap: 0; }
  .lang { align-self: flex-start; }
  .nav__links a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(91, 157, 255, .2), transparent 60%),
    radial-gradient(40rem 26rem at 0% 20%, rgba(45, 212, 191, .11), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); padding-left: .9rem; border-left: 2px solid var(--accent); }

.diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1.6rem 1.3rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, rgba(20, 35, 63, .85), rgba(10, 19, 36, .85)); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9); }
.diagram__col { display: grid; gap: .6rem; }
.diagram__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chip { display: block; padding: .55rem .7rem; border: 1px dashed var(--line-strong); border-radius: 9px; font-size: .82rem; color: var(--muted); background: rgba(7, 13, 26, .5); }
.chip--on { border: 1px solid rgba(45, 212, 191, .4); color: var(--text); background: rgba(45, 212, 191, .08); }
.diagram__core { position: relative; display: grid; place-items: center; align-content: center; gap: .2rem; width: 132px; aspect-ratio: 1; border-radius: 50%; text-align: center; padding: .8rem; background: radial-gradient(circle at 30% 25%, #1b3358, #0c1830); border: 1px solid rgba(91, 157, 255, .5); }
.diagram__core strong { font-size: .92rem; }
.diagram__core span:not(.diagram__ring) { font-size: .68rem; color: var(--muted); line-height: 1.3; }
.diagram__ring { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(45, 212, 191, .35); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); opacity: .35; } }

@media (max-width: 960px) { .hero__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .diagram { grid-template-columns: 1fr; justify-items: stretch; }
  .diagram__col { grid-template-columns: 1fr 1fr; }
  .diagram__label { grid-column: 1 / -1; }
  .diagram__core { justify-self: center; }
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding-top: 0; }
.head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: rgba(45, 212, 191, .45); transform: translateY(-3px); }
.card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--accent); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .25); margin-bottom: 1.1rem; }
.card p { margin-top: .6rem; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }

/* Portfolio */
.work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.project { grid-column: span 2; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.project:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.project__shot { display: block; background: #0b1528; border-bottom: 1px solid var(--line); }
.project__bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); }
.project__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(166, 179, 202, .35); }
.project__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .5rem; }
.project__body p:not(.tag) { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.1rem; color: var(--accent); font-weight: 600; font-size: .95rem; text-decoration: none; align-self: flex-start; }
.more .icon { width: 17px; height: 17px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .work { grid-template-columns: repeat(2, 1fr); } .project { grid-column: span 1; } }
@media (max-width: 580px) { .work { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.4rem; }
.step { position: relative; padding: 1.5rem 1.2rem 1.4rem; border-top: 2px solid var(--line-strong); }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.step__n { display: block; font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .08em; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.step p { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2rem; }
.why li { display: flex; gap: .9rem; }
.why .icon { color: var(--accent); margin-top: .1rem; }
.why p { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .why { grid-template-columns: 1fr; } }

/* Highlights */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.8rem, 4.5vw, 3.6rem); border-radius: 22px; border: 1px solid var(--line); }
.feature--ai { background: radial-gradient(50rem 22rem at 100% 0%, rgba(91, 157, 255, .22), transparent 60%), radial-gradient(34rem 20rem at 0% 100%, rgba(45, 212, 191, .16), transparent 60%), var(--surface); border-color: rgba(91, 157, 255, .35); }
.feature--mkt { background: var(--surface); }
.feature__copy p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.feature__copy .fine { padding-left: .9rem; border-left: 2px solid var(--line-strong); }
.feature__copy .btn { margin-top: 1.7rem; }
.ticks { display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(7, 13, 26, .45); font-size: .96rem; }
.ticks .icon { width: 20px; height: 20px; color: var(--accent); margin-top: .15rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__intro p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.contact__list { margin-top: 1.8rem; display: grid; gap: .7rem; }
.contact__link, .footer__contact { display: inline-flex; align-items: flex-start; gap: .7rem; text-decoration: none; }
.contact__link .icon, .footer__contact .icon { margin-top: .15rem; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--muted); }
.contact__link .icon { color: var(--accent); }
a.contact__link:hover, a.footer__contact:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form__notice { margin-bottom: 1.3rem; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .08); color: #fde68a; font-size: .92rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.5rem; }
.field { min-width: 0; border: 0; padding: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.field label span { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 7.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, .25); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field__err { margin-top: .35rem; font-size: .85rem; color: var(--danger); }
.choice { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.choice legend { width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; margin: 0; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 1.1rem; }
.form__status:empty { display: none; }
.form__status > div { padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.form__status .is-ok { border: 1px solid rgba(126, 226, 184, .5); background: rgba(126, 226, 184, .1); color: var(--ok); }
.form__status .is-err { border: 1px solid rgba(255, 155, 155, .5); background: rgba(255, 155, 155, .08); color: var(--danger); }
.form__status .alt { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 3.5rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .7fr 1.2fr 1.2fr 1.6fr; gap: 2.2rem; }
.footer__about p { margin-top: 1rem; color: var(--muted); max-width: 22rem; }
.footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer ul a { color: var(--text); text-decoration: none; opacity: .86; }
.footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 1040px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

/* Scroll reveal: only when JavaScript is running and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
