/* ==========================================================================
   SenangCRM Sdn Bhd — site styles
   Rebuilt from the Squarespace site; design tokens kept 1:1.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #f3882b;
  --orange-dark: #c8651a;
  --orange-light: #fef0e4;
  --orange-mid: #f7a85c;
  --ink: #0d1117;
  --ink-soft: #1a2030;
  --muted: #6b7585;
  --border: rgba(255,255,255,.08);
  --card-bg: rgba(255,255,255,.03);
  --white: #fff;
  --off-white: #f0f4f0;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 84px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, .display { font-family: 'Syne', sans-serif; line-height: 1.1; }

::selection { background: rgba(243,136,43,0.35); color: var(--white); }

:focus-visible { outline: 2px solid var(--orange-mid); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--orange); color: var(--white); padding: 0.6rem 1rem;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.custom-section { padding: 7rem 5%; }
.container { max-width: 1280px; margin: 0 auto; }

.section-label {
  font-size: .75rem; font-weight: 500; color: var(--orange-mid);
  text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700;
  margin-bottom: 1.25rem; letter-spacing: -.02em; color: var(--white);
}
.section-body {
  color: rgba(255,255,255,.5); max-width: 55ch;
  font-size: 1rem; font-weight: 300; line-height: 1.75;
}

/* ── BUTTONS ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 8px; text-decoration: none;
  font-size: 0.95rem; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.btn-primary { background: var(--orange); color: var(--white); font-weight: 500; border: none; }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); font-weight: 400; border: 1px solid rgba(255,255,255,0.15); }
.btn-primary:active, .btn-ghost:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
  .btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 5%;
  background: linear-gradient(180deg, rgba(58,36,20,0.85) 0%, rgba(13,17,23,0.55) 100%);
  transition: background-color 300ms ease, box-shadow 300ms ease, height 300ms var(--ease-out);
}
.site-header::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(13,17,23,0.78);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px rgba(0,0,0,0.25);
}
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header .logo img { height: 40px; width: auto; transition: height 300ms var(--ease-out); }
.site-header.is-scrolled .logo img { height: 34px; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; list-style: none; gap: 1.75rem; }
.site-nav ul a {
  position: relative; text-decoration: none; color: var(--white);
  font-size: 1rem; font-weight: 400; padding: 0.25rem 0;
  transition: color 200ms ease;
}
.site-nav ul a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.site-nav ul a.is-active { color: var(--orange-mid); }
.site-nav ul a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav ul a:hover::after { transform: scaleX(1); }
}
.site-nav .btn-primary { font-weight: 600; font-size: 0.9rem; border-radius: 15px; padding: 0.85rem 2rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); border-radius: 10px; cursor: pointer;
  position: relative; color: var(--white);
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 250ms var(--ease-out), opacity 200ms ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header .logo, .nav-toggle { position: relative; z-index: 2; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 2.5rem;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity 250ms ease, visibility 0s linear 250ms;
  }
  .site-nav ul { flex-direction: column; align-items: center; gap: 1.25rem; }
  .site-nav ul a { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 700; }
  .site-nav ul li {
    opacity: 0; transform: translateY(12px);
    transition: opacity 300ms ease, transform 400ms var(--ease-out);
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
  .nav-open .site-nav ul li { opacity: 1; transform: none; }
  .nav-open .site-nav ul li:nth-child(2) { transition-delay: 40ms; }
  .nav-open .site-nav ul li:nth-child(3) { transition-delay: 80ms; }
  .nav-open .site-nav ul li:nth-child(4) { transition-delay: 120ms; }
  .nav-open .site-nav ul li:nth-child(5) { transition-delay: 160ms; }
  .nav-open .site-nav ul li:nth-child(6) { transition-delay: 200ms; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 10vh; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 5rem) 5% 6rem; position: relative; overflow: hidden;
}
.hero > * { position: relative; }
.hero-grid-bg {
  position: absolute !important; inset: 0;
  background-image:
    linear-gradient(rgba(243,136,43,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,136,43,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { background-position: 60px 60px, 60px 60px; } }
.hero-glow, .hero-glow-2 { position: absolute !important; border-radius: 50%; pointer-events: none; }
.hero-glow {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(243,136,43,0.12) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: glow-float 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(243,136,43,0.08) 0%, transparent 70%);
  bottom: -100px; left: 10%;
  animation: glow-float 18s ease-in-out infinite alternate-reverse;
}
@keyframes glow-float { to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.hero-legal { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(243,136,43,0.1); border: 1px solid rgba(243,136,43,0.3);
  color: var(--orange-mid); font-size: 0.78rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase; width: fit-content;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-mid); animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.hero-reg { font-size: 0.78rem; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; font-weight: 400; }
.hero-reg span { color: rgba(255,255,255,0.55); }

.hero h1 {
  font-size: clamp(2.25rem, 7vw + 0.5rem, 5.5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em;
  max-width: 20ch; margin-bottom: 0.75rem;
  overflow-wrap: break-word; color: var(--white);
}
.hero h1 .accent { color: var(--orange-mid); }
.hero-kicker {
  display: block; font-family: 'DM Sans', sans-serif; font-size: clamp(0.8rem, 0.6vw + 0.6rem, 0.95rem);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5;
  color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; max-width: none;
}

.hero-legal-name {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.45); letter-spacing: 0.04em; margin-bottom: 1.5rem;
}
.hero-legal-name strong { color: rgba(255,255,255,0.7); }

.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.55);
  max-width: 52ch; margin-bottom: 3rem; font-weight: 300; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; z-index: 1; }

.hero-stats {
  display: flex; gap: 3rem; margin-top: 5rem; padding-top: 3rem;
  border-top: 1px solid var(--border); flex-wrap: wrap; list-style: none;
}
.stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--orange-mid); }
.stat-num .count { color: var(--white); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* Hero intro (on load) */
.hero-in { opacity: 0; transform: translateY(18px); filter: blur(4px); animation: hero-in 900ms var(--ease-out) forwards; }
.hero-in:nth-child(4) { animation-delay: 60ms; }
.hero-in:nth-child(5) { animation-delay: 140ms; }
.hero-in:nth-child(6) { animation-delay: 220ms; }
.hero-in:nth-child(7) { animation-delay: 300ms; }
.hero-in:nth-child(8) { animation-delay: 380ms; }
.hero-in:nth-child(9) { animation-delay: 460ms; }
@keyframes hero-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ==========================================================================
   CORE SERVICES STRIP
   ========================================================================== */
.core-strip { background: #0d1117; border-bottom: 1px solid rgba(243,136,43,0.12); }
.core-strip .custom-section { padding: 5rem 5%; }
.core-strip-header { text-align: center; margin-bottom: 3.5rem; }
.core-strip-header h2 { color: white; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: 0.01em; margin-bottom: 1rem; }
.core-strip-header p { color: rgba(255,255,255,0.45); max-width: 58ch; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.core-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }

.pillar-card {
  border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden;
  transition: transform 250ms var(--ease-out), border-color 200ms ease, box-shadow 250ms ease;
}
.pillar-card-glow {
  position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; pointer-events: none;
  transition: transform 400ms var(--ease-out);
}
.pillar-card .pillar-icon { font-size: 2rem; margin-bottom: 1.25rem; line-height: 1.2; }
.pillar-card .pillar-number { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.pillar-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--white); }
.pillar-card p { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 1.5rem; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.pillar-tag { font-size: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 4px; }

.pillar-card.pms { background: rgba(243,136,43,0.05); border: 1.5px solid rgba(243,136,43,0.25); }
.pillar-card.pms .pillar-card-glow { background: rgba(243,136,43,0.06); }
.pillar-card.pms .pillar-number { color: var(--orange-mid); }
.pillar-card.pms .pillar-tag { background: rgba(243,136,43,0.1); color: var(--orange-mid); border: 1px solid rgba(243,136,43,0.2); }

.pillar-card.crm { background: rgba(96,165,250,0.04); border: 1.5px solid rgba(96,165,250,0.2); }
.pillar-card.crm .pillar-card-glow { background: rgba(96,165,250,0.05); }
.pillar-card.crm .pillar-number { color: var(--blue); }
.pillar-card.crm .pillar-tag { background: rgba(96,165,250,0.1); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }

.pillar-card.einvoice { background: rgba(167,139,250,0.04); border: 1.5px solid rgba(167,139,250,0.2); }
.pillar-card.einvoice .pillar-card-glow { background: rgba(167,139,250,0.05); }
.pillar-card.einvoice .pillar-number { color: var(--violet); }
.pillar-card.einvoice .pillar-tag { background: rgba(167,139,250,0.1); color: var(--violet); border: 1px solid rgba(167,139,250,0.2); }

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6); }
  .pillar-card:hover .pillar-card-glow { transform: scale(1.6); }
  .pillar-card.pms:hover { border-color: rgba(243,136,43,0.45); }
  .pillar-card.crm:hover { border-color: rgba(96,165,250,0.4); }
  .pillar-card.einvoice:hover { border-color: rgba(167,139,250,0.4); }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--ink-soft); }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; align-items: end; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden;
}
.service-card { background: var(--ink-soft); padding: 2.25rem; transition: background-color 250ms ease; position: relative; }
.service-icon {
  width: 44px; height: 44px; background: rgba(243,136,43,0.1);
  border: 1px solid rgba(243,136,43,0.2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--orange-mid); font-size: 1.1rem;
  transition: transform 300ms var(--ease-out), background-color 250ms ease;
}
.service-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--white); }
.service-card p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.65; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { background: #1d2333; }
  .service-card:hover .service-icon { transform: translateY(-2px) rotate(-4deg); background: rgba(243,136,43,0.16); }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { background: var(--ink); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.project-card {
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
  overflow: hidden; background: var(--ink-soft);
  transition: border-color 250ms ease, transform 300ms var(--ease-out), box-shadow 300ms ease;
}
.project-thumb {
  width: 100%; height: 200px; background: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; position: relative; overflow: hidden;
}
.project-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(243,136,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,136,43,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.project-thumb-label {
  font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 0.12em;
  position: relative; z-index: 1;
}
.project-thumb.pms { border-top: 3px solid var(--orange); }
.project-thumb.crm { border-top: 3px solid var(--blue); }
.project-thumb.einvoice { border-top: 3px solid var(--violet); }
.project-thumb.pulse { border-top: 3px solid var(--green); }

.mock-ui {
  width: 80%; background: rgba(13,17,23,0.8); border-radius: 8px;
  padding: 10px; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.08);
  transition: transform 400ms var(--ease-out);
}
.mock-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.mock-dot { width: 6px; height: 6px; border-radius: 50%; }
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #ffbd2e; }
.mock-dot.g { background: #28c840; }
.mock-row { height: 6px; border-radius: 3px; margin-bottom: 5px; background: rgba(255,255,255,0.08); }
.mock-row.accent { background: rgba(243,136,43,0.3); width: 60%; }
.mock-row.short { width: 40%; }
.mock-row.med { width: 70%; }
.mock-row.a-violet { background: rgba(167,139,250,0.3); width: 65%; }
.mock-row.a-green { background: rgba(52,211,153,0.3); width: 50%; }
.mock-row.a-blue { background: rgba(96,165,250,0.3); width: 55%; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.mock-cell { height: 18px; border-radius: 3px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); }

.project-info { padding: 1.5rem; }
.project-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.project-tag.pms { background: rgba(243,136,43,0.12); color: var(--orange-mid); }
.project-tag.crm { background: rgba(96,165,250,0.12); color: var(--blue); }
.project-tag.einvoice { background: rgba(167,139,250,0.12); color: var(--violet); }
.project-tag.pulse { background: rgba(52,211,153,0.12); color: var(--green); }

.project-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); line-height: 1.3; }
.project-info p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 1rem; }
.project-meta { display: flex; gap: 1rem; flex-wrap: wrap; list-style: none; }
.project-meta li { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.project-meta li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.2); }

@media (hover: hover) and (pointer: fine) {
  .project-card:hover { border-color: rgba(243,136,43,0.3); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.7); }
  .project-card:hover .mock-ui { transform: translateY(-4px) scale(1.03); }
}

/* ==========================================================================
   RAVENPATCH
   ========================================================================== */
.pulse-section {
  background: linear-gradient(135deg, var(--ink) 0%, rgba(15,110,86,0.08) 100%);
  border-top: 1px solid rgba(243,136,43,0.15);
  border-bottom: 1px solid rgba(243,136,43,0.15);
}
.pulse-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.pulse-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(243,136,43,0.12); border: 1px solid rgba(243,136,43,0.25);
  color: var(--orange-mid); font-size: 0.75rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.1em; width: fit-content;
}
.pulse-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; list-style: none; }
.pulse-feature { display: flex; gap: 1rem; align-items: flex-start; }
.pulse-feature-icon {
  width: 32px; height: 32px; flex-shrink: 0; background: rgba(243,136,43,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--orange-mid);
  font-size: 0.9rem; margin-top: 2px;
}
.pulse-feature h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--white); }
.pulse-feature p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

.terminal {
  background: #0b0e14; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  overflow: hidden; font-family: 'JetBrains Mono', 'Courier New', monospace;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(243,136,43,0.04);
}
.terminal-bar {
  background: rgba(255,255,255,0.04); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tb { width: 10px; height: 10px; border-radius: 50%; }
.tb-r { background: #ff5f57; }
.tb-y { background: #ffbd2e; }
.tb-g { background: #28c840; }
.terminal-title { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-left: auto; margin-right: auto; }
.terminal-body { padding: 1.5rem; font-size: 0.82rem; line-height: 1.9; min-height: 22.5rem; }
.t-prompt { color: var(--orange-mid); }
.t-cmd { color: #e2e8f0; }
.t-dim { color: rgba(255,255,255,0.25); font-size: 0.8rem; }
.t-success { color: var(--orange-mid); }
.t-info { color: var(--blue); }
.t-warn { color: var(--amber); }
.t-white { color: #e2e8f0; }
.t-orange { color: var(--orange-mid); }
.t-green { color: #28c840; }
.terminal-line { display: flex; gap: 8px; }
.t-out { margin-left: 16px; }
.t-gap { height: 1.9em; }
.cursor {
  display: inline-block; width: 8px; height: 14px; background: var(--orange-mid);
  vertical-align: middle; animation: blink 1.1s steps(1) infinite; margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Typing effect: lines are revealed by JS when the terminal scrolls into view */
.terminal.is-typing .t-step { opacity: 0; }
.terminal .t-step { transition: opacity 200ms ease; }
.terminal .t-step.is-shown { opacity: 1; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { background: var(--ink-soft); }
.team-header { margin-bottom: 3.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; }
.team-card {
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
  padding: 1.75rem; background: var(--card-bg);
  transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--ease-out);
  display: flex; flex-direction: column;
}
.team-card.lead { border-color: rgba(243,136,43,0.2); background: rgba(243,136,43,0.04); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(243,136,43,0.2), rgba(243,136,43,0.05));
  border: 2px solid rgba(243,136,43,0.2); margin-bottom: 1rem; overflow: hidden; flex-shrink: 0;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-role-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; width: fit-content;
}
.team-role-badge.lead-badge { background: rgba(243,136,43,0.15); color: var(--orange-mid); }
.team-role-badge.dev-badge { background: rgba(96,165,250,0.12); color: var(--blue); }
.team-role-badge.design-badge { background: rgba(167,139,250,0.12); color: var(--violet); }
.team-role-badge.ops-badge { background: rgba(52,211,153,0.12); color: var(--green); }
.team-role-badge.support-badge { background: rgba(251,191,36,0.12); color: var(--amber); }
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--white); line-height: 1.4; }
.team-card .team-title { font-size: 0.82rem; color: var(--orange-mid); font-weight: 500; margin-bottom: 0.6rem; }
.team-card .team-exp { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.team-card p { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.65; }
.team-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; list-style: none; }
.skill-tag {
  font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 4px;
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.07);
}
.team-director-row { margin-bottom: 1.25rem; }
.team-director-row .team-card { max-width: 340px; margin: 0 auto; border-color: rgba(243,136,43,0.3); background: rgba(243,136,43,0.05); }
@media (hover: hover) and (pointer: fine) {
  .team-card:hover { border-color: rgba(243,136,43,0.25); background: rgba(243,136,43,0.03); transform: translateY(-3px); }
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; list-style: none; }
.why-card {
  border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1.75rem; background: var(--card-bg);
  transition: border-color 250ms ease, background-color 250ms ease;
}
.why-num {
  font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800;
  color: rgba(243,136,43,0.2); line-height: 1; margin-bottom: 0.75rem; transition: color 250ms ease;
}
.why-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--white); line-height: 1.4; }
.why-card p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.65; }
@media (hover: hover) and (pointer: fine) {
  .why-card:hover { border-color: rgba(243,136,43,0.25); background: rgba(243,136,43,0.04); }
  .why-card:hover .why-num { color: rgba(243,136,43,0.45); }
}

/* ==========================================================================
   COMPLIANCE
   ========================================================================== */
.compliance { background: var(--ink-soft); }
.compliance-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.compliance-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; list-style: none; }
.cpill {
  display: flex; align-items: center; gap: 8px; background: rgba(243,136,43,0.08);
  border: 1px solid rgba(243,136,43,0.2); color: rgba(255,255,255,0.7);
  font-size: 0.82rem; padding: 0.4rem 0.9rem; border-radius: 100px;
}
.cpill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-mid); flex-shrink: 0; }
.compliance-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 2rem; }
.compliance-card-title {
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.flow { list-style: none; }
.flow-step { display: flex; align-items: center; gap: 12px; }
.flow-step-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.flow-step-icon.orange { background: rgba(243,136,43,0.15); color: var(--orange-mid); }
.flow-step-icon.blue { background: rgba(96,165,250,0.15); color: var(--blue); }
.flow-step-icon.amber { background: rgba(251,191,36,0.15); color: var(--amber); }
.flow-step-label { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.flow-step-label strong { color: var(--white); font-weight: 500; }
.flow-arrow { margin: 0.75rem 0 0.75rem 12px; color: rgba(255,255,255,0.15); font-size: 0.9rem; line-height: 1; }

/* Flow steps light up one after another */
.flow.reveal-flow .flow-item { opacity: 0.25; transform: translateX(-6px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
.flow.reveal-flow.is-visible .flow-item { opacity: 1; transform: none; }
.flow.reveal-flow.is-visible .flow-item:nth-child(2) { transition-delay: 120ms; }
.flow.reveal-flow.is-visible .flow-item:nth-child(3) { transition-delay: 240ms; }
.flow.reveal-flow.is-visible .flow-item:nth-child(4) { transition-delay: 360ms; }
.flow.reveal-flow.is-visible .flow-item:nth-child(5) { transition-delay: 480ms; }
.flow.reveal-flow.is-visible .flow-item:nth-child(6) { transition-delay: 600ms; }
.flow.reveal-flow.is-visible .flow-item:nth-child(7) { transition-delay: 720ms; }

/* ==========================================================================
   WHY MALAYSIA & SINGAPORE (near-shore)
   ========================================================================== */
.nearshore { background: var(--ink); }
.nearshore-head .section-title { max-width: 24ch; }
.nearshore-head .section-body { max-width: 68ch; }
.nearshore-head .section-body strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.nearshore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 3rem; list-style: none; }
.nearshore-card {
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 1.75rem; background: var(--card-bg);
  transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--ease-out);
}
.nearshore-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: rgba(243,136,43,0.1); border: 1px solid rgba(243,136,43,0.2);
}
.nearshore-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--white); line-height: 1.4; }
.nearshore-card p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
@media (hover: hover) and (pointer: fine) {
  .nearshore-card:hover { border-color: rgba(243,136,43,0.25); background: rgba(243,136,43,0.03); transform: translateY(-3px); }
}

.compare { margin-top: 3rem; }
.compare-scroll {
  overflow-x: auto; border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
  background: rgba(13,17,23,0.5); -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.875rem; }
.compare-table caption {
  text-align: left; padding: 1.25rem 1.5rem 0.25rem; font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
}
.compare-table th, .compare-table td { padding: 0.95rem 1.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.compare-table tbody th { font-weight: 500; color: rgba(255,255,255,0.8); }
.compare-table td { color: rgba(255,255,255,0.5); }
.compare-table .is-us { color: var(--orange-mid); background: rgba(243,136,43,0.05); }
.compare-table thead .is-us { color: var(--orange-mid); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr { transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
}

/* ==========================================================================
   FAQ (GEO — FAQPage schema mirrors this content)
   ========================================================================== */
.faq { background: var(--ink-soft); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { list-style: none; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--white);
  line-height: 1.4; transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; }
.faq-icon {
  position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid rgba(243,136,43,0.3); background: rgba(243,136,43,0.08);
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px;
  background: var(--orange-mid); border-radius: 2px; transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease-out); }
.faq-item[open] .faq-icon { background: rgba(243,136,43,0.18); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { overflow: hidden; }
.faq-answer-inner { padding: 0 3rem 1.5rem 0; color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.75; font-weight: 300; }
.faq-answer-inner strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.faq-answer-inner a { color: var(--orange-mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247,168,92,0.5); }
.faq-answer-inner ol { margin: 0.75rem 0 0 1.25rem; display: grid; gap: 0.35rem; }
.faq-answer-inner li::marker { color: var(--orange-mid); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--orange-mid); }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section { text-align: center; padding: 8rem 5%; position: relative; overflow: hidden; }
.cta-section > * { position: relative; }
.cta-glow {
  position: absolute !important; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(243,136,43,0.1) 0%, transparent 70%);
  animation: cta-breathe 8s ease-in-out infinite alternate;
}
@keyframes cta-breathe { from { opacity: 0.7; transform: scale(0.95); } to { opacity: 1; transform: scale(1.08); } }
.cta-section .section-label { display: flex; justify-content: center; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.02em; color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.5); max-width: 50ch; margin: 0 auto 2.5rem; font-weight: 300; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 1.5rem !important; margin-bottom: 0 !important; font-size: 0.85rem; color: rgba(255,255,255,0.35) !important; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 3rem 5% 2.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin-bottom: 1.75rem; }
.footer-nav a { color: var(--white); font-size: 1.05rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.35); transition: color 200ms ease, text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--orange-mid); text-decoration-color: var(--orange-mid); }
}
.footer-legal { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.8; }
.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.footer-social a {
  height: 42px; min-width: 42px; padding: 0 0.7rem; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); text-decoration: none;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social .social-xhs { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.footer-social a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .footer-social a:hover { color: var(--white); background: rgba(243,136,43,0.14); border-color: rgba(243,136,43,0.35); transform: translateY(-2px); }
}
.btn-whatsapp svg { flex-shrink: 0; color: #25d366; }
.footer-legal address { font-style: normal; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.js .reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 400ms; }
/* After reveal, give hover transitions back their snappy timing */
.js .reveal-stagger.is-done > * { transition-delay: 0ms !important; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange-mid));
  transform-origin: left; transform: scaleX(0); pointer-events: none;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none;
  background: rgba(26,32,48,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6), inset 0 0 0 1px var(--border);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity 250ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms, background-color 200ms ease;
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 250ms ease, transform 300ms var(--ease-out), background-color 200ms ease;
}
.back-to-top:active { transform: scale(0.94); }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 2.5; }
.btt-progress {
  fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.btt-arrow { width: 20px; height: 20px; position: relative; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover { background: var(--orange); }
  .back-to-top:hover .btt-arrow { transform: translateY(-2px); }
  .back-to-top:hover .btt-progress { stroke: var(--white); }
}
.nav-open .back-to-top { opacity: 0; visibility: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .pulse-inner, .compliance-inner, .faq-inner { grid-template-columns: 1fr; gap: 3rem; }
  .faq-intro { position: static; }
}
@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .custom-section { padding: 5rem 6%; }
  .services-header { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
  .hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; }
  .hero-stats { gap: 2rem 2.5rem; margin-top: 3.5rem; padding-top: 2rem; }
  .hero-stats li { flex: 1 1 calc(50% - 1.25rem); }
  .site-header .logo img { height: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 2rem; }
  .terminal-body { font-size: 0.74rem; padding: 1.15rem; min-height: 0; }
  .faq-answer-inner { padding-right: 0; }
  .cta-section { padding: 6rem 6%; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .hero-in { opacity: 1; transform: none; filter: none; }
  .js .reveal, .js .reveal-stagger > *, .flow.reveal-flow .flow-item { opacity: 1; transform: none; }
  .terminal.is-typing .t-step { opacity: 1; }
}
