/* ==========================================================
   PT Pleistocent Teknologi Nusantara — Frosted Light Theme
   Distinctly different from Tracive (dark blue):
   - Light background with frosted glass cards
   - Space Grotesk (headings) + Outfit (body)
   - Soft gradients, warm gold accents
   ========================================================== */

/* ===== 1. Variables ===== */
:root {
  /* Core palette: light & airy */
  --bg:        #F4F7FA;
  --bg-warm:   #FAFBFD;
  --surface:   #FFFFFF;

  /* Text */
  --text-900:  #0C1B2E;
  --text-700:  #1E3A5F;
  --text-500:  #4A6580;
  --text-400:  #6B8299;
  --text-300:  #8FA3B8;

  /* Ice accent */
  --ice-600:   #2A8CBF;
  --ice-500:   #3BA3D9;
  --ice-400:   #5AB8E3;
  --ice-300:   #89D0EE;
  --ice-200:   #B8E3F5;
  --ice-100:   #E0F3FB;
  --ice-50:    #F0F9FD;

  /* Gold accent */
  --gold-600:  #9A7B2E;
  --gold-500:  #B8963E;
  --gold-400:  #C9A84C;
  --gold-300:  #D4B85C;
  --gold-200:  #E8D48A;
  --gold-100:  #F5EDCB;

  /* Semantic */
  --success:   #22C55E;
  --danger:    #EF4444;

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-h:   68px;
  --max-w:   1100px;
  --pad:     1.5rem;

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.10);
  --shadow-glass: 0 8px 32px rgba(42,140,191,0.08);

  /* Glass */
  --glass-bg:     rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.5);
  --glass-blur:   16px;
}

/* ===== 2. Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ice-500); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-900);
}

/* ===== 3. Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===== 4. Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(244,247,250,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { display: block; height: 38px; width: auto; }
.footer-brand .nav-logo img { height: 32px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-400);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-900); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Language Dropdown */
.lang-dropdown { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-sm);
  color: var(--text-500);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.lang-btn:hover { border-color: var(--ice-300); color: var(--text-700); }

.lang-flag { font-size: 1rem; line-height: 1; }

.lang-chevron { transition: transform 0.2s; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 100;
  overflow: hidden;
}
.lang-dropdown.open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  border: none;
  color: var(--text-500);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}
.lang-option:hover { background: var(--ice-50); color: var(--text-900); }
.lang-option.active { background: var(--ice-100); color: var(--ice-600); font-weight: 500; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-500); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(244,247,250,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.75rem 1rem;
  z-index: 999;
  flex-direction: column;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  color: var(--text-500);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.mobile-menu a:hover { background: var(--ice-50); color: var(--text-900); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .lang-label { display: none; }
}

/* ===== 5. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  color: #FFFFFF;
  box-shadow: 0 4px 24px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-500);
  border: 1.5px solid rgba(0,0,0,0.12);
}
.btn-ghost:hover {
  color: var(--text-900);
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.02);
}

/* ===== 6. Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, #E8F4FC 0%, #F4F7FA 35%, #FFF9EC 100%);
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Soft gradient orbs */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 25s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(90,184,227,0.18);
  top: -10%; right: -8%;
}
.orb-2 {
  width: 350px; height: 350px;
  background: rgba(201,168,76,0.12);
  bottom: 5%; left: -5%;
  animation-delay: -8s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: rgba(90,184,227,0.1);
  top: 50%; left: 30%;
  animation-delay: -15s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 620px;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: rgba(42,140,191,0.08);
  border: 1px solid rgba(42,140,191,0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--ice-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--text-900);
}

.text-gradient {
  background: linear-gradient(135deg, var(--ice-500) 0%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--text-400);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 500px;
}

.hero-actions, .product-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== 7. Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-400);
  line-height: 1.7;
}

/* ===== 8. About ===== */
.about {
  padding: 5.5rem 0;
  background: var(--bg-warm);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.glass-card {
  padding: 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--ice-100);
  color: var(--ice-600);
  margin-bottom: 1.1rem;
}

.glass-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.glass-card p {
  font-size: 0.88rem;
  color: var(--text-400);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== 9. Products ===== */
.products {
  padding: 5.5rem 0;
  background: var(--bg);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ice-600);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-badge-logo {
  width: 26px;
  height: 26px;
}

.product-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-400);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-list { margin-bottom: 1.75rem; }
.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-500);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

/* App Screenshots */
.product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;           /* prevent grid blowout */
}

.screenshot-pair {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 280px;       /* hard cap on the pair width */
}

.screenshot-frame {
  flex: 0 0 130px;        /* fixed width, no grow, no shrink */
  width: 130px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--surface);
  transition: transform 0.3s ease;
}
.screenshot-frame:nth-child(2) {
  margin-top: 2rem;
}
.screenshot-frame:hover {
  transform: translateY(-4px);
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .product-showcase {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    gap: 2rem;
  }
  .product-visual { order: -1; }
  .screenshot-pair { max-width: 240px; }
  .screenshot-frame { flex: 0 0 110px; width: 110px; }
}

/* ===== 10. Contact ===== */
.contact {
  padding: 5.5rem 0;
  background: var(--bg-warm);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.contact-item:hover { color: inherit; }

.contact-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.contact-item p {
  font-size: 0.82rem;
  color: var(--text-400);
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== 11. Footer ===== */
.footer {
  padding: 2.5rem 0 0;
  background: var(--surface);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand { max-width: 280px; }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-400);
  margin-top: 0.6rem;
}

.footer-nav { display: flex; gap: 3.5rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-400);
}
.footer-col a:hover { color: var(--text-900); }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-300);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-nav { gap: 2.5rem; }
}

/* ===== 12. Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.values-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.values-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.contact-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
