/* Nexus Intelligence Indonesia: site styles.
   Palette from the company profile: deep navy grounds, the logo's blue-to-cyan
   gradient as the only accent. Dark sections carry the brand; light sections
   carry the reading. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --navy: #0b1f38;
  --navy-deep: #08182c;
  --navy-2: #12304f;
  --blue: #1a73e8;
  --blue-2: #2b8cff;
  --cyan: #12d0f5;
  --grad: linear-gradient(100deg, #1a73e8 0%, #12d0f5 100%);
  --ink: #0b1f38;
  --text: #2a3d52;
  --muted: #5d7187;
  --line: #dbe5ef;
  --mist: #f3f7fc;
  --on-dark: #e8f0fa;
  --on-dark-muted: #9fb3c9;
  --white: #fff;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(11, 31, 56, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.dark .eyebrow, .hero .eyebrow, .cta .eyebrow { color: var(--cyan); }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* --- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--font); text-decoration: none; padding: 16px 26px; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(26, 115, 232, .35); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(18, 208, 245, .35); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 12px 20px; font-size: .9rem; }

/* --- topbar ----------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(8, 24, 44, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-in { display: flex; align-items: center; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 34px; }
.brand-word { font-size: .72rem; font-weight: 700; line-height: 1.12; letter-spacing: .04em; text-transform: uppercase; }
.brand-word small { display: block; font-size: .5rem; font-weight: 500; letter-spacing: .12em; color: var(--cyan); margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--cyan); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* --- hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--on-dark); padding: clamp(72px, 9vw, 128px) 0 0; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(18, 208, 245, .18), transparent 70%),
    linear-gradient(90deg, var(--navy-deep) 30%, rgba(8, 24, 44, .55) 70%, rgba(8, 24, 44, .3) 100%),
    url("../img/bg-chip.jpg") right center / cover no-repeat;
  opacity: .95;
}
.hero-hand {
  position: absolute; right: max(-60px, calc(50% - 760px)); bottom: 70px; width: min(52vw, 700px);
  transform: scaleX(-1); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
  /* the cut end of the forearm (left edge before the flip) fades out, so it
     never reads as a severed arm on wide screens */
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 42%); mask-image: linear-gradient(to right, transparent 4%, #000 42%);
  animation: hand-in 1.2s var(--ease) both .2s;
}
@keyframes hand-in { from { opacity: 0; transform: scaleX(-1) translateX(-40px); } }
.hero-in { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 13.5em; }
.hero h1 .grad { display: inline; }
.hero .lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--on-dark-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.hero-focus { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-focus li {
  display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: #fff;
  padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-focus span { font-size: .7rem; font-weight: 700; color: var(--navy); background: var(--cyan); border-radius: 999px; padding: 3px 8px; }
.hero-tag {
  position: relative; z-index: 1; margin-top: clamp(56px, 7vw, 96px); margin-bottom: 0; padding-top: 18px; padding-bottom: 18px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }

/* --- sections --------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-lead { font-size: 1.05rem; color: var(--muted); }
.dark { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark .section-lead { color: var(--on-dark-muted); }

.ticks li { position: relative; padding-left: 22px; font-size: .9rem; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.dark .ticks li::before { border-color: var(--cyan); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--muted); }
.about-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vm-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; margin-top: clamp(48px, 6vw, 72px); }
.vision { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.vision::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 208, 245, .35), transparent 70%); }
.vision-text { font-size: 1.2rem; font-weight: 500; line-height: 1.5; color: #fff; margin: 0; position: relative; }
.mission { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.mission-list { counter-reset: m; }
.mission-list li { counter-increment: m; position: relative; padding: 0 0 16px 48px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.mission-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.mission-list li::before {
  content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-size: .78rem; font-weight: 700; color: #fff; background: var(--grad); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
}

/* services */
.services { background: var(--mist); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { padding: 26px 26px 30px; }
.svc h3 { font-size: 1.3rem; margin-bottom: 4px; }
.svc-tagline { font-weight: 600; color: var(--blue); font-size: .92rem; }
.svc-body > p:not(.tag):not(.svc-tagline):not(.svc-label) { color: var(--muted); font-size: .94rem; }
.svc-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.ticks-alt li::before { border-color: var(--cyan); }

/* programs */
.programs { background: var(--navy-deep); }
.programs::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: url("../img/bg-circuit.jpg") center / cover no-repeat;
}
.programs .wrap { position: relative; }
.fmt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fmt { display: grid; grid-template-columns: 42% 1fr; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .25s; }
.fmt:hover { border-color: rgba(18, 208, 245, .5); }
.fmt img { width: 100%; height: 100%; object-fit: cover; }
.fmt-body { padding: 26px; }
.fmt-num { font-size: .8rem; font-weight: 700; color: var(--cyan); letter-spacing: .1em; margin-bottom: 6px; }
.fmt-body > p:not(.fmt-num) { color: var(--on-dark-muted); font-size: .92rem; }
.fmt .ticks li { color: var(--on-dark); }

/* target */
.target-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; min-height: 260px; display: flex; align-items: flex-end; }
.target-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.target-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 44, .95) 0%, rgba(8, 24, 44, .75) 45%, rgba(8, 24, 44, .1) 100%); }
.target-banner-copy { position: relative; padding: clamp(28px, 4vw, 48px); max-width: 44rem; }
.target-banner-copy .eyebrow { color: var(--cyan); }
.target-banner h2 { color: #fff; margin: 0; }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.target-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.target-card h3 { margin-bottom: 20px; }
.goal-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.goal-list li::before { content: ""; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a73e8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 20px no-repeat; border: 1px solid var(--line); }
.goal-list strong { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.goal-list span { font-size: .9rem; color: var(--muted); }

/* flow */
.flow { background: var(--navy); }
.flow::before { content: ""; position: absolute; left: -10%; top: -40%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(26, 115, 232, .25), transparent 65%); pointer-events: none; }
.flow .wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--grad); opacity: .6; }
.step { position: relative; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  font-weight: 700; font-size: .9rem; color: #fff; background: var(--navy); border: 2px solid var(--cyan); box-shadow: 0 0 0 6px var(--navy);
}
.step:last-child .step-num { background: var(--grad); border-color: transparent; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step h3 small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-top: 4px; }
.step p { font-size: .9rem; color: var(--on-dark-muted); margin: 0; }

/* why */
.why-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; min-height: 300px; display: flex; align-items: center; }
.why-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; }
.why-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 44, .98) 0%, rgba(8, 24, 44, .94) 42%, rgba(8, 24, 44, 0) 72%); }
.why-banner-copy { position: relative; padding: clamp(28px, 4vw, 56px); max-width: 40rem; }
.why-banner-copy .eyebrow { color: var(--cyan); }
.why-banner h2 { color: #fff; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .25s, box-shadow .25s; }
.why-item:hover { border-color: transparent; box-shadow: var(--shadow); }
.why-num { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-item > p:not(.why-num) { color: var(--muted); font-size: .92rem; }

/* cta */
.cta { background: var(--grad); color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .1); }
.cta-in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta .eyebrow { color: var(--navy); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* footer */
.footer { background: var(--navy-deep); color: var(--on-dark-muted); padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 22rem; }
.footer-brand .brand img { width: 40px; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: var(--on-dark-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--cyan); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--grad); border-color: transparent; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .82rem; }
.footer-base p { margin: 0; }

/* floating whatsapp */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.06); }

/* reveal (added by JS only, so content shows without it) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-hand { animation: none; }
  .btn, .wa { transition: none; }
}

/* --- responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav ul { gap: 18px; }
  .nav { gap: 20px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .fmt-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .hero-hand { width: 46vw; opacity: .55; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 8px var(--gutter) 24px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav .btn { margin-top: 18px; }
  .about-grid, .vm-grid, .target-grid, .cta-in { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .topbar-in { height: 68px; }
  .nav { top: 68px; }
  .hero { padding-top: 56px; }
  .hero-hand { width: 88vw; right: -30vw; bottom: auto; top: 10px; opacity: .28; }
  .hero-actions .btn { width: 100%; }
  .svc-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .fmt { grid-template-columns: 1fr; }
  .fmt img { aspect-ratio: 16 / 9; height: auto; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
  .vision, .mission, .target-card { padding: 24px; }
  .mission-list li { padding-left: 44px; }
  /* banners stack: photo on top, heading below on navy, never over faces */
  .why-banner, .target-banner { display: block; min-height: 0; background: var(--navy-deep); }
  .why-banner img, .target-banner img { position: static; aspect-ratio: 16 / 9; height: auto; }
  .why-banner::before, .target-banner::before { display: none; }
  .why-banner-copy, .target-banner-copy { padding: 24px; }
  .wa { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
