/* Secuvity Indonesia Technology. Static site styles. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Palette from BRAND.md: graphite #101B20, porcelain #F4F8F6, mint #54DFCE, mineral teal #086B67 */
  --bg: #0b1418;
  --bg-2: #101b20;
  --surface: #121f25;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f4f8f6;
  --muted: #9db0b0;
  --accent: #54dfce;
  --accent-rgb: 84 223 206;
  --accent-ink: #101b20;
  --radius: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgb(var(--accent-rgb) / 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.icon { width: 1em; height: 1em; flex: none; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgb(11 20 24 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand-logo { width: 160px; height: auto; }
@media (max-width: 767px) { .brand-logo { width: 132px; } }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:not(.btn) { transition: color 180ms ease; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 550; font-size: 15px;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn .icon { font-size: 18px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: translate3d(var(--tx), var(--ty), 0) scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgb(255 255 255 / 0.02); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #7ae8da; }
  .btn-ghost:hover { border-color: rgb(var(--accent-rgb) / 0.55); background: rgb(var(--accent-rgb) / 0.06); }
  .btn:hover .icon { transform: translateX(3px); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none;
  object-fit: cover; object-position: 72% 58%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02);
  transition: transform 900ms var(--ease-out);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgb(11 20 24 / 0.86) 30%, rgb(11 20 24 / 0.2) 62%, transparent 80%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
#sparks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { padding-top: 96px; padding-bottom: 72px; width: 100%; }
.hero-copy { max-width: 760px; }
.hero h1 {
  font-family: var(--display); font-size: clamp(42px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.hero .ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* word reveal */
.w { display: inline-block; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
.js .hero h1 .w > span { display: inline-block; opacity: 0; transform: translateY(0.55em); }
.js.ready .hero h1 .w > span {
  animation: word-in 900ms var(--ease-out) forwards;
  animation-delay: calc(120ms + var(--i) * 70ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }
.js .hero .fade-up { opacity: 0; transform: translateY(14px); }
.js.ready .hero .fade-up {
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 500ms);
  opacity: 1; transform: none;
}
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(88px, 12vw, 152px) 0; }
.h2 {
  font-family: var(--display); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600;
  max-width: 18ch; text-wrap: balance;
}
.sub { margin-top: 18px; color: var(--muted); max-width: 56ch; font-size: 18px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}

/* scroll reveal */
@media (prefers-reduced-motion: no-preference) {
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
}

/* beam between sections */
.beam { position: relative; height: 120px; width: 1px; margin: 0 auto; background: linear-gradient(to bottom, transparent, var(--line-2), transparent); overflow: hidden; }
.beam::after {
  content: ""; position: absolute; left: -1px; width: 3px; height: 40px; top: 0; border-radius: 3px;
  background: linear-gradient(to bottom, transparent, rgb(var(--accent-rgb)), transparent);
  animation: beam 2.8s linear infinite;
}
@keyframes beam { from { transform: translateY(-40px); } to { transform: translateY(120px); } }

/* ---------- Services bento ---------- */
.bento { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  padding: 104px 32px 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms var(--ease-out), border-color 300ms ease;
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(var(--accent-rgb) / 0.14), transparent 60%);
}
.card.hot { transition: transform 120ms linear, border-color 300ms ease; border-color: rgb(var(--accent-rgb) / 0.35); }
.card.hot::before { opacity: 1; }
.card h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.2; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 42ch; }
.card .ico {
  position: absolute; top: 28px; left: 32px; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 26px; color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.08); border: 1px solid rgb(var(--accent-rgb) / 0.2);
}
.card-mobile { grid-column: span 4; grid-row: span 2; min-height: 520px; background: linear-gradient(160deg, #123036 0%, var(--surface) 55%); }
.card-web { grid-column: span 2; }
.card-cloud { grid-column: span 2; }
.card-sec { grid-column: span 6; min-height: 240px; background: linear-gradient(100deg, var(--surface) 40%, #0f2a2c 100%); }
.card-sec .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

/* orbit visual in mobile card */
.orbit { position: absolute; right: -80px; top: -80px; width: 460px; height: 460px; pointer-events: none; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.07); }
.orbit .ring:nth-child(2) { inset: 70px; border-color: rgb(var(--accent-rgb) / 0.16); }
.orbit .ring:nth-child(3) { inset: 140px; }
.orbit .sat { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.orbit .sat:nth-of-type(5) { inset: 70px; animation-duration: 11s; animation-direction: reverse; }
.orbit .sat::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.15);
}
.orbit .core {
  position: absolute; inset: 190px; border-radius: 22px; display: grid; place-items: center; font-size: 40px; color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.08); border: 1px solid rgb(var(--accent-rgb) / 0.3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* platform chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }

/* scanning lines in security card */
.scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scan::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / 0.08), transparent);
  animation: sweep 6s var(--ease-in-out) infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

/* ---------- Approach (timeline) ---------- */
.approach { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.approach .sticky { position: sticky; top: 120px; }
.steps { position: relative; padding-left: 40px; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.steps .fill {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--accent);
  transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 700ms var(--ease-out);
}
.step { position: relative; padding: 4px 0 48px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -40px; top: 10px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color 400ms ease, background-color 400ms ease, box-shadow 400ms ease;
}
.step.in::before { border-color: var(--accent); background: rgb(var(--accent-rgb) / 0.25); box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / 0.08); }
.step h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--muted); max-width: 52ch; }

/* ---------- Principles ---------- */
.principles { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 32px 32px 32px 0; }
.principle:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.principle:nth-child(n+3) { border-top: 1px solid var(--line); }
.principle .icon { font-size: 28px; color: var(--accent); margin-top: 2px; }
.principle h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.principle p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* ---------- Company ---------- */
.company {
  position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, rgb(var(--accent-rgb) / 0.08), transparent 60%), var(--bg-2);
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: clamp(28px, 5vw, 64px);
}
.facts { margin: 0; display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact:first-child { padding-top: 0; }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact dt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.fact dd { margin: 0; font-size: 17px; }
.fact a { color: var(--accent); }
.fact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact .h2 { max-width: 22ch; }
#net { position: absolute; z-index: -1; top: 0; right: 0; width: 55%; height: 100%; }
.contact .big {
  font-family: var(--display); display: inline-flex; align-items: center; gap: 16px; margin-top: 28px;
  font-size: clamp(28px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
  background: linear-gradient(90deg, var(--text), var(--text)) no-repeat 0 100% / 0 2px;
  transition: background-size 500ms var(--ease-out), color 200ms ease; padding-bottom: 6px;
  overflow-wrap: anywhere;
}
.contact .big .icon { font-size: 0.7em; color: var(--accent); transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .contact .big:hover { background-size: 100% 2px; }
  .contact .big:hover .icon { transform: translate(4px, -4px); }
}
.contact .addr { margin-top: 36px; display: flex; gap: 12px; color: var(--muted); max-width: 52ch; }
.contact .addr .icon { font-size: 22px; color: var(--accent); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; gap: 24px; }
.foot a:hover { color: var(--text); }

/* ---------- Legal page ---------- */
.legal { padding: 140px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; }
.legal .meta { margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.legal h2 { font-family: var(--display); margin-top: 48px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.legal p, .legal li { color: #c3cad5; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--accent); }

/* ---------- Scroll-driven parallax (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax { animation: plx linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes plx { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
    .hero-copy { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes hero-out { to { transform: translateY(-80px); opacity: 0.15; } }
    .parallax-hero { animation: hero-img linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-img { to { transform: translateY(16%); } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-mobile { grid-column: span 6; min-height: 440px; }
  .card-web, .card-cloud { grid-column: span 3; }
  .approach { grid-template-columns: 1fr; gap: 40px; }
  .approach .sticky { position: static; }
  .company { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-media { top: 42%; }
  .hero-media img { object-position: 70% 50%; }
  .hero-shade { background: linear-gradient(to bottom, var(--bg) 40%, rgb(11 20 24 / 0.55) 58%, rgb(11 20 24 / 0.1) 78%, var(--bg) 100%); }
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: 120px; }
  .bento { grid-template-columns: 1fr; }
  .card-mobile, .card-web, .card-cloud, .card-sec { grid-column: auto; grid-row: auto; }
  .card { padding: 96px 24px 24px; min-height: 240px; }
  .card .ico { left: 24px; top: 24px; }
  .card-mobile { min-height: 420px; }
  .orbit { width: 340px; height: 340px; right: -110px; top: -100px; }
  .orbit .ring:nth-child(2), .orbit .sat:nth-of-type(5) { inset: 52px; }
  .orbit .ring:nth-child(3) { inset: 104px; }
  .orbit .core { inset: 140px; font-size: 30px; border-radius: 16px; }
  .card-sec .row { flex-direction: column; align-items: flex-start; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 24px 0; border-left: 0; }
  .principle:nth-child(n+2) { border-top: 1px solid var(--line); }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  #net { width: 100%; opacity: 0.45; }
  .beam { height: 80px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion: calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam::after, .orbit .sat, .scan::before { animation: none; }
  .beam::after { display: none; }
  .card { transform: none !important; }
  .steps .fill { transform: none; }
}
