/* ==========================================================================
   FINBLOSSOM WEB & APP — Brand Design System
   Matches finblossom.id visual identity (Midnight Navy + Crimson Magenta)
   with Dark (default) & Light mode support
   ========================================================================== */

:root {
  /* Dark Mode (Default — matches finblossom.id) */
  --bg-base: #0d0f36;
  --bg-elevated: #161853;
  --bg-card: rgba(22, 24, 83, 0.72);
  --bg-card-hover: rgba(29, 32, 104, 0.9);
  --bg-glass: rgba(13, 15, 54, 0.82);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --grid-line: rgba(255, 255, 255, 0.045);

  --text-primary: #ffffff;
  --text-secondary: #b8bce0;
  --text-muted: #8489b5;

  --accent: #e51b50;
  --accent-hover: #ff2d64;
  --accent-soft: rgba(229, 27, 80, 0.14);
  --accent-glow: rgba(229, 27, 80, 0.35);

  --emerald: #22c55e;
  --emerald-soft: rgba(34, 197, 94, 0.14);
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --violet: #8b5cf6;

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  --shadow-sm: 0 4px 16px rgba(4, 6, 26, 0.35);
  --shadow-md: 0 12px 36px rgba(4, 6, 26, 0.5);
  --shadow-accent: 0 12px 40px rgba(229, 27, 80, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg-base: #f5f6fc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(245, 246, 252, 0.88);
  --bg-subtle: rgba(22, 24, 83, 0.04);
  --grid-line: rgba(22, 24, 83, 0.055);

  --text-primary: #141645;
  --text-secondary: #484c7a;
  --text-muted: #6f749e;

  --accent: #e51b50;
  --accent-hover: #c91444;
  --accent-soft: rgba(229, 27, 80, 0.1);
  --accent-glow: rgba(229, 27, 80, 0.2);

  --border: rgba(22, 24, 83, 0.11);
  --border-strong: rgba(22, 24, 83, 0.22);

  --shadow-sm: 0 4px 16px rgba(22, 24, 83, 0.06);
  --shadow-md: 0 14px 36px rgba(22, 24, 83, 0.1);
  --shadow-accent: 0 12px 32px rgba(229, 27, 80, 0.18);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 15% 10%, rgba(229, 27, 80, 0.12), transparent 36%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.09), transparent 36%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.text-accent {
  color: var(--accent);
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(229, 27, 80, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.18); }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-footer {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-light {
  display: none;
}

.logo-dark {
  display: block;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

.brand-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(229, 27, 80, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all var(--transition);
}

.icon-toggle:hover, .icon-toggle.active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Dark / Light Sliding Toggle Switch */
.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.theme-switch-track {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.theme-switch:hover .theme-switch-track {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.theme-switch-icon {
  font-size: 0.78rem;
  line-height: 1;
  z-index: 1;
  user-select: none;
  opacity: 0.75;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), background var(--transition);
  z-index: 2;
}

[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(26px);
}

[data-theme="light"] .theme-switch-track {
  background: #e9ecf8;
  border-color: rgba(22, 24, 83, 0.22);
}

[data-theme="light"] .theme-switch-thumb {
  transform: translateX(0);
  background: #161853;
  box-shadow: 0 2px 8px rgba(22, 24, 83, 0.3);
}

.mobile-menu-btn {
  display: none;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav a:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 64px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  transition: color var(--transition);
}

.hero-backlink:hover {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

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

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Visual Showcase Card (Finblossom Corner-Bracket Style) */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid rgba(229, 27, 80, 0.55);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-accent);
}

.corner-brackets::before,
.corner-brackets::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.corner-brackets::before {
  top: -5px;
  left: -5px;
  border-width: 3px 0 0 3px;
  border-radius: 6px 0 0 0;
}

.corner-brackets::after {
  bottom: -5px;
  right: -5px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 6px 0;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-tag {
  color: var(--text-muted);
  font-weight: 700;
}

.main-class-badge {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.hero-quick-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.quick-row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.quick-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(229, 27, 80, 0.25);
  padding: 5px;
  box-shadow: 0 4px 12px rgba(4, 6, 26, 0.22);
  flex-shrink: 0;
  overflow: hidden;
}

.quick-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-row h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.quick-row p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-price {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

.hero-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   LAYANAN (6 KATEGORI JASA)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.service-card.featured {
  border-color: rgba(229, 27, 80, 0.55);
  box-shadow: var(--shadow-accent);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.service-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(229, 27, 80, 0.28);
  padding: 8px;
  box-shadow: 0 6px 18px rgba(4, 6, 26, 0.25);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 22px var(--accent-glow);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-slot {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.service-card.featured .service-slot {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.service-for {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.service-features {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-features li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
}

.service-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.price-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   INTERACTIVE HELPER ("BINGUNG PILIH YANG MANA?") — RAMAH ORANG AWAM
   ========================================================================== */
.helper-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.helper-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.helper-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.helper-opt {
  text-align: left;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.helper-opt-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  border: 1px solid rgba(22, 24, 83, 0.12);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.helper-opt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.helper-result-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.helper-result-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #ffffff;
  padding: 7px;
  border: 1.5px solid rgba(229, 27, 80, 0.3);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.helper-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pkg-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pkg-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  border: 1px solid rgba(22, 24, 83, 0.14);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pkg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.helper-opt:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.helper-opt.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.helper-opt strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.helper-opt span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.helper-result {
  background: var(--bg-elevated);
  border: 1px solid rgba(229, 27, 80, 0.45);
  border-radius: var(--radius-md);
  padding: 24px;
}

.helper-result-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.helper-result h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.helper-result p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.helper-meta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.helper-meta-row div {
  flex: 1;
}

.helper-meta-row small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.helper-meta-row strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

/* ==========================================================================
   PORTOFOLIO INTERAKTIF (BISA DIKLIK & DIKUNJUNGI)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-thumb {
  position: relative;
  height: 224px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

/* Top Mini Browser Bar */
.thumb-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(10, 12, 38, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

.dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.thumb-url {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 9px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.thumb-badge {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(229, 27, 80, 0.25);
  color: #fff;
  border: 1px solid rgba(229, 27, 80, 0.55);
  flex-shrink: 0;
}

/* Scaled Live Website Viewport inside Card */
.thumb-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  z-index: 1;
}

.thumb-fallback strong {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.thumb-fallback span {
  font-size: 0.76rem;
  opacity: 0.85;
}

.thumb-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  transform: scale(0.295);
  pointer-events: none;
  z-index: 2;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.thumb-iframe.loaded {
  opacity: 1;
}

.thumb-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(13, 15, 54, 0.52);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-thumb:hover .thumb-hover-overlay {
  opacity: 1;
}

.thumb-hover-pill {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(229, 27, 80, 0.45);
}

.bg-grad-corp { background: linear-gradient(135deg, #161853, #2b3595, #e51b50); }
.bg-grad-shop { background: linear-gradient(135deg, #0f172a, #be123c, #f97316); }
.bg-grad-inter { background: linear-gradient(135deg, #1e1b4b, #7c3aed, #ec4899); }
.bg-grad-ppid { background: linear-gradient(135deg, #064e3b, #047857, #d97706); }
.bg-grad-goat { background: linear-gradient(135deg, #1c1917, #78350f, #d97706); }
.bg-grad-doughnut { background: linear-gradient(135deg, #1e1b4b, #db2777, #f472b6); }
.bg-grad-selkop { background: linear-gradient(135deg, #09090b, #7f1d1d, #ef4444); }
.bg-grad-app { background: linear-gradient(135deg, #111827, #312e81, #38bdf8); }
.bg-grad-live { background: linear-gradient(135deg, #161853, #4c1d95, #e51b50); }

.portfolio-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.portfolio-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.portfolio-body p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.portfolio-tags span {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.portfolio-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.portfolio-actions .btn {
  flex: 1;
}

/* ==========================================================================
   HARGA TRANSPARAN & SUDAH TERMASUK APA SAJA
   ========================================================================== */
.included-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.included-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.included-pill .ic {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.included-pill strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.included-pill span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  backdrop-filter: blur(12px);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: var(--bg-subtle);
}

.pricing-table .pkg-name {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.pricing-table .pkg-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-table .pkg-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   ALUR KERJA (4 LANGKAH SIMPEL)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ RAMAH ORANG AWAM
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-q .chevron {
  transition: transform var(--transition);
  color: var(--accent);
  font-size: 1.15rem;
}

.faq-item.open .faq-q .chevron {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   CTA BANNER & FOOTER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(229, 27, 80, 0.18), rgba(22, 24, 83, 0.92));
  border: 1.5px solid rgba(229, 27, 80, 0.5);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-accent);
}

[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #161853, #23267a);
  color: #ffffff;
}

[data-theme="light"] .cta-banner .section-desc {
  color: #cbd0f5;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 12px;
}

.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 42px 0 36px;
  margin-top: 40px;
  background: var(--bg-glass);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   PORTFOLIO DETAIL MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 8, 28, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 1020px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(229, 27, 80, 0.55);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.device-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.device-btn.active {
  background: var(--accent);
  color: #fff;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-preview-shell {
  width: 100%;
  height: 430px;
  margin: 0 auto 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #0a0c26;
  transition: max-width 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-preview-shell.mobile-view {
  max-width: 390px;
}

.modal-preview-frame {
  width: 100%;
  flex: 1;
  border: 0;
  background: #ffffff;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.modal-features div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .helper-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .included-banner,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .header-actions .btn-primary span.label-hide-sm {
    display: none;
  }

  .services-grid,
  .portfolio-grid,
  .included-banner,
  .steps-grid,
  .helper-options,
  .modal-features {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .helper-box {
    padding: 22px;
  }

  .section {
    padding: 64px 0;
  }
}
