/* ==========================================
   JigMyPic — Apple-Themed Design System
   Inspired by uvapps.com
   ========================================== */

:root {
    --bg: #f9f9fb;
    --surface: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #aeaeb2;
    --border: #d2d2d7;
    --border-light: #e8e8ed;
    --btn-bg: #1d1d1f;
    --btn-text: #ffffff;
    --accent: #0071e3;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --max-width: 1100px;
    --nav-height: 72px;
}

/* ==========================================
   Reset & Base
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

/* ==========================================
   Layout
   ========================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 249, 251, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

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

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

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

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

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #3a3a3f;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--bg);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    text-align: center;
    padding: 96px 24px 80px;
    animation: fadeUp 0.7s ease both;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--text-secondary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 80px 0;
    animation: fadeUp 0.7s 0.15s ease both;
}

.features-heading {
    text-align: center;
    margin-bottom: 48px;
}

.features-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.features-heading p {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Content Pages (Support / Privacy)
   ========================================== */

.page-header {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 56px;
    animation: fadeUp 0.6s ease both;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.content-section {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 96px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-top: 48px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.content-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.content-section p,
.content-section li {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.content-section ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-section li {
    padding-left: 4px;
}

.content-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-section a:hover {
    opacity: 0.8;
}

.content-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

.contact-box {
    margin-top: 40px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}

.contact-box p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* ==========================================
   Footer
   ========================================== */

footer {
    border-top: 1px solid var(--border-light);
    padding: 32px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

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

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .hero {
        padding: 72px 0 56px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    .features {
        padding: 56px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        justify-content: center;
    }
}
