@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ============================================================
   CLEAN PREMIUM SAAS DESIGN — Zephytor Edition
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary: #06b6d4;
  --accent: #8b5cf6;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --text-h: #0f172a;
  --text-b: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-h: 'Plus Jakarta Sans', sans-serif;
  --font-b: 'Inter', sans-serif;
  --logo-color: #0073BC;
}

body.dark-theme {
  --bg: #0b0f1a;
  --bg-subtle: #161b2e;
  --text-h: #ffffff;
  --text-b: #cbd5e1;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --logo-color: #ffffff;
}

body.dark-theme {
  background-image:
    radial-gradient(at top left, #1e1b4b 0%, transparent 40%),
    radial-gradient(at top right, #0f172a 0%, transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

body.dark-theme .floating-nav {
  background: #ffffff !important;
  /* Force solid white for maximum contrast */
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .floating-nav a {
  color: #000000 !important;
  /* Absolute black */
}

body.dark-theme .floating-nav .btn-mulai {
  color: #ffffff !important;
  background: var(--primary) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  background-image:
    radial-gradient(at top left, #eef2ff 0%, transparent 40%),
    radial-gradient(at top right, #f0f9ff 0%, transparent 40%),
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: var(--text-b);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ============================================================
   COMPONENTS
   ============================================================ */
.section-badge {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: var(--bg);
  color: var(--text-h);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   NAVBAR & LOGO
   ============================================================ */
.navbar-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 32px 0;
  z-index: 50;
}

.navbar-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--logo-color);
}

.lang-switcher {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-b);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.logo-svg {
  height: 44px;
  width: auto;
}

/* Floating Nav */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 8px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 1000;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: max-content;
  max-width: 95vw;
}

.floating-nav.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-nav a {
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 800 !important;
  color: #000000 !important;
  text-decoration: none !important;
  transition: var(--transition);
}

.floating-nav a:hover {
  color: var(--primary) !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

.floating-nav a.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.floating-nav a:active {
  transform: scale(0.95);
}

.floating-nav .btn-mulai {
  background: var(--primary);
  color: #fff !important;
  margin-left: 6px;
  padding: 10px 18px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .floating-nav {
    padding: 4px;
    gap: 0;
  }

  .floating-nav a {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .floating-nav .btn-mulai {
    padding: 6px 12px;
    margin-left: 2px;
    font-size: 0.7rem;
  }
}

/* ============================================================
   HERO & GLASS CODE
   ============================================================ */
.hero {
  padding: 180px 0 100px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-b);
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glass {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: var(--bg-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  animation: hero-float 7s ease-in-out infinite;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

.hero-glass .controls {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f56;
}

.dot-y {
  background: #ffbd2e;
}

.dot-g {
  background: #27c93f;
}

.code-line {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-b);
  border-bottom: 1px solid var(--border);
}

.text-cyan {
  color: var(--primary);
  font-weight: 600;
}

.text-purple {
  color: var(--accent);
}

.text-comment {
  color: var(--text-muted);
  font-style: italic;
}

.floating-promo {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 1001;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 640px) {
  .floating-promo {
    bottom: 80px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.75rem;
  }
}

.card-stat {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.card-stat h2 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
}

.card-stat p {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 320px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-info {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: var(--bg-subtle);
  min-height: 100px;
}

.portfolio-info div {
  flex: 1;
}

.portfolio-info h4 {
  color: var(--text-h);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}

.portfolio-info p {
  color: var(--text-b);
  font-size: 0.9rem;
  font-weight: 500;
}

.portfolio-info .text-cyan {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 16px;
  background: var(--primary-glow);
  border-radius: 10px;
  transition: var(--transition);
}

.portfolio-card:hover .text-cyan {
  background: var(--primary);
  color: #fff;
}

.portfolio-card:hover h4 {
  color: var(--primary);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.price-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.price-card.popular {
  border: 2px solid var(--primary);
}

.plan-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.price-val {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-h);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-val small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.price-card ul {
  margin-bottom: 40px;
  flex-grow: 1;
  list-style: none;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-b);
}

.price-card li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.price-card li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

#testimoni {
  overflow: hidden;
}

.testimonials-wrapper {
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  padding: 40px 0;
}

.testimonials-track {
  display: flex;
  gap: 32px;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 16px));
  }
}

.testimonial-card {
  width: 380px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .testimonial-card {
    width: 300px;
    padding: 24px;
  }
}

.stars {
  color: #f59e0b;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-b);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  border-radius: 40px;
  padding: 100px 40px;
  text-align: center;
  color: #fff !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 100px;
  box-shadow: 0 30px 60px rgba(79, 70, 229, 0.4);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  animation: rotate-glow 15s linear infinite;
  z-index: 1;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 5;
}

.cta-box h2 {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cta-box p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.cta-box .btn-white {
  background: #ffffff !important;
  color: #4f46e5 !important;
  font-size: 1.1rem;
  padding: 18px 44px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-box .btn-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: #ffffff !important;
}

/* Footer */
.footer {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer .nav-logo {
    justify-content: center;
  }
}

.footer h4 {
  font-family: var(--font-h);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-h);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer a {
  color: var(--text-b);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}