/* ============================================================
   LABCODING — landing stylesheet
   One background (navy) for every section, lime accent,
   cards as faint translucent surfaces on top of the navy.
   ============================================================ */

:root {
  --ink: #0B1324;                       /* dark text on lime */
  --navy: #0B1530;                      /* page background */
  --navy-2: #16234A;
  --blue: #2251E6;                      /* hero glow, avatars */
  --accent: #BAFF29;                    /* lime — highlights + primary actions */
  --accent-hover: #A6EB12;
  --accent-soft: rgba(186, 255, 41, .1);
  --surface: rgba(255, 255, 255, .03);  /* cards */
  --line: rgba(255, 255, 255, .1);
  --muted: rgba(255, 255, 255, .68);
  --subtle: rgba(255, 255, 255, .45);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #0B1530 0%, #0A1129 45%, #0C1736 100%);
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul { margin: 0; }
h2, h3 { text-wrap: balance; }
ul { padding: 0; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--ink); }

[hidden] { display: none !important; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.hero :focus-visible,
footer :focus-visible {
  outline-color: var(--accent);
}

/* ---------- Icons ---------- */
.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic.wa { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }


/* navbar CTA */
.btn-nav {
  background: var(--accent);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 14px;
}
.btn-nav:hover { background: var(--accent-hover); }

/* hero primary / secondary */
.btn-primary,
.btn-secondary {
  padding: 16px 28px;
  font-size: 16px;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }

/* section buttons */
.btn-outline,
.btn-solid {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
}
.btn-outline { background: transparent; color: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-solid:hover { background: var(--accent-hover); }
.btn-light {
  background: var(--accent);
  color: var(--ink);
  padding: 14px 26px;
  font-size: 15px;
}
.btn-light:hover { background: var(--accent-hover); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 24px 32px 72px;
  overflow: clip; /* clips glows without breaking the sticky navbar */
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow.tl {
  top: -220px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(34, 81, 230, .45) 0%, rgba(34, 81, 230, 0) 70%);
}
.hero-glow.br {
  bottom: 40px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(34, 81, 230, .22) 0%, rgba(34, 81, 230, 0) 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  background-image:
    linear-gradient(to bottom,
      transparent 339px, rgba(255, 255, 255, .05) 339px, rgba(255, 255, 255, .05) 340px, transparent 340px,
      transparent 539px, rgba(255, 255, 255, .05) 539px, rgba(255, 255, 255, .05) 540px, transparent 540px),
    linear-gradient(to right,
      transparent calc(25% - .5px), rgba(255, 255, 255, .05) calc(25% - .5px), rgba(255, 255, 255, .05) calc(25% + .5px), transparent calc(25% + .5px),
      transparent calc(50% - .5px), rgba(255, 255, 255, .05) calc(50% - .5px), rgba(255, 255, 255, .05) calc(50% + .5px), transparent calc(50% + .5px),
      transparent calc(75% - .5px), rgba(255, 255, 255, .05) calc(75% - .5px), rgba(255, 255, 255, .05) calc(75% + .5px), transparent calc(75% + .5px));
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(11, 21, 48, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 12px 14px 12px 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.brand-name span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Center stage ---------- */
.hero-stage {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 0 64px;
}

.display-type {
  position: relative;
  text-align: center;
}

.giant {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 102px);
  line-height: .95;
  letter-spacing: -3px;
  text-transform: uppercase;
}
.giant span { display: block; }
.giant .l1 { color: #fff; }
.giant .l2 { color: var(--accent); }
.giant .l3 { color: #fff; }

.float-card {
  position: absolute;
  z-index: 2;
  width: 220px;
  padding: 14px 16px;
  background: rgba(22, 35, 74, .88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: left;
}
.float-card.left { left: 0; top: 30%; }
.float-card.right { right: 0; top: 72%; }

.fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fc-dots { display: inline-flex; gap: 4px; }
.fc-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.fc-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.float-card p {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}
.fc-avatars {
  display: flex;
  margin-top: 10px;
}
.fc-avatars b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--navy-2);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.fc-avatars b + b { margin-left: -8px; }
.fc-avatars b:last-child { background: var(--accent); color: var(--ink); }

.hero-sub {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Process dock (3 steps) ---------- */
.dock {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}

.dock-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.dock-step h2, .dock-step p { max-width: 100%; overflow-wrap: break-word; }
.dock-step h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.dock-step p {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 14px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.chip .ic { width: 15px; height: 15px; }
.chip-blue { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.dock-arrow {
  display: flex;
  align-items: center;
  color: var(--subtle);
  flex-shrink: 0;
  align-self: center;
}
.dock-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   2. TECH STACK
   ============================================================ */
.stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 28px 24px;
}
.stack-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}
.stack-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.stack-list li {
  font-size: 15px;
  font-weight: 700;
  color: var(--subtle);
}

/* ============================================================
   3. SECTIONS (shared)
   ============================================================ */
.section {
  position: relative;
  padding: 96px 32px;
  background: radial-gradient(60% 55% at 50% 0%, rgba(34, 81, 230, .16), transparent 70%);
}
#karya {
  background:
    radial-gradient(45% 60% at 0% 35%, rgba(34, 81, 230, .2), transparent 70%),
    radial-gradient(35% 45% at 100% 85%, rgba(186, 255, 41, .06), transparent 70%);
}
#harga {
  background:
    radial-gradient(45% 55% at 100% 25%, rgba(34, 81, 230, .2), transparent 70%),
    radial-gradient(40% 40% at 0% 90%, rgba(34, 81, 230, .12), transparent 70%);
}
#testimoni {
  background: radial-gradient(55% 60% at 50% 100%, rgba(186, 255, 41, .05), transparent 70%),
    radial-gradient(50% 50% at 15% 20%, rgba(34, 81, 230, .14), transparent 70%);
}
.section > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* gothic ornamental divider on top of every section + footer */
.section::before,
footer::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  height: 60px;
  pointer-events: none;
  background:
    url("assets/divider.svg") center / 720px 60px no-repeat,
    linear-gradient(to left, rgba(186, 255, 41, .55), transparent) left center / calc(50% - 360px) 1px no-repeat,
    linear-gradient(to right, rgba(186, 255, 41, .55), transparent) right center / calc(50% - 360px) 1px no-repeat;
}
@media (max-width: 680px) {
  .section::before,
  footer::before {
    top: -16px;
    height: 32px;
    background: url("assets/divider.svg") center / contain no-repeat;
  }
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.8px;
}
.section-head p {
  max-width: 520px;
  margin: 10px auto 0;
  font-size: 16px;
  color: var(--muted);
}

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

/* ---------- Services ---------- */
.item {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
}
.item h3 {
  font-size: 17px;
  font-weight: 700;
}
.item p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Portfolio ---------- */
/* auto-scrolling strip: 3 copies of the list, track slides by one copy, pauses on hover/focus */
.carousel {
  max-width: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-right: 20px;
  animation: carousel-scroll 36s linear infinite;
}
.carousel:hover .carousel-track,
.carousel:focus-within .carousel-track { animation-play-state: paused; }
.carousel .work { flex: none; width: 360px; }
@keyframes carousel-scroll {
  to { transform: translateX(calc(-100% / 3)); }
}

.work {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.work-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}
.work-body { padding: 22px 24px 26px; }
.work-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.work h3 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}
.work p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.plan-featured {
  border: 2px solid var(--accent);
  padding: 27px 23px; /* keep size equal despite thicker border */
}
.plan-label {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.plan h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}
.plan-price {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.plan-sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--subtle);
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}
.plan .btn { margin-top: auto; }
.plan-note {
  margin-top: 32px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.quote figcaption {
  margin-top: auto;
  font-size: 14px;
  color: var(--subtle);
}
.quote figcaption b { color: #fff; font-weight: 700; }

/* ============================================================
   4. FOOTER
   ============================================================ */
footer {
  position: relative;
  color: #fff;
  background: radial-gradient(70% 90% at 50% 100%, rgba(34, 81, 230, .28), transparent 70%);
  padding: 88px 32px 32px;
}
footer > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.cta { text-align: center; }
.cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.cta p {
  margin-top: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
}
.cta .btn { margin-top: 28px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}
.footer-mark {
  display: block;
  width: 26px;
  height: 26px;
}
.footer-bottom small {
  font-size: 13px;
  color: var(--subtle);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- ≤1100px ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card { display: none; }
}

/* ---------- ≤900px ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 21, 48, .97);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  }
  .nav-links.open a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }
  .nav-links.open a:hover { background: rgba(255, 255, 255, .06); }
  .menu-toggle { display: flex; }

  .hero { padding: 20px 20px 56px; }
  .hero-stage { padding: 40px 0 48px; }
  .giant { letter-spacing: -2px; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 72px 24px; }
}

/* ---------- ≤680px (phones) ---------- */
@media (max-width: 680px) {
  .carousel .work { width: 280px; }
  .carousel-track { gap: 14px; padding-right: 14px; }
  .hero { padding: 12px 12px 32px; }
  .navbar {
    padding: 8px 8px 8px 12px;
    gap: 8px;
  }
  .btn-nav {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .hero-stage { padding: 24px 0 18px; }
  .giant {
    font-size: clamp(28px, 8.6vw, 44px);
    letter-spacing: -1.2px;
  }
  .float-card { display: none; }

  .hero-sub {
    font-size: 14px;
    margin-top: 16px;
    padding: 0 4px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 340px;
    padding: 13px 16px;
    font-size: 14px;
    white-space: normal;
  }

  .dock {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    border-radius: 18px;
    margin-top: 20px;
  }
  .dock-step { padding: 16px 12px; gap: 8px; border-radius: 14px; }
  .dock-step h2 { font-size: 15px; }
  .dock-step p { font-size: 12.5px; margin-top: 0; }
  .chip { font-size: 11px; padding: 5px 10px; margin-top: 2px; }
  .dock-arrow { display: none; }

  .stack { flex-direction: column; padding: 22px 16px; }
  .stack-list { gap: 6px 18px; }
  .stack-list li { font-size: 14px; }

  .section { padding: 56px 16px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 15px; }
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .grid-4 { gap: 20px; }
  .item, .quote { padding: 22px; }
  .plan { padding: 24px 20px; }
  .plan-featured { padding: 23px 19px; }

  footer { padding: 64px 16px 24px; }
  .cta h2 { font-size: 26px; }
  .footer-bottom { margin-top: 56px; }
}

/* ---------- ≤420px ---------- */
@media (max-width: 420px) {
  .giant {
    font-size: clamp(26px, 8.4vw, 40px);
    letter-spacing: -1px;
  }
  .hero-cta .btn { font-size: 15px; }
  .brand-name { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .carousel-track { animation: none; }
  .carousel-track > [aria-hidden="true"] { display: none; }
  .btn,
  .nav-links a { transition: none; }
  .btn:hover,
  .btn:active { transform: none; }
}
