/* ============================================
   Page-Specific Styles for Landing Page
   (Shared styles in variables.css, base.css, effects.css, components.css)
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 16px 0;
    background: rgba(9, 10, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; }
.logo-box {
    width: 32px; height: 32px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    color: white;
}

/* Desktop Links */
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: 0.3s;
    position: relative;
}
.nav-links a:hover { color: white; }

.nav-actions { display: flex; gap: 12px; }

/* Hamburger Menu Icon (Hidden on Desktop) */
.mobile-toggle { 
    display: none; 
    font-size: 20px; 
    cursor: pointer; 
    color: white; 
    padding: 5px;
}

/* --- Mobile Menu Drawer --- */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(9, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu.active { display: flex; }

.mobile-link { 
    color: white; 
    text-decoration: none; 
    font-size: 1.1rem; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 12px; 
}

.mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

/* --- Buttons (page-specific overrides) --- */

/* Size Modifiers */
.btn-large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.full-width {
    width: 100%;
}

/* --- Hero Section --- */
.hero { padding-top: 160px; padding-bottom: 80px; text-align: center; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2);
    color: #d8b4fe; padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 500; margin-bottom: 32px;
}

.gradient-text-hero {
    font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px;
    background: linear-gradient(180deg, #fff, #cbd5e1);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 80px; }

/* --- 3D Hero Visual Container --- */
.hero-visual {
    max-width: 900px; height: 450px; margin: 0 auto;
    background: rgba(13, 14, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; position: relative; overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.visual-header { 
    height: 40px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    display: flex; align-items: center; padding: 0 16px; 
    background: rgba(0,0,0,0.4); 
}
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; display: inline-block; margin-right: 6px; }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.visual-address { 
    margin: 0 auto; font-size: 11px; color: #777; 
    background: rgba(0, 0, 0, 0.5); padding: 4px 16px; 
    border-radius: 100px; display: flex; align-items: center; 
}

.visual-content {
    height: calc(100% - 40px);
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0d0e14;
}

.visual-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.95;
    transition: transform 0.5s ease;
}

.hero-visual:hover .visual-content img { transform: scale(1.02); }

.visual-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, rgba(9, 10, 15, 0) 0%, rgba(9, 10, 15, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* --- FEATURES SECTION (BENTO GRID) --- */
.section-padding { padding: 100px 0; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: minmax(320px, auto);
    gap: 24px;
    max-width: 1100px;
    margin: 50px auto 0 auto;
}
.feature-card.span-2 { grid-column: span 2; }
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .feature-card.span-2 { grid-column: span 1; }
}

.feature-card {
    background-color: rgba(13, 14, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.feature-card::before {
    content: "";
    position: absolute;
    height: 100%; width: 100%; top: 0; left: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

.card-content {
    padding: 24px 32px 32px 32px;
    margin-top: auto;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(9,10,15,1) 0%, rgba(9,10,15,0) 100%);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
.text-purple { color: #a855f7; }
.text-blue { color: #3b82f6; }
.text-pink { color: #ec4899; }
.text-green { color: #10b981; }

/* Micro-UI Visuals */
.card-visual { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ai-visual { background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent 60%); display: flex; justify-content: center; padding-top: 60px; }
.ui-prompt-bar { width: 80%; height: 50px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; display: flex; align-items: center; padding: 0 16px; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(5px); transition: transform 0.5s ease; }
.feature-card:hover .ui-prompt-bar { transform: translateY(-10px) scale(1.02); }
.ui-dots { width: 8px; height: 8px; background: #555; border-radius: 50%; box-shadow: 12px 0 #555; }
.ui-text-line { height: 6px; width: 120px; border-radius: 4px; color: #777; font-size: 12px; font-style: italic; opacity: 0.5; background: currentColor; }
.ui-btn-icon { margin-left: auto; width: 28px; height: 28px; background: linear-gradient(135deg, #a855f7, #ec4899); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; }

.speed-visual { background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 70%); display: flex; align-items: center; justify-content: center; padding-bottom: 40px; }
.speed-gauge { width: 100px; height: 100px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.1); border-top-color: #3b82f6; border-right-color: #3b82f6; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); transform: rotate(-45deg); }
.speed-gauge > * { transform: rotate(45deg); }
.score { font-size: 32px; font-weight: 800; color: white; }
.label { font-size: 10px; color: #3b82f6; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

.dnd-visual { background: radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1), transparent 60%); }
.ui-block { width: 60px; height: 60px; border-radius: 12px; position: absolute; top: 25%; left: 30%; }
.static { border: 2px dashed rgba(255,255,255,0.1); }
.floating { background: linear-gradient(135deg, #2a2c35, #15161c); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 15px 30px rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 2; transition: all 0.5s ease; left: 30%; top: 25%; }
.feature-card:hover .floating { transform: translate(30px, 30px) rotate(5deg); }
.cursor-icon { position: absolute; bottom: -15px; right: -15px; color: white; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); font-size: 18px; }

.code-visual { background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 60%); padding: 40px; }
.ui-code-window { width: 100%; background: rgba(0,0,0,0.3); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.code-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.indent { margin-left: 20px; background: rgba(16, 185, 129, 0.2); }

/* --- NEW: TEMPLATES SECTION (MOCKUPS) --- */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.template-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    transition: 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
}

.mockup-window {
    background: #1a1b26;
    height: 220px;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.mockup-header {
    height: 24px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    padding-left: 12px;
    gap: 6px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #444; }

.mockup-body {
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}

/* CSS-drawn Websites */
.m-nav { width: 100%; height: 10px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.m-hero-text { width: 60%; height: 20px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.m-hero-btn { width: 25%; height: 12px; background: #3b82f6; border-radius: 100px; }
.m-hero-img { width: 100%; height: 60px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-top: auto; }

.portfolio-theme .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.m-card { height: 40px; background: rgba(255,255,255,0.08); border-radius: 4px; }

.commerce-theme .m-banner { height: 50px; background: rgba(236, 72, 153, 0.2); border-radius: 4px; }
.commerce-theme .m-row { display: flex; gap: 8px; margin-top: 8px; }
.m-prod { flex: 1; height: 40px; background: rgba(255,255,255,0.05); border-radius: 4px; }

/* Hover Reveal Button */
.hover-action {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.template-card:hover .hover-action { opacity: 1; }

.template-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.template-info h4 { font-size: 1rem; color: white; }
.template-info span { font-size: 0.8rem; color: var(--text-secondary); background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 100px; }

/* --- NEW: ABOUT SECTION --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    align-items: center;
}
.about-content { text-align: left; }
.about-actions { margin-top: 30px; }

/* Community Visual */
.about-visual { display: flex; justify-content: center; }
.community-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 300px;
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.avatar-group { display: flex; justify-content: center; margin-bottom: 20px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #0d0e14; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 12px; margin-left: -10px; }
.avatar:first-child { margin-left: 0; }
.avatar-plus { width: 40px; height: 40px; border-radius: 50%; background: #333; border: 2px solid #0d0e14; display: flex; align-items: center; justify-content: center; font-size: 10px; color: white; margin-left: -10px; }

.comm-text strong { display: block; font-size: 1.1rem; color: white; margin-bottom: 4px; }
.comm-text span { font-size: 0.9rem; color: var(--text-secondary); }
.comm-icon { position: absolute; top: 20px; right: 20px; color: rgba(255,255,255,0.1); font-size: 24px; }

@media (max-width: 900px) {
    .about-wrapper { grid-template-columns: 1fr; padding: 30px; text-align: center; }
    .about-content { text-align: center; }
    .about-content h2 { text-align: center; font-size: 2rem !important; }
}

/* --- Stats (Preserved) --- */
.stats { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; text-align: center; }
.stat-number { display: block; font-size: 3rem; font-weight: 800; color: white; }
.stat-label { color: var(--text-secondary); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* --- Footer --- */
.cta-footer { 
    padding: 100px 0 40px 0; 
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}
.footer-bottom { margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; color: #555; }
.socials a { color: #777; margin-left: 20px; font-size: 1.2rem; transition: 0.3s; }
.socials a:hover { color: white; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .gradient-text-hero { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 20px; align-items: center; }
    .hero-visual { height: 300px; }
}