/* =============================================
   RustaqiLabs - Landing Page Styles
   ============================================= */

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

body {
    min-height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX( 40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Section shared ── */
.lp-section {
    padding: 100px 0;
}
.lp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.lp-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(118,75,162,.15));
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 16px;
}
.lp-heading {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.lp-heading span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-subheading {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ── Section divider ── */
.lp-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    border: none;
    margin: 0;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    z-index: 0;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    opacity: .18;
    z-index: 1;
}
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}
.hero-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(99,102,241,.25);
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text .lp-badge { background: rgba(255,255,255,.1); color: #c4b5fd; border-color: rgba(196,181,253,.3); }
.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title span {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(102,126,234,.5);
    transition: transform .25s, box-shadow .25s;
    border: none;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(102,126,234,.6);
    color: white;
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background .25s, transform .25s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-3px);
    color: white;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.hero-visual {
    position: relative;
}
.hero-card {
    background: rgba(255,255,255,.07);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 24px;
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.hero-card-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.hero-feature-list { list-style: none; }
.hero-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    font-size: 14px;
}
.hero-feature-list li:last-child { border-bottom: none; }
.hero-feature-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.hero-floating-badge {
    position: absolute;
    background: rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 10px 16px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    animation: heroFloat 3s ease-in-out infinite;
}
.hero-floating-badge.badge-1 { top: -20px; right: -20px; animation-delay: .5s; }
.hero-floating-badge.badge-2 { bottom: -20px; left: -20px; animation-delay: 1s; }

/* =============================================
   FEATURES STRIP (logos/icons row)
   ============================================= */
.features-strip {
    padding: 32px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-strip-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    opacity: .7;
    transition: opacity .2s;
}
.strip-item:hover { opacity: 1; }
.strip-item span:first-child { font-size: 22px; }

/* =============================================
   PAIN POINTS / SOLUTION
   ============================================= */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}
.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: default;
}
.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    border-color: #667eea;
}
.pain-icon { font-size: 48px; margin-bottom: 16px; }
.pain-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.pain-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.solution-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: white;
}
.solution-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.solution-banner p  { font-size: 18px; opacity: .9; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* =============================================
   FEATURES
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform .3s;
    transform-origin: left;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,.12); border-color: rgba(99,102,241,.3); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.feature-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.feature-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.feature-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag {
    background: rgba(99,102,241,.1);
    color: #6366f1;
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    margin-bottom: 80px;
}
.hiw-steps::before {
    content: '';
    position: absolute;
    top: 40px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 0;
}
.hiw-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hiw-number {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 24px rgba(102,126,234,.4);
    transition: transform .3s, box-shadow .3s;
}
.hiw-step:hover .hiw-number {
    transform: scale(1.1);
    box-shadow: 0 16px 40px rgba(102,126,234,.5);
}
.hiw-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.hiw-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 240px; margin: 0 auto; }

/* Core Concepts */
.concepts-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}
.concepts-heading span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.concept-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.concept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border-color: rgba(99,102,241,.35);
}
.concept-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.concept-term {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.concept-def {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   PREVIEW
   ============================================= */
.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.preview-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.preview-tab:hover { border-color: #667eea; color: #667eea; transform: translateY(-2px); }
.preview-tab.active { background: linear-gradient(135deg,#667eea,#764ba2); border-color: transparent; color: #fff; box-shadow: 0 4px 15px rgba(102,126,234,.4); }
.preview-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.2);
}
.preview-wrapper { max-height: 480px; }
.preview-wrapper img { width: 100%; height: auto; display: block; transition: opacity .18s ease; }
.preview-wrapper img.preview-fading { opacity: 0; }
.preview-fade-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-body, #fff));
    pointer-events: none;
}
.preview-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(99,102,241,.4);
    background: rgba(99,102,241,.08);
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.preview-expand-btn:hover { background: rgba(99,102,241,.15); transform: translateY(-2px); }
.preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.preview-overlay.active { opacity: 1; pointer-events: all; }
.preview-overlay-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(0,0,0,.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}
.preview-overlay-hint { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }
.preview-overlay-close {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.preview-overlay-close:hover { background: rgba(255,255,255,.2); }
.preview-overlay-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: block;
}
.preview-overlay-body img { width: 100%; max-width: 1400px; height: auto; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); display: block; }
.preview-glow {
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: -1;
    opacity: .6;
}
.preview-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.preview-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: border-color .2s, transform .2s;
}
.preview-badge:hover { border-color: #667eea; transform: translateY(-2px); }
.preview-badge span:first-child { font-size: 18px; }

/* =============================================
   BLOG TEASER
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.12); color: inherit; }
.blog-card-img {
    height: 180px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
}
.blog-card-body { padding: 20px; }
.blog-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6366f1;
    margin-bottom: 8px;
}
.blog-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.blog-card-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* =============================================
   CTA
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,.3), transparent 70%);
    top: -200px; right: -200px;
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(118,75,162,.3), transparent 70%);
    bottom: -150px; left: -100px;
    border-radius: 50%;
}
.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}
.cta-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: white; margin-bottom: 20px; line-height: 1.2; }
.cta-desc  { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 40px; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .hiw-steps { grid-template-columns: 1fr; }
    .hiw-steps::before { display: none; }
}
@media (max-width: 576px) {
    .lp-section { padding: 60px 0; }
    .solution-banner { padding: 32px 20px; }
    .cta-section { padding: 60px 0; }
}
