/* ==========================================================
   Richazeta Digital Solution — main website
   Warna diambil dari logo: biru langit #38B6FF + charcoal #3A3A3C
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --bg-alt: #eaeef3;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --border: #dbe1e9;
  --border-strong: #c5cdd8;
  --text: #15181d;
  --text-2: #475161;
  --muted: #5d6776;

  --brand: #38b6ff;
  --brand-ink: #0a6db3;
  --brand-soft: rgba(56, 182, 255, 0.12);
  --brand-line: rgba(56, 182, 255, 0.45);
  --on-brand: #04121c;
  --charcoal: #3a3a3c;
  --ok: #15803d;
  --warn: #b45309;
  --danger: #c2410c;

  --logo-a: #38b6ff;
  --logo-b: #3a3a3c;
  --logo-r: #3a3a3c;

  --app-wa: #15803d;
  --app-wed: #e11d48;
  --app-fin: #b45309;

  --grid-line: rgba(21, 24, 29, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.08);
  --header-bg: rgba(244, 246, 249, 0.82);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1013;
    --bg-alt: #121519;
    --surface: #171a20;
    --surface-2: #1c2027;
    --border: #262b34;
    --border-strong: #343a45;
    --text: #edf0f4;
    --text-2: #b3bcc8;
    --muted: #919baa;
    --brand-ink: #5cc4ff;
    --brand-soft: rgba(56, 182, 255, 0.12);
    --ok: #4ade80;
    --warn: #fbbf24;
    --danger: #fb923c;
    --logo-b: #d5dae1;
    --logo-r: #f2f4f7;
    --app-wa: #4ade80;
    --app-wed: #fb7185;
    --app-fin: #fbbf24;
    --grid-line: rgba(255, 255, 255, 0.045);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(14, 16, 19, 0.8);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1013;
  --bg-alt: #121519;
  --surface: #171a20;
  --surface-2: #1c2027;
  --border: #262b34;
  --border-strong: #343a45;
  --text: #edf0f4;
  --text-2: #b3bcc8;
  --muted: #919baa;
  --brand-ink: #5cc4ff;
  --brand-soft: rgba(56, 182, 255, 0.12);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #fb923c;
  --logo-b: #d5dae1;
  --logo-r: #f2f4f7;
  --app-wa: #4ade80;
  --app-wed: #fb7185;
  --app-fin: #fbbf24;
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(14, 16, 19, 0.8);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono { font-family: var(--font-mono); font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo (dipakai via <use href="#logo-mark">) */
.lm-a { fill: var(--logo-a); }
.lm-b { fill: var(--logo-b); }
.lm-r { fill: var(--logo-r); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 20px -8px rgba(56, 182, 255, 0.7);
}
.btn-primary:hover { background: #5cc4ff; }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 0.925rem;
}
.link-btn .icon { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.link-btn:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--brand-ink);
}
.brand-sub {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-list a:hover { color: var(--text); background: var(--brand-soft); }
.nav-list a.is-active { color: var(--brand-ink); }

.header-actions { display: flex; gap: 8px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; }
  .nav-list a { width: 100%; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -140px;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.hero h1 .hl { color: var(--brand-ink); }

.lead {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-2);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px 36px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 0.82rem; color: var(--muted); }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
}
@media (max-width: 420px) {
  .hero-stats { gap: 12px 22px; }
  .hero-stats dd { font-size: 1.3rem; }
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.hero-gear {
  position: absolute;
  width: min(420px, 92%);
  aspect-ratio: 1;
  opacity: 0.16;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ticket {
  position: relative;
  width: min(360px, 100%);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-strong);
  font-size: 0.8rem;
  color: var(--text-2);
}
.ticket-status {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.ticket-steps { display: grid; gap: 12px; padding: 16px 0; }
.ticket-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.ticket-steps .icon,
.ticket-steps .spinner,
.ticket-steps .bullet { width: 20px; height: 20px; flex: none; }
.ticket-steps .done { color: var(--text-2); }
.ticket-steps .done .icon { color: var(--ok); }
.ticket-steps .active { color: var(--text); font-weight: 600; }
.spinner {
  border-radius: 50%;
  border: 2px solid var(--brand-soft);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
.bullet { position: relative; }
.bullet::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.ticket-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.ticket-bar span {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #7fd0ff);
  animation: fill 3.2s var(--ease) infinite alternate;
}
@keyframes fill { from { width: 52%; } to { width: 72%; } }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip .icon { width: 16px; height: 16px; color: var(--brand-ink); }
.chip-a { top: 8%; left: 0; }
.chip-b { top: 2%; right: 4%; animation-delay: -2s; }
.chip-c { bottom: 6%; right: 0; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  .chip-a { left: -4px; top: 0; }
  .chip-b { display: none; }
  .chip-c { right: -4px; bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 24px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 980px) { .section { padding: 104px 0; } }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: none;
}
.section-head-row > div { max-width: 640px; }

.kicker {
  margin-bottom: 12px !important;
  font-size: 0.82rem;
  color: var(--brand-ink);
  letter-spacing: 0.02em;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, 1fr); } }

.service {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.service:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.service-icon .icon { width: 22px; height: 22px; }
.service h3 { margin-top: 18px; font-size: 1.05rem; font-weight: 600; }
.service p { margin-top: 8px; font-size: 0.925rem; color: var(--text-2); }

.service-featured {
  display: flex;
  flex-direction: column;
  border-color: var(--brand-line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(56, 182, 255, 0.16), transparent 60%),
    var(--surface);
}
@media (min-width: 600px) { .service-featured { grid-column: span 2; } }
.service-featured-head { display: flex; justify-content: space-between; align-items: flex-start; }
.service-featured h3 { font-size: 1.25rem; }
.service-featured p { max-width: 52ch; }
.badge-new {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.75rem;
  font-weight: 700;
}
.service-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.service-examples li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-2);
}
.service-featured .link-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Web apps ---------- */
#aplikasi { padding-bottom: 40px; }

.apps { display: grid; gap: 16px; }
@media (min-width: 680px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .apps { grid-template-columns: repeat(3, 1fr); } }

.app {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.app:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-icon {
  --c: var(--brand-ink);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.app-icon .icon { width: 24px; height: 24px; }
.app-icon-wa { --c: var(--app-wa); }
.app-icon-wed { --c: var(--app-wed); }
.app-icon-fin { --c: var(--app-fin); }
.status {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.app h3 { margin-top: 18px; font-size: 1.15rem; font-weight: 600; }
.app > p { margin-top: 8px; font-size: 0.925rem; color: var(--text-2); }
.app-features { display: grid; gap: 6px; margin: 16px 0 8px; }
.app-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(-45deg);
}
.app .link-btn { margin-top: auto; align-self: flex-start; }

.app-idea {
  justify-content: center;
  align-items: flex-start;
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}
.app-idea:hover { transform: none; box-shadow: none; }
.app-idea .app-icon { --c: var(--text-2); }
.app-idea > p { max-width: 46ch; }
.app-idea .btn { margin-top: 18px; }
@media (min-width: 680px) { .app-idea { grid-column: span 2; } }
@media (min-width: 1040px) { .app-idea { grid-column: span 2; } }

.section-store { padding: 0 0 80px; }
@media (min-width: 980px) { .section-store { padding-bottom: 104px; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.18s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.projects { display: grid; gap: 20px; }
@media (min-width: 680px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.project:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.project[hidden] { display: none; }

.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 14px; }
.project-cat { font-size: 0.75rem; color: var(--brand-ink); }
.project h3 { margin-top: 6px; font-size: 1.15rem; font-weight: 600; }
.project-body > p:not(.project-cat) { margin-top: 10px; font-size: 0.925rem; color: var(--text-2); }
.project .link-btn { margin-top: auto; align-self: flex-start; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }
.tags li {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
}

/* Mockup thumbnails */
.mock {
  --mock-bg: linear-gradient(135deg, rgba(56, 182, 255, 0.16), rgba(56, 182, 255, 0.03) 60%);
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 22px 26px 0;
  background: var(--mock-bg), var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.4;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mock-bar i:first-child { background: #f87171; }
.mock-bar i:nth-child(2) { background: #fbbf24; }
.mock-bar i:nth-child(3) { background: #4ade80; }
.mock-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body {
  flex: 1;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}
.mock .av { width: 18px; height: 18px; border-radius: 50%; background: var(--border-strong); flex: none; }
.mock .ln { height: 7px; flex: 1; border-radius: 4px; background: var(--border); }
.mock .ln.short { flex: 0 0 55%; }

.m-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  color: var(--text-2);
}
.m-row b { font-weight: 500; }
.m-ok { color: var(--ok); font-weight: 600; }
.m-run { color: var(--brand-ink); font-weight: 600; }
.m-progress { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.m-progress span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

.xl-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
}
.xl-grid span {
  padding: 3px 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
}
.xl-grid .h { background: #217346; color: #fff; font-weight: 600; }
.xl-grid .sel { background: var(--brand-soft); color: var(--text); }
.xl-btn {
  justify-self: end;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}

.ext-toggle { display: flex; gap: 4px; justify-self: end; }
.ext-toggle span {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}
.ext-toggle .on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.post, .cmt, .web-head { display: flex; align-items: center; gap: 8px; }
.post { padding: 6px; border: 1px solid var(--border); border-radius: 6px; }
.post.blurred { filter: blur(2.5px); opacity: 0.7; }

.cmt { position: relative; padding: 4px 0; }
.cmt.spam .ln { background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 9px); }
.cmt.spam { opacity: 0.55; }
.cmt em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
  font-weight: 600;
}

.web-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.web-grid span { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(135deg, var(--brand-soft), var(--border)); }
.web-grid span:nth-child(2n) { background: linear-gradient(135deg, var(--border), rgba(56, 182, 255, 0.28)); }
.web-head .ln { flex: 0 0 40%; }

.mock-term .mock-bar { background: #1a1d23; border-color: #2a2f38; color: #8b95a3; }
.mock-term .mock-body {
  background: #0b0d10;
  border-color: #2a2f38;
  gap: 4px;
  font-family: var(--font-mono);
  color: #d6dde6;
}
.mock-term .p { color: var(--brand); }
.mock-term .ok { color: #4ade80; margin-left: 6px; }
.mock-term .dim { color: #6b7685; margin-left: 6px; }
.caret {
  display: inline-block;
  width: 7px;
  height: 12px;
  vertical-align: -2px;
  background: var(--brand);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--brand-line);
  background: var(--surface);
}
.cta-strip h3 { font-size: 1.15rem; font-weight: 600; }
.cta-strip p { margin-top: 4px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 980px) { .about { grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; } }
.about-copy h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; max-width: 20ch; }
.about-copy > p:not(.kicker) { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; max-width: 62ch; }

.values { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { display: flex; flex-direction: column; gap: 10px; }
.values .icon { width: 24px; height: 24px; color: var(--brand-ink); }
.values h3 { font-size: 1rem; font-weight: 600; }
.values p { margin-top: 4px; font-size: 0.9rem; color: var(--text-2); }

.founder {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.founder::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--logo-a) 50%, var(--logo-b) 50%);
}
.founder-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
}
.founder-role { margin-top: 18px; font-size: 0.78rem; color: var(--brand-ink); }
.founder h3 { margin-top: 4px; font-size: 1.2rem; font-weight: 600; }
.founder > p:not(.founder-role) { margin-top: 10px; color: var(--text-2); font-size: 0.925rem; }
.founder-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.founder-skills li {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-2);
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.step {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 1024px) {
  .step { border-radius: 0; border-left-width: 0; }
  .step:first-child { border-left-width: 1px; border-radius: var(--radius) 0 0 var(--radius); }
  .step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    right: -7px;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--surface);
    transform: rotate(45deg);
  }
}
.step-no {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--brand-ink);
  line-height: 1;
}
.step h3 { margin-top: 16px; font-size: 1.05rem; font-weight: 600; }
.step p { margin-top: 8px; font-size: 0.925rem; color: var(--text-2); }

/* ---------- Store ---------- */
.store {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56, 182, 255, 0.22), transparent 55%),
    var(--surface);
  border: 1px solid var(--brand-line);
}
@media (min-width: 760px) { .store { grid-template-columns: auto 1fr auto; padding: 32px 36px; gap: 28px; } }
.store-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--on-brand);
}
.store-icon .icon { width: 26px; height: 26px; }
.store h2 { font-size: 1.4rem; font-weight: 700; }
.store p { margin-top: 6px; color: var(--text-2); }
.store .btn { justify-self: start; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 20px; }
@media (min-width: 680px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-card a:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post-card a:hover .post-thumb img { transform: scale(1.04); }
.post-thumb img.is-banner { object-fit: contain; padding: 0 20px; }
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.post-meta span { color: var(--brand-ink); }
.post-card h3 {
  padding: 8px 20px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--brand-line); }
.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-ink);
  transition: transform 0.2s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; }
@media (min-width: 980px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.contact-info h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
.contact-info > p:not(.kicker) { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }

.contact-list { display: grid; gap: 10px; margin-top: 28px; }
.contact-list a,
.contact-list li > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.18s var(--ease);
  word-break: break-word;
}
.contact-list a:hover { border-color: var(--brand); }
.contact-list small { display: block; font-size: 0.75rem; color: var(--muted); }
.ci {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.18s var(--ease);
}
.socials a:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 0.85rem; color: var(--danger); }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } }
.footer-brand p { margin-top: 14px; color: var(--text-2); max-width: 40ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-nav h3 { font-size: 0.82rem; font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
.footer-nav ul { display: grid; gap: 2px; margin-top: 10px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  transition: color 0.18s var(--ease);
}
.footer-nav a:hover { color: var(--brand-ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.to-top:hover { color: var(--brand-ink); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 28px -6px rgba(56, 182, 255, 0.6);
}
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 960px) { .wa-float { display: grid; } }

/* ---------- Modal ---------- */
.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(8, 10, 13, 0.6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop 0.22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-inner { position: relative; padding: 32px 28px 28px; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal h2 { margin-top: 6px; padding-right: 48px; font-size: 1.5rem; font-weight: 700; }
.modal-detail { display: grid; gap: 18px; margin: 24px 0 0; }
.modal-detail dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.modal-detail dd { margin: 4px 0 0; color: var(--text-2); }
.modal-detail ul { display: grid; gap: 6px; }
.modal-detail li { position: relative; padding-left: 18px; }
.modal-detail li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
