/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(91,94,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1,
.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1px;
    z-index: 1;
}

.hero-brand {
    color: var(--primary);
}

.hero h1 .logo-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-mid);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-mid);
    color: var(--text);
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

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

/* === HERO FLOATING EMOJIS === */
@keyframes hero-float {
    0%   { transform: translateY(0px) rotate(0deg) scale(1); }
    30%  { transform: translateY(-14px) rotate(3deg) scale(1.04); }
    60%  { transform: translateY(-8px) rotate(-2deg) scale(1.02); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.hero-emoji {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    animation: hero-float linear infinite;
    filter: drop-shadow(0 8px 24px rgba(91,94,255,0.18));
    line-height: 1;
    user-select: none;
}

/* === WORD ROTATOR === */
.sentence {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: var(--primary);
    flex-wrap: wrap;
}

.rotating-wrapper {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    display: inline-block;
}

.word {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
    font-weight: normal;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.2;
}

.word.pos2 { top: 0%; opacity: 0.3; font-size: 0.9em; }
.word.pos1 { top: 22%; opacity: 0.55; font-size: 1em; }
.word.active { top: 50%; transform: translateY(-50%); opacity: 1; font-weight: 600; font-size: 1.2em; }
.word.neg1 { top: 72%; opacity: 0.55; font-size: 1em; }
.word.neg2 { top: 90%; opacity: 0.3; font-size: 0.9em; }

/* === STEPS SECTION === */
.steps-section {
    padding: 80px 24px;
    background: var(--bg-section);
    border-radius: 50px;
    margin: 40px 24px;
}

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

.steps-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .steps-container { grid-template-columns: 1fr; }
}

.step-box {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    max-width: 100%;
    border: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.step-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(91,94,255,0.2);
}

.step-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.step-box p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
}

/* === WHY SECTION === */
.why-section {
    padding: 80px 24px;
    background: var(--bg);
}

.why-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
}

.why-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1.5px dashed var(--border);
    transition: all 0.3s ease;
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin: 0 auto 16px;
}

.why-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.why-card p { font-size: 15px; color: var(--text-mid); line-height: 1.7; }

/* === DETAILED VIEW SECTION === */
.detail-section {
    padding: 100px 24px;
    background: var(--bg);
}

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

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.detail-row:last-child { margin-bottom: 0; }
.detail-row.reverse .detail-text { order: 2; }
.detail-row.reverse .detail-visual { order: 1; }

@media (max-width: 900px) {
    .detail-row { grid-template-columns: 1fr; gap: 40px; }
    .detail-row.reverse .detail-text { order: 1; }
    .detail-row.reverse .detail-visual { order: 2; }
}

.detail-text h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.detail-text p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 24px;
}

.feature-list { display: flex; flex-wrap: wrap; gap: 10px; }

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-soft);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
}

.feature-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.detail-visual {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--primary-soft) 100%);
    border-radius: var(--radius);
    padding: 40px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.mockup-browser {
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.mockup-bar {
    background: var(--mockup-bar);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBC2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }

.mockup-content {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 150px;
    font-weight: 700;
}

.mockup-browser img {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-browser img.theme-image-dark {
    display: none;
}

[data-theme="dark"] .mockup-browser img.theme-image-light {
    display: none;
}

[data-theme="dark"] .mockup-browser img.theme-image-dark {
    display: block;
}

/* === TOOLS SECTION === */
.tools-section {
    padding: 100px 24px;
    background: var(--bg-soft);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.tool-card:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tool-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.tool-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tool-card p { font-size: 13px; color: var(--text-light); }

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    padding: 100px 24px;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stars { color: #FFB800; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--text-mid); line-height: 1.9; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-info h5 { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.author-info p { font-size: 13px; color: var(--text-light); }

/* === FAQ SECTION === */
.faq-section {
    padding: 100px 24px;
    background: var(--bg-soft);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover { box-shadow: var(--shadow); }

.faq-item.active {
    box-shadow: var(--shadow);
    border-color: rgba(91,94,255,0.25);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    background: var(--bg-card);
    transition: all 0.2s;
}

.faq-item.active .faq-question {
    background: var(--primary-soft);
    color: var(--primary);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
    color: var(--text-mid);
}

.faq-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.faq-item.active .faq-toggle::before {
    transform: rotate(-135deg) translateY(-1px);
}

.faq-answer {
    display: none;
    padding: 20px 24px;
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.9;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.faq-item.active .faq-answer { display: block; }

/* === CTA SECTION === */
.cta-section {
    margin: 60px 24px;
    border-radius: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5B5EFF 100%);
    padding: 100px 24px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.8) 40%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.6), 0 0 20px 5px rgba(91,94,255,0.3);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100px) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-500px) translateX(50px); opacity: 0; }
}

.particle:nth-child(1)  { left: 5%;  animation-duration: 12s;  animation-delay: 0s; }
.particle:nth-child(2)  { left: 12%; animation-duration: 15s;  animation-delay: 1s; width: 4px; height: 4px; }
.particle:nth-child(3)  { left: 18%; animation-duration: 10s;  animation-delay: 2s; width: 8px; height: 8px; }
.particle:nth-child(4)  { left: 25%; animation-duration: 13s;  animation-delay: 0.5s; }
.particle:nth-child(5)  { left: 32%; animation-duration: 11s;  animation-delay: 3s; width: 5px; height: 5px; }
.particle:nth-child(6)  { left: 40%; animation-duration: 14s;  animation-delay: 1.5s; }
.particle:nth-child(7)  { left: 48%; animation-duration: 16s;  animation-delay: 2.5s; width: 3px; height: 3px; }
.particle:nth-child(8)  { left: 55%; animation-duration: 9s;   animation-delay: 0.8s; width: 7px; height: 7px; }
.particle:nth-child(9)  { left: 62%; animation-duration: 13s;  animation-delay: 1.2s; }
.particle:nth-child(10) { left: 70%; animation-duration: 11s;  animation-delay: 2s; width: 4px; height: 4px; }
.particle:nth-child(11) { left: 76%; animation-duration: 15s;  animation-delay: 0.3s; }
.particle:nth-child(12) { left: 82%; animation-duration: 10s;  animation-delay: 1.8s; width: 6px; height: 6px; }
.particle:nth-child(13) { left: 88%; animation-duration: 14s;  animation-delay: 2.2s; width: 5px; height: 5px; }
.particle:nth-child(14) { left: 94%; animation-duration: 12s;  animation-delay: 0.6s; }
.particle:nth-child(15) { left: 98%; animation-duration: 13s;  animation-delay: 3.5s; width: 4px; height: 4px; }

.cta-text-box {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 28px;
    padding: 36px 56px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    animation: box-glow 3s ease-in-out infinite;
}

@keyframes box-glow {
    0%, 100% {
        box-shadow: 0 0 24px rgba(255,255,255,0.15), 0 0 48px rgba(91,94,255,0.25);
        border-color: rgba(255,255,255,0.25);
    }
    50% {
        box-shadow: 0 0 48px rgba(255,255,255,0.35), 0 0 96px rgba(91,94,255,0.45);
        border-color: rgba(255,255,255,0.55);
    }
}

/* === BEFORE/AFTER COMPARE === */
.compare-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    direction: ltr;
}
.compare-box { flex: 1; direction: rtl; }
.compare-label {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    padding: 6px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto 12px;
}
.before-label { background: var(--bg-mid); color: var(--text-mid); }
.after-label { background: var(--primary-soft); color: var(--primary); }
.after-label-this { color: var(--primary); }
.compare-arrow {
    font-size: 40px;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
}
.compare-screen {
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 12px;
}
.before-screen { background: var(--bg-card); }
.after-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}
@media (max-width: 768px) {
    .compare-container { flex-direction: column-reverse; gap: 20px; }
    .compare-arrow { transform: rotate(-90deg); }
}

/* === SCROLL ANIMATIONS (homepage only) === */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HERO MOBILE === */
@media (max-width: 768px) {
    .hero-emoji { display: none; }
    .hero { padding: 100px 20px 60px; }
    .hero-tail { display: none; }
    .rotating-wrapper { width: 220px !important; height: 220px !important; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
    section.hero h1 { font-size: 28px !important; gap: 6px !important; }
}

@media (max-width: 400px) {
    .rotating-wrapper { width: 180px !important; height: 200px !important; }
    section.hero h1 { font-size: 24px !important; }
}
