/* =====================================================
   ASKFLOW HOMEPAGE STYLES
   Modern, minimalist design with subtle animations
   ===================================================== */

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   BACKGROUND EFFECT - Subtle Mouse-Reactive Pattern
   ===================================================== */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-effect::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: float-subtle 20s ease-in-out infinite;
    will-change: transform;
}

.background-effect::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    animation: float-subtle-delayed 18s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-subtle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.95);
    }
}

@keyframes float-subtle-delayed {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) scale(1.03);
    }
    66% {
        transform: translate(40px, -40px) scale(0.97);
    }
}

/* =====================================================
   CONTAINER & LAYOUT
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    color: #6366f1;
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #6366f1;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #6366f1;
}

.mobile-btn {
    width: 100%;
    text-align: center;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f9fafb;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    padding: 48px 0 48px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* LinkRef Join Box */
.linkref-join-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto 48px;
}

.linkref-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 16px;
    opacity: 0.95;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.linkref-content {
    position: relative;
    padding: 24px;
}

.linkref-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.linkref-icon {
    flex-shrink: 0;
}

.linkref-form {
    width: 100%;
}

.linkref-input-wrapper {
    position: relative;
    width: 100%;
}

.linkref-at-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    font-weight: 700;
    pointer-events: none;
    z-index: 10;
}

.linkref-input {
    width: 100%;
    padding: 14px 60px 14px 44px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    color: #1f2937;
    transition: all 0.3s ease;
}

.linkref-input::placeholder {
    color: #9ca3af;
}

.linkref-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.linkref-submit-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 16px;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.linkref-submit-btn:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.linkref-submit-btn:active {
    transform: translateX(0);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-gradient-text {
    display: block;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
}

.hero-subtitle {
    font-size: 20px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 15px;
    color: #9ca3af;
    margin-top: 24px;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
    padding: 100px 0;
    background: #fafafa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-blue {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: #ffffff;
}

.feature-icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    color: #ffffff;
}

.feature-icon-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
}

.feature-icon-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    color: #ffffff;
}

.feature-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #ffffff;
}

.feature-icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #ffffff;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
}

/* =====================================================
   HOW IT WORKS SECTION
   ===================================================== */
.how-it-works-section {
    padding: 100px 0;
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    right: -200px;
    animation: float-subtle 15s ease-in-out infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: #ffffff;
    color: #6366f1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
    padding: 100px 0;
    background: #fafafa;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    color: #6366f1;
}

.footer-logo .logo-text {
    color: #ffffff;
}

.footer-tagline {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #6366f1;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: #6b7280;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 40px;
    }

    .cta-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding: 32px 0 32px;
    }

    .linkref-join-box {
        margin-bottom: 40px;
    }

    .linkref-content {
        padding: 20px 16px;
    }

    .linkref-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .linkref-icon {
        width: 20px;
        height: 20px;
    }

    .linkref-input {
        font-size: 16px;
        padding: 12px 56px 12px 40px;
    }

    .linkref-at-symbol {
        font-size: 16px;
        left: 14px;
    }

    .linkref-submit-btn {
        padding: 0 12px;
    }

    .linkref-submit-btn svg {
        width: 18px;
        height: 18px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-large {
        width: 100%;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .features-section,
    .how-it-works-section,
    .contact-section {
        padding: 64px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section {
        padding: 64px 0;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 18px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 28px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* =====================================================
   SMOOTH ANIMATIONS & TRANSITIONS
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
