/* Complete Soonix Clone - All Visual Elements */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #6b7280;
    --color-blue: #007AFF;
    --color-blue-dark: #0051D5;
    --color-bg-light: #f3f4f6;
    --color-bg-lighter: #e5e7eb;
    --color-white: #fff;
    --color-bg-page: #f9fafb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg-page);
    color: var(--color-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.nav-dropdown {
    position: relative;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg-lighter);
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: var(--color-bg-lighter);
}

.nav-button svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    transition: transform 0.2s ease;
}

.nav-dropdown.active .nav-button svg {
    transform: rotate(180deg);
}

.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--color-bg-light);
    border-radius: 36px;
    padding: 5px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown.active .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    display: block;
    padding: 10px 16px;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 36px;
    transition: background-color 0.2s ease;
    font-size: 16px;
}

.nav-link:hover {
    background-color: var(--color-bg-lighter);
}

.nav-link.active {
    font-weight: 600;
}

/* Main Content */
.main-content {
    background-color: var(--color-white);
    min-height: 100vh;
}

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

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 787px;
    margin: 0 auto;
}

.logo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    animation: fadeInUp 0.6s ease 0.1s backwards;
    margin-top: -10px;
}

.hero-title {
    font-family: 'Roboto Serif', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-primary);
    max-width: 395px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.download-button.app-store {
    background-color: var(--color-primary);
}

.download-button.google-play {
    background-color: #1a1a1a;
}

.download-button.coming-soon {
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
    box-shadow: none;
    border: 1px dashed var(--color-bg-lighter);
    cursor: default;
    pointer-events: none;
}

.download-button.coming-soon svg {
    color: var(--color-secondary);
}

.download-button.coming-soon .button-title {
    color: var(--color-primary);
}

.download-button.coming-soon .button-subtitle {
    color: var(--color-secondary);
}

.download-button svg {
    flex-shrink: 0;
}

.download-button .button-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1;
}

.download-button .button-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

/* App Store Style Screenshot Gallery */
.screenshot-gallery-section {
    padding: 60px 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.gallery-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.gallery-header p {
    font-size: 18px;
    color: var(--color-secondary);
}

.gallery-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 32px 40px;
    /* Bottom padding for shadow */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
}

.gallery-container:active {
    cursor: grabbing;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-nav {
        display: none;
        /* Hide buttons on mobile where touch is primary */
    }
}

.gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 280px;
    /* Approximate width of a phone screenshot */
    transition: transform 0.3s ease;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 40px;
    /* Matches modern iPhone rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.2), 0 0 0 1px rgba(0, 122, 255, 0.1);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .gallery-item {
        width: 320px;
        /* Larger on desktop */
    }
}

/* ===== OPTION A: Clay Object with 3 Gradients ===== */
.visual-section-clay {
    width: 100%;
    max-width: 792px;
    margin-top: 40px;
    margin-bottom: 72px;
    position: relative;
    animation: fadeInUp 0.6s ease 0.6s backwards;
    min-height: 600px;
}

.clay-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 200px;
}

.clay-object-wrapper {
    width: 52%;
    position: relative;
    z-index: 3;
}

.clay-object-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.gradient-white-overlay {
    position: absolute;
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 133%;
    height: auto;
    aspect-ratio: 2.42464;
    z-index: 4;
    pointer-events: none;
}

.gradient-white-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-2-overlay {
    position: absolute;
    bottom: -99px;
    left: 50%;
    transform: translateX(-50%);
    width: 112%;
    height: auto;
    aspect-ratio: 1.75784;
    z-index: 2;
    pointer-events: none;
}

.gradient-2-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-blue-overlay {
    position: absolute;
    top: -62px;
    bottom: -121px;
    left: 50%;
    transform: translateX(-50%);
    width: 141%;
    height: auto;
    aspect-ratio: 1.75784;
    z-index: 1;
    pointer-events: none;
}

.gradient-blue-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== OPTION B: Three Phone Mockups ===== */
.visual-section-phones {
    width: 100%;
    max-width: 792px;
    margin-top: 40px;
    margin-bottom: 72px;
    position: relative;
    animation: fadeInUp 0.6s ease 0.6s backwards;
    min-height: 600px;
}

.phones-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 200px;
}

.phone-mockup-item {
    width: 30%;
    position: relative;
    z-index: 3;
}

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

.phone-mockup-item.left {
    transform: rotate(-8deg) translateY(20px);
}

.phone-mockup-item.center {
    transform: scale(1.1);
    z-index: 4;
}

.phone-mockup-item.right {
    transform: rotate(8deg) translateY(20px);
}

/* ===== Video Preview Section ===== */
.video-preview {
    width: 100%;
    max-width: 792px;
    margin-top: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.6s backwards;
    position: relative;
    box-shadow: 0 30px 60px -35px rgba(0, 81, 213, 0.55), 0 18px 30px -20px rgba(0, 0, 0, 0.2);
    border-radius: 24px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

/* Diagonal pattern background */
.diagonal-pattern {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-position: left top;
    background-size: 64px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='126'%3E%3Cpath id='a' d='M126 0v21.584L21.584 126H0v-17.585L108.415 0H126Zm0 108.414V126h-17.586L126 108.414Zm0-84v39.171L63.585 126H24.414L126 24.414Zm0 42v39.17L105.584 126h-39.17L126 66.414ZM105.586 0 0 105.586V66.415L66.415 0h39.171Zm-42 0L0 63.586V24.415L24.415 0h39.171Zm-42 0L0 21.586V0h21.586Z' fill='rgba(136, 136, 136, 0.2)' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

/* Phone mockup cover image */
.cover-image {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.cover-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-position: center center;
    object-fit: cover;
}

/* Play button area */
.play-button-area {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.play-button {
    position: relative;
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer ring with opacity */
.play-button-outer-ring {
    position: absolute;
    width: 104px;
    height: 104px;
    background-color: rgba(38, 36, 36, 0.4);
    border-radius: 52px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Inner circle with icon */
.play-button-inner {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: rgb(38, 36, 36);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button-inner {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-inner svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* Gradient blue overlay */
.gradient-overlay {
    position: absolute;
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 123%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Section */
.blog-section {
    padding: 60px 32px;
    background-color: var(--color-bg-page);
}

.blog-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.blog-header h2 {
    font-family: 'Roboto Serif', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.blog-header p {
    font-size: 18px;
    color: var(--color-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    display: inline-block;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    align-self: flex-start;
}

.blog-card h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card p {
    font-size: 16px;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Social Proof Section */
.social-proof-section {
    padding: 15px 0px;
    background-color: var(--color-bg-page);
    text-align: center;
}

.social-proof-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.social-proof-section p {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    opacity: 0.6;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.social-icons svg:hover {
    color: var(--color-primary);
    opacity: 1;
    transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
    padding: 60px 32px;
    padding-bottom: 80px;
    background-color: var(--color-white);
}

.faq-header {
    text-align: center;
    max-width: 590px;
    margin: 0 auto 32px;
}

.faq-header h2 {
    font-family: 'Roboto Serif', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.faq-header p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-primary);
}

.faq-list {
    max-width: 590px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--color-bg-light);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

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

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    width: 32px;
    height: 32px;
    background-color: #54595e;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: none;
    padding: 12px 24px 24px;
    overflow: visible;
}

.faq-answer> :first-child {
    margin-top: 0;
}

.faq-answer> :last-child {
    margin-bottom: 0;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin: 0;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-bg-page);
    padding: 32px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

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

.footer-copyright {
    font-size: 16px;
    color: var(--color-secondary);
}

.footer-copyright strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 809px) {
    .hero-title {
        font-size: 40px;
    }

    .faq-header h2 {
        font-size: 40px;
    }

    .hero-section {
        padding: 100px 16px 0;
    }

    .faq-section {
        padding: 48px 16px;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
    }

    .features-list {
        max-width: 100%;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-content {
        text-align: center;
    }

    .countdown {
        gap: 16px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 16px;
    }

    .countdown-value {
        font-size: 20px;
    }

    .phones-container {
        gap: 10px;
    }

    .phone-mockup-item.left,
    .phone-mockup-item.right {
        transform: none;
    }

    .phone-mockup-item.center {
        transform: scale(1.05);
    }
}

@media (min-width: 810px) and (max-width: 1279px) {
    .hero-title {
        font-size: 44px;
    }

    .faq-header h2 {
        font-size: 44px;
    }

    .faq-section {
        padding: 72px 32px;
    }
}