/* =============================================
   SyncFlow — Main Stylesheet
   File: styles.css
   ============================================= */

/* ---- Variables ---- */
:root {
    --color-bg: #FCFDFE;
    --color-white: #FFFFFF;
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-primary: #FF5A5F;
    --color-primary-hover: #E0484D;
    --color-secondary: #0F172A;
    --color-secondary-hover: #1E293B;
    --color-border: #E2E8F0;
    --color-bg-alt: #F8FAFC;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ---- Layout ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: #cbd5e1;
}

/* ---- Header ---- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a.nav-item {
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

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

.nav-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-ctas .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: var(--color-secondary);
    cursor: pointer;
    border: none;
}

/* ---- Hero ---- */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, #F8FAFC 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: var(--color-primary);
    filter: blur(80px);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: subtleFloat 6s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Trust Section ---- */
.trust-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-white);
    text-align: center;
}

.trust-section p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    opacity: 0.6;
    filter: grayscale(100%);
}

.trust-logos i {
    font-size: 2rem;
    color: var(--color-secondary);
}

/* ---- Features Section ---- */
.features {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    top: -5px;
    border-color: #cbd5e1;
}

.feature-image-wrapper {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

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

/* ---- Split Feature Section ---- */
.split-feature {
    padding: 6rem 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.split-feature .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-feature.reverse .container {
    direction: rtl;
}

.split-feature.reverse .split-content {
    direction: ltr;
}

.split-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.split-content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ---- Download / CTA Section ---- */
.download {
    padding: 8rem 0;
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
}

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

.download h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.download p {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 3rem;
}

.download-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-app {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.btn-app:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-app i {
    font-size: 1.5rem;
}

.btn-app-text {
    text-align: left;
}

.btn-app-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.btn-app-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---- Footer ---- */
footer {
    background-color: var(--color-bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    transition: color 0.2s;
}

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

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-ctas { display: none; }
    .mobile-menu-btn { display: block; }

    .hero-container,
    .split-feature .container,
    .split-feature.reverse .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-ctas { justify-content: center; }

    .features-grid { grid-template-columns: 1fr; }
    .download h2 { font-size: 2.25rem; }
}
