/* ==========================================================================
   LucuTech (lucutech.my.id) - Modern Dynamic Design System
   ========================================================================== */

:root {
  /* Light Theme Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  /* Brand Accents */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #06b6d4 100%);
  --accent-soft: rgba(99, 102, 241, 0.1);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(99, 102, 241, 0.18);

  /* Layout & Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1140px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --nav-height: 74px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-elevated: rgba(17, 24, 39, 0.78);
  --bg-subtle: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent-soft: rgba(129, 140, 248, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 55px -12px rgba(99, 102, 241, 0.24);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
}

/* Ambient Dynamic Background Orbs */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

[data-theme="dark"] .bg-orb {
  opacity: 0.22;
}

.bg-orb--1 {
  width: 460px;
  height: 460px;
  background: #6366f1;
  top: -120px;
  left: -100px;
}

.bg-orb--2 {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  top: 25%;
  right: -120px;
  animation-delay: -6s;
}

.bg-orb--3 {
  width: 340px;
  height: 340px;
  background: #8b5cf6;
  bottom: -100px;
  left: 35%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -22px) scale(1.06); }
  100% { transform: translate(-20px, 24px) scale(0.96); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand__tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.nav-link.is-active {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.mobile-drawer.is-open {
  display: block;
  animation: slideDown 0.22s ease-out;
}

.mobile-drawer .nav-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.mobile-drawer .nav-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.94rem;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(99, 102, 241, 0.6);
}

.btn--secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 72px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__desc {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item__val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-item__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual Card */
.hero-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent-gradient);
}

.dev-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.dev-profile__avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}

.dev-profile__name {
  font-size: 1.1rem;
  font-weight: 800;
}

.dev-profile__domain {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.mini-apps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: transform var(--transition), border-color var(--transition);
}

.mini-app:hover {
  transform: translateX(4px);
  border-color: var(--accent-primary);
}

.mini-app__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-app__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.mini-app__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.mini-app__cat {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mini-app__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 68px 0;
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.section__title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section__subtitle {
  margin-top: 8px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* Filter Chips */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* App Showcase Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.35);
}

.app-card.is-hidden {
  display: none;
}

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.4);
}

.app-status {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.app-card__title {
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
}

.app-card__desc {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.app-card__footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
}

.app-card__tag {
  color: var(--text-muted);
}

.app-card__link {
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-card__link:hover {
  text-decoration: underline;
}

/* Values / Principles Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pillar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Contact / Developer Verification Banner */
.contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  font-weight: 600;
}

.copy-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: all var(--transition);
}

.copy-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* ==========================================================================
   Legal Pages (Privacy & Terms)
   ========================================================================== */
.legal-hero {
  padding: 54px 0 28px;
  border-bottom: 1px solid var(--border-color);
}

.legal-hero__title {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.legal-hero__meta {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-layout {
  padding: 44px 0 72px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.legal-toc__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.legal-toc a:hover {
  color: var(--accent-primary);
  background: var(--accent-soft);
}

.legal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 10px 0 16px 20px;
  list-style: disc;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-note {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent-primary);
  font-size: 0.93rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 44px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.footer__desc {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer__heading {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid,
  .contact-box,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .apps-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .navbar .nav-menu--desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .apps-grid,
  .pillars-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .hero__meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .contact-box,
  .legal-content {
    padding: 24px;
  }
}
