/* ==========================================================================
   ProfitTracker Pro - Exclusive Luxury Emerald Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Emerald Palette */
  --bg-darkest: #040f0c;
  --bg-deep: #071914;
  --bg-card: rgba(11, 33, 27, 0.7);
  --bg-card-hover: rgba(16, 48, 39, 0.85);
  --bg-glass: rgba(14, 43, 35, 0.55);

  --border-subtle: rgba(52, 211, 153, 0.15);
  --border-glow: rgba(52, 211, 153, 0.4);
  --border-gold: rgba(245, 158, 11, 0.35);

  --emerald-primary: #10b981;
  --emerald-light: #34d399;
  --emerald-neon: #05f292;
  --emerald-dark: #064e3b;
  --emerald-glow: 0 0 35px rgba(16, 185, 129, 0.35);

  --gold-accent: #f59e0b;
  --gold-light: #fcd34d;
  --gold-glow: 0 0 25px rgba(245, 158, 11, 0.25);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-emerald: #6ee7b7;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(5, 242, 146, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 35%);
  background-attachment: fixed;
}

/* Background grid ambient */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
              linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

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

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--emerald-light) 75%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 15, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border-glow);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  background: #061914;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  border-color: var(--emerald-light);
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.logo-title span {
  color: var(--emerald-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
  white-space: nowrap;
}

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

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Nav Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: rgba(14, 43, 35, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.15);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* Unified Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  height: 42px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-sizing: border-box;
  white-space: nowrap; /* CRITICAL: Never break button text into multiple lines */
}

/* Button Portal: Refined, Clean, Matching Font & Height */
.btn-portal {
  background: rgba(14, 43, 35, 0.65);
  color: #e2e8f0;
  border: 1.5px solid rgba(52, 211, 153, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  height: 42px;
}

.btn-portal:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-light);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.btn-portal .btn-icon {
  width: 15px;
  height: 15px;
  color: var(--gold-accent);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-portal:hover .btn-icon {
  color: #fbbf24;
  transform: rotate(-15deg);
}

/* Header CTA Button */
.btn-header-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04140e;
  font-weight: 700;
  padding: 0 22px;
  font-size: 0.9rem;
  height: 42px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
  color: #020d09;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04140e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
  height: 46px;
  padding: 0 26px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #020d09;
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #04140e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  height: 44px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  height: 46px;
  padding: 0 26px;
}

.btn-secondary:hover {
  border-color: var(--emerald-light);
  background: var(--bg-card-hover);
  color: #fff;
}

.btn-lg {
  height: 52px;
  padding: 0 34px;
  font-size: 1.05rem;
}

/* Badges & Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--emerald-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-tag {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.guarantee-micro {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Profit Simulator Section */
.simulator-section {
  padding: 60px 0;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-light), var(--gold-accent), transparent);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.sim-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.input-val-badge {
  color: var(--emerald-light);
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-family: var(--font-body);
  margin-left: auto;
}

.sim-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #0f362a;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 12px var(--emerald-neon);
  cursor: pointer;
  transition: var(--transition);
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sim-results {
  background: rgba(4, 15, 12, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.result-kpi-main {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.result-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: normal;
}

.result-value {
  font-size: clamp(1.8rem, 6.5vw, 2.8rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--emerald-light);
  margin-top: 4px;
  line-height: 1.15;
  word-break: break-all;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.breakdown-box {
  background: rgba(14, 43, 35, 0.4);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.1);
  box-sizing: border-box;
  min-width: 0;
}

.breakdown-box small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.breakdown-box strong {
  font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  font-family: var(--font-heading);
  color: #fff;
  display: block;
  margin-top: 4px;
  white-space: nowrap;
}

.margin-gauge {
  background: #0f362a;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.margin-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981, #05f292);
  width: 32%;
  transition: width 0.4s ease;
}

/* Pain vs Solution */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--emerald-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* Features Spreadsheet Showcase */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--emerald-light);
}

/* Pricing Section */
.pricing-card {
  background: linear-gradient(145deg, rgba(16, 48, 39, 0.9) 0%, rgba(7, 25, 20, 0.95) 100%);
  border: 2px solid var(--emerald-primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px 42px;
  max-width: 560px;
  margin: 20px auto 0;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.25);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #04140e;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap; /* CRITICAL: Never break into 3 lines */
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  z-index: 2;
  max-width: 90%;
  pointer-events: none;
}

.btn-pricing-checkout {
  width: 100%;
  height: 52px;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
  line-height: 1.25;
  box-sizing: border-box;
}

/* Responsive Simulator CTA Button */
.btn-sim-cta {
  width: 100%;
  min-height: 48px;
  height: auto;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  box-sizing: border-box;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04140e;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-sim-cta:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(16, 185, 129, 0.55);
  color: #020d09;
}

.price-display {
  margin: 28px 0;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.price-now {
  font-size: 3.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-top: 6px;
}

.price-now span {
  font-size: 1.2rem;
  color: var(--emerald-light);
  font-weight: 600;
}

.price-idr-sub {
  color: var(--emerald-light);
  font-weight: 600;
  margin-top: 6px;
  font-size: 1.1rem;
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-stars {
  color: var(--gold-accent);
  margin-bottom: 14px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-dark);
  border: 1px solid var(--emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--emerald-light);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

/* Footer & Legal */
.footer {
  background: #020806;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal / Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-deep);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--emerald-glow);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

/* ==========================================================================
   Responsive Architecture (Tablet & Mobile Optimized)
   ========================================================================== */

/* Mobile Navigation Drawer System */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mobile-only-cta {
  display: none;
}

/* Tablet Optimizations (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3rem);
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .pricing-card {
    padding: 40px 30px;
  }

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

  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile & Small Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(4, 15, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-subtle);
    padding: 30px 24px 50px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-menu-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.15rem;
    font-weight: 600;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
  }

  .mobile-only-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
  }

  .mobile-only-cta .btn {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
  }

  /* Keep Portal button visible in top bar on tablet, hide on small phone if needed */
  .header-portal-btn {
    display: inline-flex;
  }

  .sim-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .glass-panel {
    padding: 26px 20px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Smartphone & Compact Screen (max-width: 640px) */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header {
    padding: 10px 0;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  /* In mobile top bar, hide text or show compact portal button */
  .header-portal-btn span.portal-text {
    display: none;
  }

  .header-portal-btn {
    padding: 0 14px;
    height: 38px;
  }

  .nav-wrap .nav-cta-group .btn-header-cta {
    display: none; /* Accessible inside the mobile hamburger menu */
  }

  .hero {
    padding: 45px 0 30px;
  }

  .hero-tag {
    margin-bottom: 16px;
  }

  .badge-pill {
    font-size: 0.76rem;
    padding: 4px 10px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-actions .btn {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
  }

  .guarantee-micro {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
  }

  /* 1. Mobile Simulator Responsive Fixes (No more text/number clipping) */
  .simulator-section {
    padding: 35px 0;
  }

  .glass-panel {
    padding: 18px 12px !important;
    border-radius: 14px;
  }

  .sim-inputs {
    gap: 14px !important;
  }

  .input-group label {
    font-size: 0.82rem !important;
    gap: 6px !important;
  }

  .input-group label span.label-text {
    max-width: 65%;
    line-height: 1.3;
  }

  .input-val-badge {
    font-size: 0.78rem !important;
    padding: 2px 7px !important;
  }

  .sim-results {
    padding: 18px 12px !important;
    gap: 14px !important;
    border-radius: 12px;
  }

  .result-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.02em !important;
    line-height: 1.35 !important;
  }

  .result-value {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
    word-break: break-all;
  }

  .result-breakdown {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .breakdown-box {
    padding: 10px 12px !important;
  }

  .breakdown-box strong {
    font-size: 1.05rem !important;
  }

  /* 2. Mobile Pricing Card & Ribbon Fixes */
  .pricing-card {
    padding: 36px 16px 28px !important;
    border-radius: 16px;
  }

  .pricing-card h3 {
    font-size: 1.4rem !important;
    margin-top: 6px !important;
    line-height: 1.25;
  }

  .ribbon {
    font-size: 0.64rem !important;
    padding: 4px 12px !important;
    top: -10px !important;
    letter-spacing: 0.02em !important;
  }

  .price-now {
    font-size: 2.7rem;
  }

  .price-idr-sub {
    font-size: 0.95rem;
  }

  /* 3. Mobile Checkout & Simulator Button Adjustments */
  .btn-pricing-checkout {
    font-size: 0.92rem !important;
    height: 48px !important;
    padding: 0 12px !important;
  }

  .btn-sim-cta {
    font-size: 0.84rem !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Prevent auto-zoom on iOS inputs */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  .btn-sim-cta {
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
    min-height: 40px !important;
  }
  .btn-pricing-checkout {
    font-size: 0.82rem !important;
    padding: 8px 10px !important;
  }
}


