/* ==========================================
   Design Tokens & CSS Variables
   ========================================== */
:root {
  --bg-base: #09090b;
  --bg-card: #141417;
  --bg-card-hover: #1e1e24;
  
  --primary: #4ADE80; /* Branding vibrant green */
  --primary-glow: rgba(74, 222, 128, 0.15);
  --teal-accent: #1D9E75;
  --blue-accent: #378ADD;
  --amber-accent: #BA7517;
  --red-accent: #E24B4A;
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0AB;
  --text-muted: #71717A;
  
  --border-color: #27272A;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Base Styles & Reset
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
}

body {
  line-height: 1.6;
}

/* ==========================================
   Layout Containers
   ========================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Header
   ========================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

/* ==========================================
   Hero & Interactive Showcase Section
   ========================================== */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, rgba(9, 9, 11, 0) 75%);
  z-index: -1;
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 52px;
  }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 550px;
}

@media (max-width: 767px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-btn {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-base);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.3);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* ==========================================
   Showcase Container (Interactive Phone Mockup)
   ========================================== */
.showcase-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-frame {
  width: 290px;
  height: 580px;
  background: #0A0A0C;
  border-radius: 40px;
  border: 3px solid #27272A;
  box-shadow: var(--shadow-lg), 0 0 0 8px #18181B;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

/* Responsive Scaling for small screens */
@media (max-width: 380px) {
  .phone-frame {
    transform: scale(0.85);
    transform-origin: center center;
    margin: -35px 0;
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0D0D11;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Notch & Status Bar */
.notch-bar {
  width: 100px;
  height: 20px;
  background: #000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notch-camera {
  width: 6px;
  height: 6px;
  background: #18181B;
  border-radius: 50%;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  z-index: 4;
}

/* Screen Switcher Body */
.phone-screens-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.phone-tab-content {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 20px 14px 14px; /* Slightly increased bottom padding */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
  display: block; /* Crucial: Changed from flex to block layout so settings children do not shrink */
}

.phone-tab-content.active-screen {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.phone-tab-content::-webkit-scrollbar {
  width: 3px;
}
.phone-tab-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* Phone Nav Bar */
.phone-nav-bar {
  height: 50px;
  background: #131317;
  border-top: 1px solid #1E1E24;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 3;
}

.phone-nav-btn {
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.phone-nav-btn.active-btn {
  color: var(--teal-accent);
  background: rgba(29, 158, 117, 0.15);
}

/* Mockup Components */
.mockup-app-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.mockup-card {
  background: #18181C;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  text-align: center;
}

.mockup-badge-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.mockup-badge-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.mockup-carrier {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mockup-detail-text {
  font-size: 10px;
  color: var(--teal-accent);
  font-weight: 600;
}

.mockup-btn {
  background: var(--teal-accent);
  color: #fff;
  padding: 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 12px;
}

.mockup-btn-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

.mockup-stat-box {
  background: #141418;
  border: 1px solid #1E1E22;
  border-radius: 10px;
  padding: 8px 2px;
  text-align: center;
}

.mockup-stat-num {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.mockup-stat-label {
  font-size: 7px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Log Mockup Styling */
.mockup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mockup-header-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.mockup-clear-log {
  font-size: 10px;
  color: var(--teal-accent);
  cursor: pointer;
}

.mockup-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-log-item {
  background: #141418;
  border: 1px solid #1E1E22;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-log-details {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-log-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mockup-log-from, .mockup-log-to {
  font-size: 10px;
  font-weight: 600;
}

.mockup-log-arrow {
  font-size: 8px;
  color: var(--text-muted);
}

.mockup-log-time {
  font-size: 8px;
  color: var(--text-muted);
}

/* Settings Mockup Styling */
.mockup-settings-section-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--teal-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 6px; /* Increased top margin for section hierarchy */
  padding-left: 2px;
}

.mockup-settings-group {
  background: #141418;
  border: 1px solid #1E1E22;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px; /* Increased card margin bottom */
}

.mockup-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px; /* Increased row padding for better touch targets and spacing */
  border-bottom: 1px solid #1E1E22;
}

.mockup-settings-row:last-child {
  border-bottom: none;
}

/* Layout align & stacking settings text correctly */
.mockup-settings-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  margin-right: 12px;
  text-align: left;
}

.mockup-settings-row-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.mockup-settings-row-sub {
  display: block;
  font-size: 8.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.25;
}

.mockup-toggle {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: #2D2D35;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.mockup-toggle.active {
  background: var(--teal-accent);
}

.mockup-toggle-knob {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-toggle.active .mockup-toggle-knob {
  transform: translateX(12px);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
  padding: 60px 0;
  background: rgba(20, 20, 23, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
}

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

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================
   Download Section
   ========================================== */
.download-section {
  padding: 60px 0;
  text-align: center;
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
}

.download-box h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: #080808;
  border: 1.5px solid rgba(255, 255, 255, 0.596);
  border-radius: 12px;
  padding: 0 20px;
  height: 50px;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  font-family: var(--font-main);
  min-width: 165px;
}

.store-badge:hover {

  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.store-badge .badge-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store-badge .badge-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.store-badge .badge-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

/* Image / SVG-based store badges (Huawei, IzzyOnDroid) */
.badge-img-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  vertical-align: middle;
}

.badge-img-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.badge-img-link img {
  display: block;
}

.badge-img-link svg {
  display: block;
  border-radius: 8px;
}


.support-section {
  padding: 60px 0 80px;
}

.support-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}

.support-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.support-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.support-btn:active {
  transform: translateY(0);
}

.support-btn i {
  font-size: 14px;
}

.support-btn.btn-upi {
  background-color: var(--primary);
  color: var(--bg-base);
}

.support-btn.btn-github {
  background-color: #ea4aaa;
  color: #fff;
}

/* Override Ko-fi widget to match support-btn */
.support-buttons-row .kofi-button {
  height: 36px !important;
  padding: 0 18px !important;
  border-radius: 30px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2) !important;
  transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out !important;
  cursor: pointer !important;
  border: none !important;
  font-family: var(--font-main) !important;
  background-color: #FF5E5B !important;
}

.support-buttons-row .kofi-button:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

.support-buttons-row .kofi-button:active {
  transform: translateY(0) !important;
}

.support-buttons-row .kofitext {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: #fff !important;
}

.support-buttons-row .kofiimg {
  margin: 0 !important;
  height: 14px !important;
  width: auto !important;
}

.support-buttons-row .btn-container {
  display: inline-flex !important;
  margin: 0 !important;
}


/* ==========================================
   Footer
   ========================================== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================
   Responsiveness & Mobile Optimizations
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .logo {
    font-size: 18px;
    gap: 8px;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
  }
  .nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-section {
    padding: 40px 0 50px;
  }
}

