:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #14213d;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #f59e0b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --success: #16a34a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Public Sans', Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: 0 10px 30px rgba(29,78,216,.25);
}

.brand-logo {
  height: 70px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.03);
}
@media (max-width: 640px) {
  .brand-logo { height: 30px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #334155;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-switch {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}

.hero {
  padding: 78px 0 54px;
  background: radial-gradient(circle at 10% 10%, #dbeafe, transparent 34%), radial-gradient(circle at 90% 0%, #fef3c7, transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 40px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.12));
  transition: transform 0.4s ease;
}
.hero-visual img:hover {
  transform: translateY(-4px) scale(1.01);
}

/* ==================== Lightbox (click-to-zoom) ==================== */
main img.zoomable {
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
main img.zoomable:hover {
  transform: translateY(-2px) scale(1.015);
}
main img.zoomable:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 4px;
  border-radius: 12px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  cursor: zoom-out;
  transition: opacity 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
  padding: 24px;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.86);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.lightbox-overlay img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-overlay.is-open img {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay,
  .lightbox-overlay img,
  main img.zoomable {
    transition: none !important;
  }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  font-weight: 800;
  font-size: 13px;
}

h1, h2, h3 {
  line-height: 1.16;
  margin: 0 0 14px;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

.lead {
  font-size: 18px;
  color: #475569;
  margin: 0 0 26px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29,78,216,.22);
}

.btn.secondary {
  background: #fff;
  color: var(--primary);
  border-color: #bfdbfe;
}

.btn.free-trial {
  background: #16a34a;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(22,163,74,.22);
  gap: 6px;
  font-weight: 400;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15,23,42,.08);
}

.hero-card {
  padding: 26px;
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 18px 0;
}

.price strong {
  font-size: 46px;
  letter-spacing: -.05em;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  font-size: 12px;
}

.section {
  padding: 68px 0;
}

.section.alt {
  background: #fff;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.feature-card,
.info-card {
  padding: 24px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 16px;
}

ul.clean {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

ul.clean li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #475569;
}

ul.clean li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

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

th, td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f8fafc;
  color: #0f172a;
}

.code-block {
  overflow-x: auto;
  padding: 20px;
  border-radius: 18px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 13px;
}

.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 28px;
}

.footer-title {
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fff;
}

[data-lang="en"] .id,
[data-lang="id"] .en {
  display: none !important;
}

/* ==================== Feature Split (image + text) ==================== */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.feature-split-text .eyebrow { margin-bottom: 14px; }
.feature-split-text h2 { margin-bottom: 14px; }
.feature-split-text .lead { margin-bottom: 20px; }

.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #ffffff 60%, #dbeafe 100%);
  padding: 14px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18),
              0 4px 14px rgba(15, 23, 42, 0.08);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.5s;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.35), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.media-frame:hover {
  transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.22),
              0 6px 18px rgba(15, 23, 42, 0.10);
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 920px) {
  .feature-split { grid-template-columns: 1fr; gap: 36px; }
  .media-frame { transform: none; }
  .media-frame:hover { transform: translateY(-3px); }
}

/* ==================== Feature Showcase Auto-Cycle ==================== */
.feature-showcase { position: relative; }

.feature-showcase .feature-split-text > *,
.feature-showcase .feature-split-media {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.45s;
}

.feature-showcase.swapping .feature-split-text > *,
.feature-showcase.swapping .feature-split-media {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}

.feature-showcase.swapping .feature-split-text > *:nth-child(1) { transition-delay: 0s; }
.feature-showcase.swapping .feature-split-text > *:nth-child(2) { transition-delay: 0.04s; }
.feature-showcase.swapping .feature-split-text > *:nth-child(3) { transition-delay: 0.08s; }
.feature-showcase.swapping .feature-split-text > *:nth-child(4) { transition-delay: 0.12s; }
.feature-showcase.swapping .feature-split-media { transition-delay: 0.05s; }

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-dot {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s, background 0.25s;
}

.showcase-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s, transform 0.25s;
}

.showcase-dot:hover { color: var(--text); }
.showcase-dot:hover::before { background: var(--muted); }

.showcase-dot.active {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.showcase-dot.active::before {
  background: #f59e0b;
  transform: scale(1.25);
}

.showcase-progress {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 80px;
  max-width: 220px;
  margin-left: auto;
}

.showcase-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.feature-showcase.paused .showcase-progress > span {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.showcase-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 5;
}
.showcase-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.showcase-arrow-prev { left: -10px; }
.showcase-arrow-next { right: -10px; }
.feature-showcase:hover .showcase-arrow,
.showcase-arrow:focus-visible {
  opacity: 1;
}

@media (max-width: 640px) {
  .showcase-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .showcase-progress { max-width: none; margin-left: 0; }
  .showcase-arrow { opacity: 1; width: 38px; height: 38px; }
  .showcase-arrow-prev { left: 4px; }
  .showcase-arrow-next { right: 4px; }
}

/* ==================== Event Examples Auto-Demo ==================== */
.examples-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.examples-head h2 { letter-spacing: -0.025em; }
.examples-head .lead { margin: 0 auto; }

.event-demo {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Tabs (left column) */
.event-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.event-tab::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, #f59e0b);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.event-tab:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateX(2px);
}

.event-tab.active {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

.event-tab.active::before { transform: scaleY(1); }

.event-tab .tab-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s, transform 0.3s;
}

.event-tab.active .tab-num {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1f2937;
  transform: scale(1.05);
}

.event-tab .tab-body { min-width: 0; }

.event-tab .tab-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  margin-bottom: 2px;
  color: var(--text);
}

.event-tab .tab-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Code window (right column) */
.code-window {
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #111c30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window-header .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.code-window-header .dot.red    { background: #ef4444; }
.code-window-header .dot.yellow { background: #f59e0b; }
.code-window-header .dot.green  { background: #22c55e; }

.code-filename {
  margin-left: 12px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.code-window .code-block {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 22px 24px;
  min-height: 280px;
  display: block;
  position: relative;
}

.code-window .code-block code {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.35s;
}

.code-window.swapping .code-block code {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(2px);
}

/* PHP-like syntax highlighting */
.code-window .tok-tag    { color: #f472b6; }
.code-window .tok-kw     { color: #c084fc; font-weight: 600; }
.code-window .tok-fn     { color: #60a5fa; }
.code-window .tok-str    { color: #fbbf24; }
.code-window .tok-num    { color: #fb923c; }
.code-window .tok-var    { color: #f8fafc; }
.code-window .tok-cmt    { color: #64748b; font-style: italic; }
.code-window .tok-arr    { color: #38bdf8; }

/* Progress bar */
.code-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.code-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px 0 0 999px;
  transition: width 0.15s linear;
}

.code-window.paused .code-progress > span {
  background: linear-gradient(90deg, #475569, #64748b);
}

@media (max-width: 920px) {
  .event-demo { grid-template-columns: 1fr; }
  .event-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .event-tab { flex: 0 0 240px; }
  .code-window .code-block { min-height: 220px; padding: 18px 18px; font-size: 12.5px; }
}

@media (max-width: 860px) {
  .nav,
  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}
