/* Akararta — landing styles */
/* Primary: #074799 */

:root {
  --primary: #074799;
  --primary-light: #0a5cbf;
  --primary-dark: #053670;
  --primary-soft: rgba(7, 71, 153, 0.12);
  --primary-soft-hover: rgba(7, 71, 153, 0.2);
  
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 20px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary-soft: rgba(7, 71, 153, 0.25);
  --primary-soft-hover: rgba(7, 71, 153, 0.4);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Theme toggle: desktop = fixed via .nav-theme-item; mobile = dalam drawer */
.nav-theme-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-theme-label {
  display: none;
}

.theme-toggle {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
  .nav-theme-item {
    position: fixed;
    top: 1.25rem;
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    z-index: 1000;
  }

  .nav-theme-item .theme-toggle {
    display: block;
  }
}

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:focus-visible .theme-toggle-track {
  box-shadow: var(--shadow), 0 0 0 3px var(--primary-soft-hover);
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 3.75rem;
  height: 2rem;
  padding: 3px;
  border-radius: 9999px;
  background: #e8ecf1;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition), border-color var(--transition),
    background var(--transition);
}

[data-theme="dark"] .theme-toggle-track {
  background: #1e2939;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.theme-toggle:hover .theme-toggle-track {
  border-color: rgba(7, 71, 153, 0.35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), var(--shadow);
}

[data-theme="dark"] .theme-toggle:hover .theme-toggle-track {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), var(--shadow);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 4.5px);
  border-radius: 9999px;
  background: var(--bg-elevated);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(calc(100% + 3px));
}

.theme-toggle-slot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 1.375rem;
}

.theme-toggle-svg {
  display: block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.theme-toggle-svg--sun {
  color: var(--primary);
  transform: scale(1);
}

.theme-toggle-svg--moon {
  color: var(--text-muted);
  transform: scale(0.96);
}

[data-theme="dark"] .theme-toggle-svg--sun {
  color: var(--text-muted);
  transform: scale(0.96);
}

[data-theme="dark"] .theme-toggle-svg--moon {
  color: var(--primary-light);
  transform: scale(1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.85);
}

.header.scrolled {
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--text);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(80px);
  opacity: 0.6;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: -80px;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 40%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 71, 153, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
}

/* Section common */
.section-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* Elevator pitch */
.pitch {
  padding: 4rem 0 5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.pitch-inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.pitch-inner .section-badge {
  margin-bottom: 1rem;
}

.pitch-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  text-align: left;
}

.pitch-text strong {
  color: var(--text);
}

/* Services */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-elevated);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* About */
.about {
  padding: 5rem 0;
  background: var(--primary-soft);
}

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

.about-content .section-badge {
  margin-bottom: 0.75rem;
}

.about-content .section-title {
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-features {
  list-style: none;
}

.about-features li {
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--text);
}

.about-features li::before {
  content: "";
}

.about-quote {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.about-visual {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-card {
  background: var(--bg-elevated);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 160px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.about-card:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.about-stat {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(60px);
}

.cta-shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
}

.cta-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -50px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-inner {
  text-align: center;
  color: white;
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: #f1f5f9;
}

.cta .btn-outline {
  border-color: white;
  color: white;
}

.cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.visible:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll.visible:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll.visible:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll.visible:nth-child(4) { transition-delay: 240ms; }
.animate-on-scroll.visible:nth-child(5) { transition-delay: 320ms; }
.animate-on-scroll.visible:nth-child(6) { transition-delay: 400ms; }
.animate-on-scroll.visible:nth-child(7) { transition-delay: 480ms; }
.animate-on-scroll.visible:nth-child(8) { transition-delay: 560ms; }
.animate-on-scroll.visible:nth-child(9) { transition-delay: 640ms; }

/* Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-theme-item {
    margin-top: auto;
    width: 100%;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .nav-theme-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }

  .theme-toggle-track {
    width: 3.5rem;
    height: 1.875rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    max-height: 100dvh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 2rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 200;
  }

  .nav-links > li:not(.nav-theme-item) > a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 250;
  }
  
  .hero {
    padding-top: 5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .about-visual {
    flex-direction: column;
  }
}
