/* ============================================================
   InfoBlend — Business Intelligence for SMMEs
   Author: Motlhasedi 🧠
   Version: 1.0.0
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --color-dark: #0f0f1a;
  --color-dark-alt: #1a1a2e;
  --color-dark-card: #16213e;
  --color-accent: #f7c906;
  --color-accent-hover: #e0b800;
  --color-text: #e0e0e0;
  --color-text-muted: #8892a0;
  --color-text-light: #ffffff;
  --color-border: rgba(247, 201, 6, 0.15);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(247, 201, 6, 0.08);
  --max-width: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 201, 6, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-light);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}

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

.nav-cta {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(247, 201, 6, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(247, 201, 6, 0.1);
  border: 1px solid rgba(247, 201, 6, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-light);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  color: var(--color-accent);
}

.hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-dashboard {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: var(--color-dark-alt);
  overflow: hidden;
}

.hero-dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-border);
}

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

.hero-dashboard-dot:nth-child(1) { background: #ff5f57; }
.hero-dashboard-dot:nth-child(2) { background: #ffbd2e; }
.hero-dashboard-dot:nth-child(3) { background: #28c840; }

.hero-dashboard-body {
  padding: 24px 20px;
}

.hero-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.hero-metric {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.hero-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.hero-metric-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-top: 12px;
  padding: 0 4px;
}

.hero-chart-bar-item {
  flex: 1;
  background: linear-gradient(to top, rgba(247, 201, 6, 0.1), rgba(247, 201, 6, 0.4));
  border-radius: 3px 3px 0 0;
  min-height: 8px;
  transition: var(--transition);
}

.hero-card-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  padding: 16px 20px;
  background: var(--color-dark-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-float-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247, 201, 6, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hero-card-float-text {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 600;
}

.hero-card-float-text small {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- Problem Section --- */
.problems {
  background: var(--color-dark-alt);
}

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

.problem-card {
  padding: 36px;
  background: var(--color-dark-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.problem-card:hover {
  border-color: rgba(247, 201, 6, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(247, 201, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(to right, var(--color-border), var(--color-accent), var(--color-border));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Features Section --- */
.features {
  background: var(--color-dark-alt);
}

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

.feature-card {
  padding: 32px;
  background: var(--color-dark-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-card:hover {
  border-color: rgba(247, 201, 6, 0.25);
  transform: translateY(-3px);
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(247, 201, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Dashboard Preview --- */
.dashboard-preview {
  background: var(--color-dark);
}

.mockup-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.mockup-browser {
  background: var(--color-dark-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border);
}

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

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-url {
  margin-left: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 6px;
  flex: 1;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-content {
  padding: 0;
}

.mockup-content img {
  width: 100%;
  display: block;
}

/* --- Pricing --- */
.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--color-dark-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: rgba(247, 201, 6, 0.3);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.pricing-amount .currency {
  font-size: 28px;
  vertical-align: super;
}

.pricing-period {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.pricing-check {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 16px;
}

.pricing-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* --- FAQ --- */
.faq {
  background: var(--color-dark-alt);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

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

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--color-text);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(247, 201, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-form {
  background: var(--color-dark-card);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(247, 201, 6, 0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.2);
  color: #28c840;
}

.form-status.error {
  display: block;
  background: rgba(255, 95, 87, 0.1);
  border: 1px solid rgba(255, 95, 87, 0.2);
  color: #ff5f57;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(247, 201, 6, 0.1);
  color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-metric-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-metric-value {
    font-size: 16px;
  }

  .hero-card-float {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

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

  .problems-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-grid::before {
    display: none;
  }

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

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

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

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

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .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);
  }

  .mockup-url {
    display: none;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-amount {
    font-size: 42px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-metric-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    flex-direction: column;
    gap: 12px;
  }

  .contact-form {
    padding: 24px 20px;
  }
}
