/* 
 * PhroneX Website — Premium Dark Design System
 * Colors: Deep Charcoal (#0A0E17), Gold (#D4A843), Emerald (#00E5A3)
 * Typography: Space Grotesk (Headings) + Inter (Body)
 */

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

:root {
  --bg-dark: #0A0E17;
  --bg-darker: #060910;
  --bg-card: #0D1321;
  --bg-card-hover: #131B2E;
  --bg-glass: rgba(13, 19, 33, 0.75);
  
  --accent-gold: #D4A843;
  --accent-gold-bright: #FFD166;
  --accent-gold-glow: rgba(212, 168, 67, 0.2);
  --accent-green: #00E5A3;
  --accent-red: #FF4D6A;
  
  --border-color: rgba(212, 168, 67, 0.12);
  --border-active: rgba(212, 168, 67, 0.4);
  
  --text-main: #F8FAFC;
  --text-sub: #94A3B8;
  --text-muted: #64748B;

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --shadow-gold: 0 10px 30px -10px rgba(212, 168, 67, 0.3);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

a:hover {
  color: var(--accent-gold-bright);
}

.text-gold {
  color: var(--accent-gold);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFF 0%, var(--accent-gold-bright) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Container & Utilities ────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-sub);
  font-weight: 400;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-gold-glow);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(212, 168, 67, 0.45);
  color: #000;
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  color: #FFF;
}

.btn-full {
  width: 100%;
}

/* ── Header & Navbar ──────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

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

/* Vector Brand Logo System */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-svg-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.18) 0%, rgba(13, 19, 33, 0.95) 100%);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.25);
  transition: all 0.3s ease;
}

.logo:hover .logo-svg-wrap {
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 24px rgba(212, 168, 67, 0.5);
  transform: scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #FFFFFF;
}

.logo-title .x-span {
  background: linear-gradient(135deg, #FFD166 0%, #D4A843 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-left: 1px;
}

.logo-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.9;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  font-size: 1.25rem;
}

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

.nav-links a {
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.95rem;
}

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

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: rgba(13, 19, 33, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.35);
}

.lang-btn:not(.active):hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */

.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  background: radial-gradient(circle at 50% 10%, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* Hero Visual Graphic (Mockups) */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #090E18;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-family: var(--font-display);
}

.mockup-body {
  padding: 24px;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.mock-stat-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.mock-stat-label {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-transform: uppercase;
}

.mock-stat-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}

.phone-notif-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 290px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-gold-bright);
  margin-bottom: 8px;
}

.phone-notif-body {
  color: var(--text-main);
  line-height: 1.4;
}

/* ── Problem vs Solution ──────────────────────────────────────────────────── */

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

.prob-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.prob-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.prob-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 106, 0.1);
  border: 1px solid rgba(255, 77, 106, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.prob-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.prob-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.sol-box {
  background: rgba(0, 229, 163, 0.06);
  border: 1px solid rgba(0, 229, 163, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--accent-green);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Features Section ─────────────────────────────────────────────────────── */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.feature-card.highlight {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12) 0%, var(--bg-card) 60%);
  border: 1px solid var(--accent-gold);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feat-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-gold-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card.highlight .feat-icon {
  margin-bottom: 24px;
}

.feat-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feat-text {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── How It Works ─────────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gold-glow);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold-bright);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-text {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* ── Pricing Section ──────────────────────────────────────────────────────── */

.pricing-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-gold);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 18px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 16px 0 4px 0;
}

.price-period {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;

}

.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── FAQ Section ──────────────────────────────────────────────────────────── */

.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-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--accent-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* ── Registration Form Section ────────────────────────────────────────────── */

.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.deposit-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 20px 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.checkbox-group input {
  margin-top: 3px;
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
}

/* ── Modals (ToS & Neutral QRIS Payment) ─────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);

}

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

.modal-close:hover {
  color: var(--text-main);
}

/* Neutral QRIS Payment Modal Styling */
.qris-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.qris-badge-neutral {
  display: inline-block;
  background: #FFF;
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 4px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.qris-code-box {
  background: #FFF;
  padding: 20px;
  border-radius: var(--radius-md);
  width: 220px;
  height: 220px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qris-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-summary {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-weight: 700;
}

.status-polling-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

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

.footer-brand p {
  margin-top: 16px;
  color: var(--text-sub);
  max-width: 360px;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
}

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

.disclaimer-box {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .hero-grid, .features-grid, .problem-grid, .steps-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.highlight {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: span 1;
  }
}
