@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Deep Black Theme */
  --bg-color: #000000;
  --surface: #0a0a0a;
  --surface-hover: #141414;
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  
  /* Neon Accents */
  --accent-purple: #c026d3;
  --accent-cyan: #06b6d4;
  --accent-glow: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(192, 38, 211, 0.15);
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --bento-gap: 24px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .brand {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: calc(var(--nav-height) + 100px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background Ambient Glow */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.1) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: float 6s ease-in-out infinite;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.hero h1 .text-glow {
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.subtitle {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
}

/* Ultra Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-glow {
  background: var(--text-primary);
  color: var(--bg-color);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-appstore {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-appstore:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.btn-appstore svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.appstore-text .small-text {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
}

.appstore-text .large-text {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Bento Grid Area (The core redesign feature)
   ========================================================================== */
.bento-section {
  padding: 60px 0 120px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: var(--bento-gap);
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Abstract Grid Background for Cards */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.bento-card:hover {
  transform: scale(0.98);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 80px rgba(192, 38, 211, 0.05);
}

.bento-card > * {
  z-index: 1;
  position: relative;
}

/* Grid Spanning Rules */
.bento-large {
  grid-column: span 4;
  grid-row: span 2;
  padding: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.iphone-frame-wrapper {
  position: relative;
  width: 260px;
  height: 563px;
  transform: perspective(1000px) rotateX(15deg) rotateY(-15deg) rotateZ(5deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(-20px 30px 40px rgba(0,0,0,0.8)) drop-shadow(0 0 60px rgba(192, 38, 211, 0.2));
  margin: 40px 0;
}

.bento-large:hover .iphone-frame-wrapper {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8)) drop-shadow(0 0 80px rgba(6, 182, 212, 0.3));
}

.iphone-frame {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  border: 8px solid #141414;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1), 0 0 0 1px rgba(255,255,255,0.1);
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #141414;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-square {
  grid-column: span 1;
}

/* Bento Content Styling */
.bento-icon {
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  fill: none;
}

.bento-content {
  margin-top: 40px;
}

.bento-card h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-bottom {
  margin-top: 60px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   Text Pages (Dukungan, Kebijakan, Ketentuan)
   ========================================================================== */
.text-page {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 120px;
}

.text-container {
  max-width: 800px;
  margin: 0 auto;
}

.text-container h1 {
  font-size: 48px;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.text-container .date-meta {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-cyan);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 60px;
}

.text-container h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-top: 60px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.text-container p, 
.text-container li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.text-container ul {
  padding-left: 24px;
  margin-bottom: 32px;
}

.text-container li {
  margin-bottom: 12px;
}

.text-container b, 
.text-container strong {
  color: var(--text-primary);
  font-weight: 600;
}

.text-container a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-purple);
  text-underline-offset: 4px;
}

.text-container a:hover {
  color: var(--accent-cyan);
  text-decoration-color: var(--accent-cyan);
}

/* ==========================================================================
   Enterprise / Organization Section
   ========================================================================== */
.enterprise-section {
  padding: 0 0 120px;
}

.enterprise-card {
  background: linear-gradient(145deg, var(--surface), #050505);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.enterprise-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.enterprise-card h2 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.enterprise-card p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 48px;
}

.enterprise-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.enterprise-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.enterprise-benefits li svg {
  color: var(--accent-purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.enterprise-benefits li b {
  color: var(--text-primary);
  font-size: 16px;
}

.enterprise-action .btn:hover {
  box-shadow: 0 10px 25px -5px rgba(192, 38, 211, 0.4) !important;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large {
    grid-column: span 2;
  }
  .bento-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: clamp(40px, 10vw, 48px);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large, .bento-wide, .bento-tall, .bento-square {
    grid-column: span 1;
    grid-row: auto;
  }
  .bento-large {
    height: 400px; /* fixed height for image on mobile */
  }
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .enterprise-card {
    padding: 32px 24px;
  }
}
