/* Main Styles */
@import 'tokens.css';

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background-color: var(--sp-bg-primary);
    color: var(--sp-text-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto !important;
    /* Override extension sidepanel.css */
}

/* Background Gradients */
/* Background Gradients */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sp-body-bg);
    z-index: -1;
    pointer-events: none;
}



/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--sp-text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    /* Restored for Sandwich Layout */
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--sp-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.text-gradient {
    background: var(--sp-pro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(7, 11, 17, 0.5);
    /* Semi-transparent dark bg */
    border-bottom: 1px solid var(--sp-glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sp-text-primary);
}

.logo-img {
    width: 36px;
    height: 36px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
}

.logo-img.small {
    width: 24px;
    height: 24px;
}

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

.nav-links a {
    color: var(--sp-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.nav-icon:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--sp-radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--sp-text-primary);
    color: var(--sp-bg-primary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.btn-primary:hover {
    background: white;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--sp-glass-bg);
    color: var(--sp-text-primary);
    border: 1px solid var(--sp-border);
}

.btn-secondary:hover {
    background: var(--sp-bg-hover);
    border-color: var(--sp-text-secondary);
}

.btn-lg {
    padding: 0.5rem 1rem;
    /* Compact buttons */
    font-size: 0.875rem;
}

.btn-subtext {
    opacity: 0.7;
    font-weight: 400;
    font-size: 0.9em;
    margin-left: 0.2rem;
}

/* Features Grid */
.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--sp-card-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-xl);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-glass-shadow-lg);
    border-color: var(--sp-border-light);
}

.feature-image-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--sp-radius-lg);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    aspect-ratio: 4/3;
    /* Consistent aspect ratio */
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image-container img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.icon-sync {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.icon-privacy {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.icon-library {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.icon-folders {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

/* Privacy Section */
.privacy-section {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--sp-border-subtle);
    border-bottom: 1px solid var(--sp-border-subtle);
    padding: 6rem 2rem;
    text-align: center;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--sp-text-primary);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sp-accent);
    font-weight: 500;
}

.link-arrow:hover {
    color: var(--sp-accent-hover);
    gap: 0.75rem;
    /* Slide arrow */
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--sp-border-subtle);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--sp-text-primary);
}

.logo-icon.small {
    width: 24px;
    height: 24px;
}

.logo-icon.small i {
    width: 14px;
    height: 14px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--sp-text-tertiary);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--sp-text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--sp-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: calc(7rem + env(safe-area-inset-top));
    }
}