/* Core Styling and Premium Variables */
:root {
    --primary: #6c5ce7;
    --primary-light: #a8a5ff;
    --primary-gradient: linear-gradient(135deg, #6c5ce7 0%, #8e2de2 100%);
    --secondary: #ff7675;
    --accent: #00b894;
    --dark: #2d3436;
    --light-bg: #f9f9fb;
    --white: #ffffff;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --shadow: 0 10px 30px rgba(108, 92, 231, 0.08);
    --shadow-hover: 0 20px 40px rgba(108, 92, 231, 0.15);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar with Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(223, 230, 233, 0.5);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
}

.app-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(240, 236, 255, 1) 0%, rgba(255, 243, 243, 1) 90.1%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

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

.badge-featured {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-badge img {
    height: 60px;
    transition: var(--transition);
}

.download-badge:hover img {
    transform: scale(1.05);
}

.safety-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
}

/* Phone Mockup Frame & Embedded Interactive App UI */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 50px rgba(108, 92, 231, 0.25));
}

.phone-frame-graphic {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.phone-video-screen {
    position: absolute;
    /* Precise bounding box inside the phone frame bezels */
    top: 5.6%;
    bottom: 5.6%;
    left: 6.8%;
    right: 6.8%;
    z-index: 2;
    overflow: hidden;
    background-color: #000000;
    /* Maintain curved screen edges matching device outline */
    border-radius: clamp(10px, 4%, 28px);
}

.phone-video-screen video,
.phone-video-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}


/* Simulated App UI */
.app-ui {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    font-family: var(--font-heading);
    background: radial-gradient(circle, #ffe3e3 0%, #e2d9ff 100%);
    padding: 16px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #4a4a4a;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.puzzle-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 40px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 2px dashed rgba(108, 92, 231, 0.3);
}

.puzzle-silhouette {
    width: 110px;
    height: 110px;
    background-color: rgba(45, 52, 54, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(45, 52, 54, 0.1);
    filter: grayscale(100%) brightness(50%);
    transition: var(--transition);
}

.draggable-pieces {
    margin-top: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.drag-piece {
    width: 54px;
    height: 54px;
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.drag-piece:active {
    cursor: grabbing;
}

/* Curve Divider */
.curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Features Section */
.features-section {
    background-color: var(--light-bg);
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(223, 230, 233, 0.3);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.bg-pink { background-color: #ffeef0; color: #ff7675; }
.bg-blue { background-color: #e3f2fd; color: #1e88e5; }
.bg-green { background-color: #e8f5e9; color: #43a047; }
.bg-purple { background-color: #f3e5f5; color: #8e24aa; }

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* App Screenshot Styles */
.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshots-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.screenshot-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(223, 230, 233, 0.3);
}

.screenshot-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.screenshot-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.screenshot-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(223, 230, 233, 0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background-color: var(--white);
}

.testimonial-stars {
    color: #f1c40f;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Comparison Section */
.compare-section {
    padding: 100px 0;
    background-color: var(--white);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.comparison-table th {
    background-color: var(--light-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
}

.comparison-table th.highlight, .comparison-table td.highlight {
    background-color: rgba(108, 92, 231, 0.05);
    border-left: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
}

.comparison-table tr:hover {
    background-color: rgba(223, 230, 233, 0.1);
}

.feature-name {
    font-weight: 600;
}

.yes-check {
    color: var(--accent);
    font-weight: 600;
}

.comparison-verdict {
    margin-top: 40px;
    padding: 24px;
    background-color: rgba(0, 184, 148, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-size: 1.05rem;
}

/* Articles/Blogging Section */
.articles-section {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.article-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
    font-weight: 500;
}

.article-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-card p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.read-more-btn {
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.read-more-btn:hover {
    color: var(--secondary);
}

/* Footer Section */
.footer {
    background-color: var(--dark);
    color: var(--light-gray);
    padding: 80px 0 40px 0;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #b2bec3;
    max-width: 320px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b2bec3;
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4a4a4a;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #b2bec3;
}

/* Modal View for Article reading */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(45, 52, 54, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--white);
    margin: 8% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 720px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.2rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--dark);
}

.modal-title {
    margin-bottom: 12px;
    font-size: 2.2rem;
}

.modal-author {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 24px;
}

.modal-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #2d3436;
}

/* Interactive Drag-and-Drop Mockup Styling states */
.drop-completed {
    background-color: rgba(0, 184, 148, 0.3) !important;
    border: 2px solid var(--accent) !important;
    filter: none !important;
    transform: scale(1.05);
}

/* Responsiveness */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 24px;
        box-shadow: 0 15px 30px rgba(108, 92, 231, 0.08);
        gap: 20px;
        border-bottom: 1px solid rgba(108, 92, 231, 0.1);
        align-items: center;
        z-index: 1001;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .safety-badges {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Hamburger Animations */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
