/* Modern landing styles inspired by example: gradient hero, strong CTAs, pricing, testimonials */
:root {
  --brand: #0066ff;
  --accent: #6c63ff;
  --logo: #ffcc00;
  --muted: #6b7280;
  --bg: #f7fafc;
  --card: #ffffff;
  --radius: 12px;
  --anim-duration: 0.65s;
  --anim-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}
* {
  box-sizing: border-box;
  max-width: 100%; /* prevent any element from overflowing */
}

img {
  max-width: 100%;
  height: auto;
}

/* Re-allow specific elements to exceed if needed */
.trust-logos,
.trust-logos *,
.portfolio-grid,
.portfolio-grid * {
  max-width: none;
}
html,
body {
  height: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
  scroll-behavior: smooth; /* smooth scrolling untuk anchor links */
}
body {
  font-family: "Poppins", Inter, system-ui, -apple-system, Segoe UI, Roboto,
    Arial;
  line-height: 1.65;
  color: #0f172a;
  background: var(--bg);
  margin: 0;
  width: 100%;
  position: relative;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.95;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 12px;
    gap: 8px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--logo);
  text-decoration: none;
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.95rem;
  }
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .logo img {
    height: 28px;
  }
}
.nav {
  margin-left: 12px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}
.header-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .header-cta .btn-outline {
    display: none; /* hide Konsultasi button on mobile */
  }
  .header-cta .btn-primary {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .header-cta {
    gap: 6px;
  }
  .header-cta .btn-primary {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.1rem;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0f172a;
  padding: 11px 22px;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 11px 22px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  padding: 56px 0 20px;
}
.hero-gradient {
  background: linear-gradient(120deg, #0ea5ff 0%, #7c3aed 100%);
  color: #fff;
  padding: 48px 0;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center; /* center columns horizontally */
}
.kicker {
  opacity: 0.95;
  font-weight: 700;
}
h1 {
  font-size: 2.1rem;
  line-height: 1.06;
  margin: 10px 0;
}
.lead {
  opacity: 0.95;
  margin-bottom: 18px;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}
.hero-media img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.2);
}
.hero-trust {
  margin-top: -18px;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  background: transparent;
  padding: 18px;
  border-radius: 12px;
  flex-wrap: wrap; /* allow logos to wrap into multiple rows on wider screens */
  justify-content: flex-start;
}

/* Ensure uploaded client logos are consistent and aligned */
.trust-logos img {
  height: 36px;
  width: auto;
  display: inline-block;
  object-fit: contain;
  opacity: 0.95;
  margin: 6px 8px 6px 0;
  flex: 0 0 auto; /* keep natural size */
}

/* Responsive behavior: on narrow screens make the logos horizontally scrollable */
@media (max-width: 900px) {
  .trust-logos {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 12px;
    white-space: nowrap;
    align-items: center;
  }
  .trust-logos img {
    height: 30px;
    margin-right: 12px;
  }
  .trust-logos span {
    flex: 0 0 auto;
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .trust-logos img {
    height: 24px;
    margin-right: 10px;
  }
}

/* Tweak hero layout and typography (overrides from earlier) */
.hero {
  padding: 56px 0 20px;
}
.hero-gradient {
  background: linear-gradient(120deg, #0ea5ff 0%, #7c3aed 100%);
  color: #fff;
  padding: 56px 0 32px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.hero-copy {
  /* make hero content span the full column (col-12) and avoid internal clipping */
  max-width: none;
  width: 100%;
  padding: 0 24px;
  text-align: center; /* keep centered text by default */
  margin-left: 0;
  margin-right: 0;
}

/* Make hero headline use the brand-yellow for emphasis */
.hero-gradient h1 {
  color: var(--logo);
  font-size: 3.2rem;
  line-height: 1.05;
  margin: 10px 0 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.kicker {
  opacity: 0.95;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.hero-copy .lead {
  font-size: 1.25rem;
  line-height: 1.65;
  margin-bottom: 24px;
  opacity: 0.95;
  font-weight: 400;
}

/* Slightly larger lead on wide screens */
@media (min-width: 1100px) {
  .hero-gradient h1 {
    font-size: 3.8rem;
  }
  .hero-copy .lead {
    font-size: 1.35rem;
    line-height: 1.7;
  }
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* Center CTA buttons inside hero and stack on small screens */
.cta-row {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-row .btn {
  min-width: 180px;
}

@media (max-width: 600px) {
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .cta-row .btn {
    width: 100%;
    max-width: 420px;
  }
}
.btn-primary {
  padding: 12px 20px;
}
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 700;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-features li::before {
  content: "✓";
  color: var(--logo);
  font-weight: 900;
  font-size: 1.1rem;
}
.hero-media img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.2);
}

/* problem / quote block in hero */
.problem-block {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid rgba(255, 255, 255, 0.25);
  padding: 18px 20px;
  border-radius: 12px;
  margin: 20px 0;
}
.problem-block p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.65;
}
.problem-block .muted {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
}

/* testimonials / quotes */
.testimonials blockquote {
  background: #fff;
  padding: 24px 26px;
  border-left: 6px solid var(--brand);
  margin: 16px 0;
  border-radius: 12px;
  font-style: italic;
  color: #0f172a;
  line-height: 1.7;
}
.testimonials blockquote p {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.testimonials .muted {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  font-style: normal;
}

/* Entrance animations (fade-up) */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--anim-duration) var(--anim-ease),
    transform var(--anim-duration) var(--anim-ease);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero background-image variant: use illustration as background on wider screens */
.hero-gradient {
  background-image: linear-gradient(
      120deg,
      rgba(14, 165, 255, 0.95) 0%,
      rgba(124, 58, 237, 0.95) 100%
    ),
    url("../images/hero-illustration.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 55% auto;
}
.hero-media {
  display: block;
}

/* Hero background: span full width cleanly without negative-margin tricks
   This avoids visual seams on some browsers and preserves the site's container spacing. */
.hero-gradient {
  position: relative;
  width: 100%;
  max-width: 100vw; /* prevent overflow */
  box-sizing: border-box;
  padding-left: 0; /* rely on inner .container for horizontal padding */
  padding-right: 0;
  background-size: cover;
  background-position: 60% center;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden; /* prevent content overflow */
}

/* If you want the gradient to extend edge-to-edge, ensure the body background matches
   or place the gradient on a pseudo-element. For now we keep it simple and avoid clipping. */

/* KPI / stats */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.kpi {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(12, 15, 30, 0.06);
  text-align: center;
}
.kpi .kpi-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.kpi .kpi-label {
  color: var(--muted);
  margin-top: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Portfolio styles (large hero tiles with overlay) */
.portfolio {
  padding: 60px 0;
  background: #f6f7f1;
}
.portfolio h2 {
  text-align: center;
  color: #17a65a;
  font-size: 3.2rem;
  margin: 0 0 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.portfolio .section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}
.portfolio-controls {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}
.portfolio-controls .tab {
  background: #fff;
  border: 0;
  padding: 12px 28px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4b5563;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}
.portfolio-controls .tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}
.portfolio-controls .tab.active {
  background: #17a65a;
  color: #fff;
  box-shadow: 0 18px 48px rgba(23, 166, 90, 0.12);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 18px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.06);
  min-height: 220px;
  display: block;
  transition: transform 240ms var(--anim-ease),
    box-shadow 240ms var(--anim-ease);
}
.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.09);
}
.project-card.large {
  min-height: 260px;
}
.project-card .media {
  display: block;
  width: 100%;
  height: 100%;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.project-card .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.45) 0%,
    rgba(2, 6, 23, 0.12) 60%
  );
  opacity: 0; /* only visible on hover */
  transition: opacity var(--anim-duration) var(--anim-ease);
}
.project-card.featured .overlay::before {
  background: linear-gradient(
    90deg,
    rgba(23, 166, 90, 0.88) 0%,
    rgba(23, 166, 90, 0.68) 100%
  );
}

/* Bottom caption bar: always visible, good contrast, rounded bottom corners */
.project-card .meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
}

/* Featured card bottom bar: green with white text */
.project-card.featured .meta {
  background: linear-gradient(
    90deg,
    rgba(23, 166, 90, 0.98),
    rgba(23, 166, 90, 0.9)
  );
  color: #fff;
}

/* kicker/title on left, pill on right */
.project-card .meta .kicker {
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 2px;
  color: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.project-card .meta h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: inherit;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.project-card .meta p {
  display: none;
}

/* Pill/link styling for normal vs featured (scoped to the caption .meta)
   Ensure visible contrast: dark/brand-colored pill on light caption, light pill on dark/featured caption. */
.project-card .meta .pill {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.project-card.featured .meta .pill {
  border-color: rgba(255, 255, 255, 0.95);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* On hover, reveal subtle overlay behind the bottom bar for emphasis */
.project-card:hover .overlay::before {
  opacity: 1;
}
.project-card .meta .kicker {
  font-weight: 700;
  opacity: 0.95;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.9);
}
.project-card .meta h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
}
.project-card .meta p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* Remove older, less-specific pill rule; meta-scoped rules above control pill contrast now. */

@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card.large {
    min-height: 200px;
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .project-card.large {
    min-height: 160px;
  }
  .portfolio-controls {
    flex-wrap: wrap;
  }
}

/* Portfolio download button (centered, matches site buttons) */
.portfolio-download {
  text-align: center;
  margin-top: 20px;
}
.portfolio-download .btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
}

/* Section headings scale & spacing */
section h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

section .section-intro,
section > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.container section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.cards .card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  line-height: 1.7;
  color: var(--muted);
}

.services {
  padding: 50px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.1);
}
.card h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.card p {
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.pricing {
  padding: 50px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan {
  background: #fff;
  padding: 28px 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
  transition: all 0.3s ease;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.1);
}
.plan h3 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}
.plan .price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}
.plan li {
  padding: 10px 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #0f172a;
}
.plan-featured {
  transform: translateY(-8px);
  border: 2px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
}

/* Featured ribbon for best-value plan */
.plan {
  position: relative;
}
.plan .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.14);
  font-size: 0.82rem;
}

/* Accent card variant used for features */
.card.accent {
  border-left: 6px solid var(--brand);
}

/* FAQ accordion */
.accordion {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}
.accordion .item {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 16px 0;
}
.accordion .item:first-child {
  border-top: none;
}
.accordion .question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #0f172a;
  transition: color 0.2s ease;
}
.accordion .question:hover {
  color: var(--brand);
}
.accordion .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.36s var(--anim-ease);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 0;
  margin-top: 0;
}
.accordion .item.open .answer {
  max-height: 400px;
  padding-top: 12px;
  margin-top: 8px;
}

/* Full-bleed decision CTA */
.cta-decision {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  padding: 32px;
  border-radius: 14px;
  margin: 28px 0;
  text-align: center;
}
.cta-decision h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.cta-decision .btn {
  padding: 12px 20px;
}

/* small UI polish */
.btn {
  transition: transform 160ms var(--anim-ease),
    box-shadow 160ms var(--anim-ease);
}
.btn:active {
  transform: translateY(1px);
}
.card {
  transition: transform 220ms var(--anim-ease),
    box-shadow 220ms var(--anim-ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.08);
}
.plan-featured {
  transform: translateY(-6px);
}

/* make content breathe a bit more */
.container {
  padding-left: 32px;
  padding-right: 32px;
}

/* Custom plan: hide numeric price and emphasize consultation CTA */
.plan-custom .price {
  display: none;
}
.plan-custom .btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--brand));
  padding: 12px 18px;
  border-radius: 10px;
}
.plan-custom ul li {
  padding: 10px 0;
}
.plan-custom {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials {
  padding: 40px 0;
}
.testimonial-slider {
  display: flex;
  gap: 18px;
  overflow: hidden;
}
.testimonial {
  min-width: 340px;
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  transition: transform 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
}
.testimonial p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  color: #0f172a;
}
.testimonial footer {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

/* Contact section - center aligned */
.contact {
  padding: 60px 0;
  text-align: center;
}
.contact h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.contact .btn {
  margin: 0 auto 20px;
  display: inline-block;
}
.contact .note {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.contact .note a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.contact .note a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 60px;
  text-align: center;
}
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .nav {
    display: none;
  }
  .hero-copy {
    max-width: none;
    padding: 0 16px; /* reduce padding on medium screens */
  }
  .hero-gradient {
    background-size: cover;
    padding: 40px 20px 32px; /* adjust padding for tablets */
  }
  .hero-media {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem !important;
    line-height: 1.15;
    margin: 8px 0 14px;
    letter-spacing: -0.02em;
  }
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  h3 {
    font-size: 1.25rem;
  }
  .hero-media {
    order: -1;
  }
  .hero-gradient {
    padding: 32px 16px 28px !important;
  }
  .hero-gradient h1 {
    font-size: 2.2rem !important;
  }
  .hero-copy {
    padding: 0 12px !important;
  }
  .kicker {
    font-size: 0.8rem;
    letter-spacing: 0.4px;
  }
  .hero-copy .lead {
    font-size: 1.05rem !important;
    line-height: 1.6;
  }
  .problem-block {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .problem-block p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .hero-features {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 11px 18px;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 12px 22px;
  }
  .container {
    padding: 16px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-value {
    font-size: 1.8rem !important;
  }
  .contact h2 {
    font-size: 2rem !important;
  }
  .contact .note {
    font-size: 0.95rem;
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
    word-break: break-word;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.15rem;
  }
  .hero-gradient {
    padding: 28px 14px 24px !important;
  }
  .hero-gradient h1 {
    font-size: 1.9rem !important;
  }
  .hero-copy .lead {
    font-size: 1rem !important;
  }
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
  .trust-logos {
    padding: 10px;
  }
  .portfolio h2 {
    font-size: 2.2rem !important;
  }
  .portfolio-controls .tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .project-card .meta .kicker {
    font-size: 0.75rem;
  }
  .project-card .meta h3 {
    font-size: 1rem !important;
  }
  .project-card .meta .pill {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  .portfolio-download .btn {
    font-size: 0.95rem;
    padding: 11px 18px;
  }
  .cards {
    gap: 14px;
  }
  .card {
    padding: 18px;
  }
  .card h3 {
    font-size: 1.15rem;
  }
  .pricing-grid {
    gap: 14px;
  }
  .plan {
    padding: 18px;
  }
  .accordion {
    padding: 10px;
  }
  .accordion .item {
    padding: 12px 0;
  }
  .accordion .question {
    font-size: 0.95rem;
    font-weight: 700;
  }
  .accordion .answer {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .kpi .kpi-value {
    font-size: 2rem !important;
  }
  .kpi .kpi-label {
    font-size: 0.9rem;
  }
  .contact h2 {
    font-size: 1.6rem !important;
  }
  .contact .note {
    font-size: 0.9rem;
  }
}

/* Additional fixes for very small screens */
@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem !important;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.35rem !important;
  }
  .hero-gradient h1 {
    font-size: 1.65rem !important;
  }
  .hero-copy .lead {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }
  .btn {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  .btn-primary {
    font-size: 0.95rem;
    padding: 11px 16px;
  }
  .logo {
    font-size: 0.9rem;
  }
  .logo img {
    height: 24px;
  }
  .header-cta .btn-primary {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .portfolio h2 {
    font-size: 1.85rem !important;
  }
  .kpi .kpi-value {
    font-size: 1.75rem !important;
  }
  .contact h2 {
    font-size: 1.4rem !important;
  }
  .contact .note {
    font-size: 0.85rem;
  }
}

/* Lightbox / modal styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox.open {
  display: flex;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(2px);
}
.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: calc(100% - 48px);
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  font-size: 20px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.lightbox-media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  max-height: 75vh;
}
.lightbox-media img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  object-fit: contain;
}
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}
.lightbox-caption .kicker {
  font-weight: 700;
  color: #4b5563;
}
.lightbox-caption h3 {
  margin: 0;
  font-size: 1.25rem;
}
.lightbox-actions .pill {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 700px) {
  .lightbox-content {
    width: calc(100% - 24px);
  }
  .lightbox-media {
    min-height: 220px;
  }
  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}
