/* Design Tokens & Theme Variables */
:root {
    --bg-darker: #05070c;
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-card-hover: rgba(30, 41, 59, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(218, 28, 92, 0.35);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --color-primary: #da1c5c; /* Logo Crimson */
    --color-primary-hover: #bd134e;
    --color-secondary: #f43f5e; /* Rose */
    --color-accent: #eab308; /* Yellow Lightning Bolt */
    --color-accent-hover: #ca8a04;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 0 30px rgba(218, 28, 92, 0.15);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(218, 28, 92, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(234, 179, 8, 0.03) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography Helpers & Gradients */
.gradient-text-purple {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    gap: 10px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Navigation Header with Glassmorphism */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 34px;
    width: auto;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-text span {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing Background Orbs */
.glow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 500px;
    filter: blur(100px);
    opacity: 0.25;
    animation: pulse 8s infinite alternate;
}

.glow-orb.purple {
    background: var(--color-secondary);
    top: 0;
    left: 10%;
}

.glow-orb.cyan {
    background: var(--color-accent);
    bottom: 0;
    right: 10%;
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0.35; }
}

/* CSS 3D Floating Phone Mockups */
.hero-mockup-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    z-index: 10;
}

.mockup-phone {
    position: absolute;
    width: 200px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 3.5px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease, z-index 0s;
    background-color: #0b0e14;
    cursor: pointer;
}

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

/* Center Phone */
.mockup-phone.center-phone {
    z-index: 3;
    transform: rotateY(0deg) scale(1.05);
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.85), var(--shadow-accent);
}

/* Left Phone */
.mockup-phone.left-phone {
    z-index: 1;
    transform: translateX(-180px) rotateY(25deg) scale(0.88);
    opacity: 0.6;
}

/* Right Phone */
.mockup-phone.right-phone {
    z-index: 1;
    transform: translateX(180px) rotateY(-25deg) scale(0.88);
    opacity: 0.6;
}

/* Hover: bring to front flat */
.mockup-phone.left-phone:hover,
.mockup-phone.right-phone:hover {
    z-index: 5;
    transform: translateX(0) rotateY(0deg) scale(1.1);
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 40px 80px rgba(218, 28, 92, 0.4);
}

.mockup-phone.center-phone:hover {
    transform: rotateY(0deg) scale(1.08);
}

/* Section Common Styles */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Features Grid Section */
.features-section {
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-premium), var(--shadow-accent);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.icon-purple {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-name {
    font-size: 20px;
    margin-bottom: 14px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Workflow Step Section */
.workflow-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.workflow-step {
    position: relative;
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.step-link {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.step-link:hover {
    color: var(--color-secondary);
}

/* Download CTA Section */
.download-section {
    padding: 100px 0;
    position: relative;
}

.download-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--border-hover);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-accent);
}

.download-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Navigation CTA with language selector */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector styles */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.chevron-icon {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.lang-selector.active .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transform: translateY(-5px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.lang-option {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 13px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-cta .btn {
        display: none;
    }
}

/* Tester Section styling */
.tester-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tester-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.tester-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 480px;
    margin-bottom: 24px;
}

.tester-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    gap: 12px;
    background: rgba(5, 7, 12, 0.6);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.tester-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(218, 28, 92, 0.15);
}

.tester-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.tester-input::placeholder {
    color: var(--text-muted);
}

.tester-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    border: none;
}

.tester-message {
    margin-top: 12px;
    font-size: 14px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.tester-message.success {
    color: #10b981;
    opacity: 1;
}

.tester-message.error {
    color: #ef4444;
    opacity: 1;
}

@media (max-width: 768px) {
    .tester-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
    }
    .tester-input {
        background: rgba(5, 7, 12, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 14px 16px;
        width: 100%;
    }
    .tester-btn {
        width: 100%;
        padding: 14px 24px;
        border-radius: 12px;
    }
}

/* Newsletter Section styling */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(218, 28, 92, 0.03));
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-premium);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 500px;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    gap: 12px;
    background: rgba(5, 7, 12, 0.6);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.newsletter-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(218, 28, 92, 0.15);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    border: none;
}

.newsletter-message {
    margin-top: 12px;
    font-size: 14px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.newsletter-message.success {
    color: #10b981;
    opacity: 1;
}

.newsletter-message.error {
    color: #ef4444;
    opacity: 1;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
        width: 100%;
    }
    .newsletter-input {
        background: rgba(5, 7, 12, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 14px 16px;
        width: 100%;
    }
    .newsletter-btn {
        width: 100%;
        padding: 14px 24px;
        border-radius: 12px;
    }
}

/* FAQ Accordion Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.faq-accordion {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255,255,255,0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.faq-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 0 24px;
}

/* FAQ Active State */
.faq-item.active {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.links-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-mockup-container {
        height: 380px;
    }
    
    .mockup-phone {
        width: 150px;
    }
    
    .left-phone {
        transform: translateX(-95px) rotateY(18deg) scale(0.85);
    }
    
    .right-phone {
        transform: translateX(95px) rotateY(-18deg) scale(0.85);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
