/* BPKD Bandung Barat — static reconstruction */
:root {
  --primary: #2563eb;
  --primary-dark: #1748ae;
  --secondary: #0ea5e9;
  --ink: #14213d;
  --muted: #64748b;
  --surface: #ffffff;
  --soft: #f4f8ff;
  --line: #dce7f7;
  --success: #16a34a;
  --shadow-sm: 0 10px 30px rgba(37, 99, 235, .08);
  --shadow-lg: 0 24px 70px rgba(19, 47, 92, .14);
  --radius: 24px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
  scroll-margin-top: 88px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: height .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  height: 72px;
  border-color: rgba(220,231,247,.9);
  box-shadow: 0 8px 28px rgba(15,23,42,.07);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img { width: 52px; height: 52px; }

.brand span { display: flex; flex-direction: column; line-height: 1.15; }

.brand strong {
  color: var(--primary);
  font-size: 1.25rem;
  letter-spacing: .04em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.navbar a {
  position: relative;
  padding: 11px 13px;
  border-radius: 12px;
  color: #334155;
  font-size: .94rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.navbar a:not(.nav-login):hover,
.navbar a:not(.nav-login).active {
  color: var(--primary);
  background: #eff6ff;
}

.navbar .nav-login {
  margin-left: 8px;
  padding-inline: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}

.navbar .nav-login:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--primary);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: 170px;
  padding-bottom: 96px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(14,165,233,.13), transparent 28%),
    radial-gradient(circle at 8% 76%, rgba(37,99,235,.1), transparent 27%),
    linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: .97;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hero h1 span { color: var(--primary); }

.digital-label {
  display: inline-block;
  margin-top: 24px;
  color: var(--secondary);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: .16em;
}

.hero-copy > p:not(.safe-note) {
  max-width: 600px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-3px); }

.button-primary {
  color: #fff;
  background: linear-gradient(186deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 32px rgba(37,99,235,.26);
}

.button-outline {
  border-color: #bfd4fb;
  color: var(--primary);
  background: #fff;
}

.button-outline:hover { box-shadow: var(--shadow-sm); }

.safe-note {
  max-width: 550px;
  margin-top: 20px;
  padding-left: 13px;
  border-left: 3px solid #bbdcff;
  color: #64748b;
  font-size: .8rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-image {
  width: 100%;
  filter: drop-shadow(0 30px 45px rgba(37,99,235,.16));
  animation: float 6s ease-in-out infinite;
}

.fly {
  position: absolute;
  z-index: 3;
  width: 64px;
  filter: drop-shadow(0 12px 18px rgba(37,99,235,.18));
}

.fly-one { top: 5%; left: 2%; animation: drift 5s ease-in-out infinite; }
.fly-two { top: 18%; right: -2%; animation: drift 6s ease-in-out infinite reverse; }
.fly-three { bottom: 2%; left: 15%; animation: drift 7s ease-in-out infinite; }

.hero-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .5;
}

.hero-shape-one {
  width: 170px;
  height: 170px;
  top: 130px;
  right: -70px;
  border: 34px solid rgba(37,99,235,.12);
}

.hero-shape-two {
  width: 90px;
  height: 90px;
  bottom: 80px;
  left: -45px;
  background: rgba(14,165,233,.12);
}

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

.section-heading .eyebrow { justify-content: center; }

.section-heading h2,
.about-copy h2 {
  margin: 0 0 15px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.section-heading p,
.about-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.apps-section { background: #fff; }

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

.app-card {
  position: relative;
  min-height: 330px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37,99,235,.09), rgba(14,165,233,.05));
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: #bfd4fb;
  box-shadow: var(--shadow-lg);
}

.app-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #eff6ff, #fff);
  border: 1px solid #dceaff;
}

.app-icon img { width: 70px; height: 70px; }

.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.app-card p {
  min-height: 52px;
  margin: 0 0 24px;
  color: var(--muted);
}

.app-card a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  font-size: .9rem;
}

.about-section {
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-visual {
  padding: 28px;
  border-radius: 34px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm);
}

.about-copy p { margin: 0 0 18px; }

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.about-points div {
  padding: 18px;
  border: 1px solid #d8e7fb;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
}

.about-points strong,
.about-points span { display: block; }

.about-points strong { color: var(--primary); font-size: 1.05rem; }
.about-points span { margin-top: 4px; color: var(--muted); font-size: .87rem; }

.flow-section { background: #fff; }

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

.flow-card {
  position: relative;
  min-height: 270px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.flow-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(37,99,235,.12);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.flow-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 2rem;
  box-shadow: 0 12px 26px rgba(37,99,235,.22);
}

.flow-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.flow-card p { margin: 0; color: var(--muted); }

.contact-section {
  background:
    radial-gradient(circle at 5% 20%, rgba(14,165,233,.08), transparent 25%),
    #f7fbff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 28px;
}

.map-card {
  min-height: 470px;
  padding: 10px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
  border-radius: 19px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-card-wide { grid-column: 1 / -1; }

.contact-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--primary);
  background: #eff6ff;
  font-size: 1.55rem;
  font-weight: 900;
}

.contact-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { color: var(--primary); font-weight: 700; word-break: break-word; }

.site-footer {
  padding: 62px 0 24px;
  color: #dbeafe;
  background: #0d1b36;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 38px;
}

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

.footer-brand img {
  padding: 5px;
  border-radius: 14px;
  background: #fff;
}

.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-brand small { margin-top: 4px; color: #93c5fd; }

.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { color: #bfdbfe; font-weight: 700; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(191,219,254,.14);
  color: #94a3b8;
  font-size: .82rem;
}

.footer-bottom p { margin: 0; }

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(37,99,235,.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(8px, -10px) rotate(4deg); }
}

@media (max-width: 980px) {
  .section { padding: 84px 0; }

  .nav-toggle { display: block; }

  .navbar {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 82px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }

  .navbar.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .nav-login { margin: 6px 0 0; text-align: center; }

  .nav-toggle.active span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(3) { opacity: 0; }
  .nav-toggle.active span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    min-height: auto;
    padding-top: 135px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 50px; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.safe-note), .safe-note { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .hero-visual { max-width: 680px; margin: auto; }

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

  .about-grid { gap: 44px; }
  .about-copy { text-align: center; }
  .about-copy .eyebrow { justify-content: center; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 70px 0; }

  .site-header { height: 74px; }
  .brand img { width: 45px; height: 45px; }
  .brand strong { font-size: 1.07rem; }
  .brand small { font-size: .68rem; }
  .navbar { top: 74px; left: 14px; right: 14px; }

  .hero { padding-top: 120px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .fly { width: 48px; }

  .section-heading { margin-bottom: 34px; }
  .app-grid,
  .flow-grid,
  .about-points,
  .contact-cards { grid-template-columns: 1fr; }

  .contact-card-wide { grid-column: auto; }
  .app-card { min-height: 300px; }
  .map-card, .map-card iframe { min-height: 360px; }

  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
