/* =============================================================================
   Vinrul Tech — company profile
   Struktur berkas:
     01. Token & dasar
     02. Komponen umum (tombol, chip, kartu)
     03. Header & navigasi
     04. Hero
     05. Klien
     06. Tentang
     07. Layanan
     08. Portofolio & dialog detail
     09. Legalitas
     10. Kontak
     11. Footer & tombol ke atas
     12. Animasi & responsif
   ============================================================================= */

/* ============================ 01. TOKEN & DASAR ============================ */
:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: #0e1526;
  --surface-2: #131d31;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef8;
  --text-soft: #a9b6cd;
  --muted: #7d8ba4;
  --accent: #4d7cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(77, 124, 255, 0.14);
  --accent-line: rgba(77, 124, 255, 0.35);
  --shadow-lg: 0 30px 70px -34px rgba(2, 8, 22, 0.92);
  --shadow-sm: 0 12px 30px -18px rgba(2, 8, 22, 0.9);
  --header-bg: rgba(7, 11, 20, 0.72);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ok: #34d399;
}

[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --border: rgba(12, 21, 38, 0.1);
  --border-strong: rgba(12, 21, 38, 0.18);
  --text: #0c1526;
  --text-soft: #3f4d68;
  --muted: #67748d;
  --accent: #2b57d6;
  --accent-2: #0891b2;
  --accent-soft: rgba(43, 87, 214, 0.1);
  --accent-line: rgba(43, 87, 214, 0.3);
  --shadow-lg: 0 26px 60px -32px rgba(15, 32, 66, 0.35);
  --shadow-sm: 0 10px 26px -18px rgba(15, 32, 66, 0.3);
  --header-bg: rgba(245, 248, 253, 0.8);
  --ok: #059669;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.9vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

p { margin: 0; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head .lead { margin-top: 16px; }

.section-head-wide { max-width: none; }
.section-head-wide > div { max-width: 760px; }

.lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.075rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.gradient-text {
  background: linear-gradient(96deg, var(--accent) 5%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--mono); letter-spacing: 0.02em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: none; }

/* Latar belakang dekoratif */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.blob-1 {
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.5), transparent 68%);
}

.blob-2 {
  top: 40%;
  left: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 68%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ============================ 02. KOMPONEN UMUM ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn svg { flex: none; }

.btn-primary {
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 34px -18px var(--accent);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px var(--accent); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.tick-list { display: grid; gap: 9px; margin-top: 16px; }

.tick-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 0.925rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.56em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-list li {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.notice,
.portfolio-note {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-extra {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================ 03. HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark { display: inline-flex; }

.brand-mark img { display: block; }

.brand-text { display: grid; }

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav-list { display: flex; align-items: center; gap: 6px; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-link.is-active { color: var(--text); }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-1px); }

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ 04. HERO ============================ */
.hero { padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 20px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero-visual {
  position: relative;
  padding: 6px 6px 0;
}

.browser-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.browser-dots { display: inline-flex; gap: 6px; }

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-url {
  flex: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame img { width: 100%; height: auto; }

.float-card {
  position: absolute;
  z-index: 1;
  right: -16px;
  bottom: -34px;
  width: 46%;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-2deg);
}

.float-card img { width: 100%; height: auto; }

.float-card figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip-1 { top: 26px; left: -22px; }
.float-chip-2 { bottom: 120px; left: -30px; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2.2s infinite;
}

.chip-badge {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(56px, 8vw, 96px) 0 0;
}

.stat-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card dt {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.stat-card dd {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================ 05. KLIEN ============================ */
.clients { padding: 8px 0 clamp(40px, 6vw, 64px); }

.clients-label {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.clients-list li {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface), transparent);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.clients-list li:hover {
  border-color: var(--accent-line);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================ 06. TENTANG ============================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.about-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.about-card h3 { margin: 16px 0 10px; }

.about-card p { color: var(--text-soft); font-size: 0.94rem; }

.capability-block {
  margin-top: clamp(34px, 5vw, 52px);
  padding: clamp(24px, 3.5vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--accent-soft), transparent 62%), var(--surface);
}

.capability-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ============================ 07. LAYANAN ============================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.service-card:hover::before { opacity: 1; }

.service-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}

.service-card h3 { margin: 14px 0 10px; }

.service-card > p { color: var(--text-soft); font-size: 0.93rem; }

/* ============================ 08. PORTOFOLIO ============================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover { color: var(--text); border-color: var(--accent-line); }

.filter-btn.is-active {
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.is-hidden { display: none; }

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img { transform: scale(1.04); }

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(4, 9, 20, 0.78));
  opacity: 0.85;
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent-2));
}

.project-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-cta,
.project-card:focus-visible .project-cta { opacity: 1; transform: none; }

.project-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
  flex: 1;
}

.project-cat {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.project-body h3 { font-size: 1.12rem; }

.project-summary { color: var(--text-soft); font-size: 0.92rem; }

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-highlights li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.83rem;
}

.project-client { font-weight: 600; color: var(--text-soft); }

.project-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-weight: 600;
}

.project-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.project-placeholder {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

/* --- Dialog detail proyek --- */
.project-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.project-dialog::backdrop {
  background: rgba(4, 8, 18, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(8, 14, 26, 0.66);
  backdrop-filter: blur(6px);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dialog-close:hover { background: rgba(8, 14, 26, 0.9); transform: rotate(90deg); }

.dialog-media {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.dialog-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.dialog-caption {
  padding: 12px 20px 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.dialog-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 20px 18px;
}

.dialog-thumb {
  width: 128px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.dialog-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.dialog-thumb:hover { opacity: 0.85; }

.dialog-thumb.is-active { opacity: 1; border-color: var(--accent-2); }

.dialog-body { padding: clamp(22px, 3.4vw, 34px); }

.dialog-body h2 { margin: 6px 0 10px; font-size: clamp(1.4rem, 2.6vw, 2rem); }

.dialog-subtitle { color: var(--accent-2); font-weight: 600; font-size: 0.95rem; }

.dialog-desc { margin-top: 16px; color: var(--text-soft); font-size: 0.95rem; }

.dialog-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.dialog-cols h3 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.dialog-meta { display: grid; gap: 18px; align-content: start; }

.dialog-meta dl { display: grid; gap: 10px; margin: 0; }

.dialog-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-meta dd { margin: 2px 0 0; font-size: 0.92rem; font-weight: 600; }

.dialog-links { display: grid; gap: 10px; }

.dialog-links .btn { width: 100%; }

/* ============================ 09. LEGALITAS ============================ */
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.86rem;
}

.legal-table td { color: var(--text); font-weight: 600; }

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: none; }

.legal-table tbody tr:hover { background: var(--surface-2); }

.legal-aside { display: grid; gap: 20px; }

.legal-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.legal-card h3 { margin: 14px 0 8px; font-size: 1.05rem; }

.legal-card p { margin-bottom: 18px; color: var(--text-soft); font-size: 0.92rem; }

.legal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================ 10. KONTAK ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.contact-info { display: grid; gap: 14px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

a.contact-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.contact-body { display: grid; gap: 2px; min-width: 0; }

.contact-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-body strong { font-size: 0.96rem; overflow-wrap: anywhere; }

.contact-form {
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }

.field label {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field.has-error input,
.field.has-error textarea { border-color: #f87171; }

.form-status {
  min-height: 22px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ok);
}

.form-status.is-error { color: #f87171; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.form-hint { margin-top: 14px; color: var(--muted); font-size: 0.82rem; }

/* ============================ 11. FOOTER ============================ */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--bg-2));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 36px;
}

.footer-note { margin-top: 16px; max-width: 40ch; color: var(--muted); font-size: 0.88rem; }

.footer-links h3 {
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links ul { display: grid; gap: 10px; }

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top:hover { border-color: var(--accent-line); color: var(--accent-2); }

/* ============================ 12. ANIMASI & RESPONSIF ============================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 22px;
    left: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }

  .nav-link { padding: 12px 14px; }

  .nav-link.is-active::after { display: none; }

  .nav-link.is-active { background: var(--accent-soft); }

  .nav-cta { width: 100%; }

  .float-chip-1 { left: 0; }
  .float-chip-2 { left: 0; bottom: 96px; }
  .float-card { right: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .dialog-cols { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .float-card { display: none; }
  .float-chip { font-size: 0.74rem; }
  .hero-points { gap: 8px 16px; font-size: 0.82rem; }
  .legal-table th { width: 45%; }
  .legal-table th,
  .legal-table td { padding: 13px 16px; font-size: 0.88rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dialog-thumbs { overflow-x: auto; }
  .dialog-thumb { width: 104px; flex: none; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .clients-list li { padding: 10px 16px; font-size: 0.84rem; }
  .btn { width: 100%; }
  .form-actions .btn,
  .hero-cta .btn { width: 100%; }
  .legal-card .btn-sm { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ CETAK ============================ */
@media print {
  .bg-decor, .site-header, .to-top, .filter-bar, .hero-visual,
  .contact-form, .form-hint, .skip-link, .project-cta { display: none !important; }

  body { background: #fff; color: #000; }

  .section { padding: 20px 0; }

  .project-grid { grid-template-columns: repeat(2, 1fr); }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #444;
  }
}
