:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --secondary: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

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

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.08;
}

/* Ambient Background */
.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08), transparent 25%);
  pointer-events: none;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: white;
}

.nav-btn {
  background: white;
  color: var(--bg-dark);
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.nav-btn:hover {
  transform: translateY(-2px);
}

.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.glass-nav .nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.glass-nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.glass-nav .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

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

.glass-nav .mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 86px;
  left: 16px;
  right: 16px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
}

.mobile-menu.active {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: white;
}

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

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -10px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

.visual-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-1 {
  width: 280px;
  height: 380px;
  top: 0;
  right: 40px;
  z-index: 3;
  transform: rotate(-3deg);
}

.card-2 {
  width: 240px;
  height: 320px;
  bottom: 20px;
  right: 180px;
  z-index: 2;
  transform: rotate(5deg);
}

.card-3 {
  width: 200px;
  height: 260px;
  top: 40px;
  right: 0;
  z-index: 1;
  opacity: 0.6;
  transform: rotate(12deg);
}

.hero-visual:hover .card-1 { transform: translateY(-10px) rotate(-5deg) scale(1.05); }
.hero-visual:hover .card-2 { transform: translateY(10px) rotate(3deg) scale(1.05); }

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 32px;
}

.app-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 24px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* Tools Section */
.tools-section {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.2);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tool-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.3s;
}

.tool-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.tool-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tool-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Ads Section */
.ads-section {
  padding: 40px 0;
  text-align: center;
}

.ad-container {
  max-width: 728px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 20px;
  border: 1px dashed var(--border);
}

.ad-container p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.ad-placeholder {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}

.ad-placeholder p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.glass-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 28px;
  background: #0f172a;
}

.glass-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 34px;
}

.glass-footer .footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.glass-footer .footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
}

.glass-footer .footer-links h3,
.glass-footer .footer-social h3 {
  margin-bottom: 18px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.glass-footer .footer-links ul {
  list-style: none;
}

.glass-footer .footer-links li {
  margin-bottom: 10px;
}

.glass-footer .footer-links a,
.glass-footer .footer-social a {
  color: var(--text-main);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.glass-footer .footer-links a:hover,
.glass-footer .footer-social a:hover {
  opacity: 1;
  color: var(--primary);
}

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

.glass-footer .footer-bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  background: #0f172a;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

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

.link-group h4 {
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.link-group a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 12px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.link-group a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

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

  .hero-subtitle {
    margin: 0 auto 40px;
  }

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

  .hero-visual {
    height: 400px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }
  
  .card-1 { right: auto; transform: rotate(-3deg) translateX(-40px); }
  .card-2 { right: auto; transform: rotate(5deg) translateX(40px); }
  .card-3 { display: none; }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nav-links {
    display: none; /* Mobile menu to be implemented if needed */
  }

  .glass-nav .mobile-menu-btn {
    display: flex;
  }

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

/* --- NEW ICON STYLES --- */
/* Card Inner Styling for Icons */
.card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.card-inner i {
  font-size: 4rem;
  margin-bottom: 15px;
}

.card-inner span {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-bg-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-bg-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-bg-3 { background: linear-gradient(135deg, #ec4899, #db2777); }

/* Updated Card Icon for Features */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.card-icon img {
  display: none; /* Hide old images if present */
}
