/* ==========================================================================
   Intellibanks Modern Dark Theme Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #080C14;
  --bg-card: rgba(18, 25, 38, 0.65);
  --bg-card-hover: rgba(24, 34, 52, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-glow: rgba(0, 242, 254, 0.35);
  
  --primary-cyan: #00F2FE;
  --primary-blue: #00C6FF;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --accent-glow: rgba(0, 242, 254, 0.15);
  --gradient-text: linear-gradient(135deg, #00F2FE 0%, #38BDF8 50%, #00C6FF 100%);
  --gradient-btn: linear-gradient(135deg, #00F2FE 0%, #00C6FF 100%);
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  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-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 198, 255, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 20, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-btn);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: #04101A;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-cyan);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Hero Content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cyan-gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Action Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #04101A;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.hero-compatibility {
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* Hero App Mockup Display */
.app-mockup-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 100%;
}

.app-mockup {
  background: #0E1624;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.12);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
  width: 100%;
  max-width: 100%;
}

.app-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  background: #141E30;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-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-bar {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.mockup-sidebar {
  background: rgba(10, 16, 26, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 10px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sidebar-item.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
}

.mockup-content {
  padding: 16px;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mockup-toolbar-title {
  font-weight: 700;
  font-size: 0.875rem;
}

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

.mockup-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mockup-card svg {
  width: 20px;
  height: 20px;
  color: var(--primary-cyan);
}
.mockup-card-title {
  font-size: 0.75rem;
  font-weight: 600;
}
.mockup-card-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.storage-meter {
  margin-top: 18px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.storage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  width: 4.2%;
  height: 100%;
  background: var(--primary-cyan);
}

/* Stats Section */
.stats-section {
  padding: 40px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card {
  padding: 20px 10px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-cyan);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

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

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

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

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

.features-grid .feature-card:first-child {
  grid-column: span 2;
}

.features-grid .feature-card:nth-child(2) {
  grid-column: span 1;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--bg-card-border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 242, 254, 0.15);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  margin-bottom: 20px;
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Downloads Section */
.download-section {
  padding: 80px 0 100px;
}

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

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.download-card.popular {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 0 16px 40px -10px rgba(0, 242, 254, 0.25);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-btn);
  color: #04101A;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.platform-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}
.platform-logo svg {
  width: 44px;
  height: 44px;
}

.platform-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-req {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.file-meta-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.download-btn {
  width: 100%;
  margin-bottom: 16px;
}

.arch-tags {
  display: flex;
  gap: 8px;
}

.arch-tag {
  font-size: 0.7rem;
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary-cyan);
  padding: 2px 8px;
  border-radius: 4px;
}

.download-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.download-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0 120px;
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item.open {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(20, 29, 44, 0.85);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;

}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-cyan);
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #05080E;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 48px);
}

.toast {
  background: #101B2B;
  border: 1px solid var(--primary-cyan);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
}

.toast.error {
  border-color: #FF5F56;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .features-grid .feature-card:first-child {
    grid-column: span 2;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header & Nav */
  .nav-container {
    flex-direction: flex-start;
    gap: 12px;
  }

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

  .nav-links {
    gap: 16px;
    font-size: 0.85rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.32;
    margin-bottom: 16px;
  }

  .cyan-gradient-text {
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 0.975rem;
    margin-bottom: 24px;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  /* Hero App Mockup Display Mobile Fixes */
  .app-mockup {
    transform: none !important;
  }

  .mockup-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mockup-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px;
    gap: 6px;
    scrollbar-width: none;
  }

  .mockup-sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-item {
    white-space: nowrap;
    margin-bottom: 0;
    padding: 6px 10px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .mockup-content {
    padding: 12px;
  }

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

  .mockup-card {
    padding: 10px 6px;
  }

  /* Stats Bar */
  .stats-section {
    padding: 30px 0;
  }

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

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Features Grid */
  .features-section {
    padding: 60px 0;
  }

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

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

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

  .features-grid .feature-card:first-child {
    grid-column: span 1;
  }

  .feature-card {
    padding: 24px 20px;
  }

  /* Downloads */
  .download-section {
    padding: 50px 0;
  }

  .download-card {
    padding: 28px 20px;
  }

  /* FAQ */
  .faq-section {
    padding: 50px 0 80px;
  }

  .faq-header {
    padding: 16px 18px;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-body {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .toast-container {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.34;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.8rem;
  }
}
