﻿/* ============================================
   Layout & Responsive Grid
   ============================================ */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Hero Section Layout */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 0 24px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 50%, var(--bg-dark) 100%); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary); margin-top: 20px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite; color: var(--text-muted); }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-12px); } 60% { transform: translateX(-50%) translateY(-6px); } }

/* Page Hero (shorter) */
.page-hero { padding: 160px 0 80px; text-align: center; position: relative; overflow: hidden; background: var(--bg-surface); border-bottom: 1px solid var(--glass-border); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.3; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); }
.page-hero .container { position: relative; z-index: 1; }

/* Split Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text { max-width: 540px; }

/* Stats Row */
.stats-row { display: flex; gap: 48px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Product Cards */
.product-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: 40px; text-align: center; transition: all var(--transition-base); }
.product-card:hover { border-color: var(--glass-border-hover); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-icon { width: 80px; height: 80px; border-radius: var(--radius-lg); margin: 0 auto 24px; overflow: hidden; }
.product-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { margin-bottom: 12px; }
.product-card p { margin: 0 auto 20px; font-size: 0.95rem; }
.product-card .badges { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }

/* Blog Cards */
.blog-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base); }
.blog-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image { width: 100%; height: 200px; overflow: hidden; background: var(--bg-elevated); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 12px; }
.blog-card-body h3 a { color: var(--text-primary); }
.blog-card-body h3 a:hover { color: var(--brand-primary); }
.blog-card-body p { font-size: 0.9rem; margin-bottom: 16px; }
.blog-card-link { font-size: 0.9rem; font-weight: 600; color: var(--brand-primary); }

/* Screenshot Gallery */
.screenshot-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 20px 0; }
.screenshot-gallery::-webkit-scrollbar { display: none; }
.screenshot-item { width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border);  transition: transform var(--transition-base); box-shadow: var(--shadow-md); }
.screenshot-item:hover { transform: scale(1.03); }
.screenshot-item img { width: 100%; height: auto; }

/* Tool Cards */
.tool-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition-base); display: flex; flex-direction: column; }
.tool-card:hover { border-color: var(--brand-primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.tool-card-icon { font-size: 2rem; margin-bottom: 16px; }
.tool-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.tool-card p { font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-primary); border: 3px solid var(--bg-dark); }
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 1px; }
.timeline-item h3 { margin: 8px 0; font-size: 1.1rem; }
.timeline-item p { font-size: 0.9rem; }

/* Newsletter Banner */
.newsletter { background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(124,58,237,0.1)); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: 64px; text-align: center; }
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 24px auto 0; }
.newsletter-form input { flex: 1; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-row { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .newsletter { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .split-text { max-width: 100%; }
  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-large { width: 100%; justify-content: center; }
}





