/* SwiftPDF Website - Modern Windows 11 Inspired Design */

:root {
    --primary: #0078D4;
    --primary-hover: #1a86d9;
    --primary-light: rgba(0, 120, 212, 0.1);
    --accent: #60CDFF;
    --background: #0a0a0c;
    --background-secondary: #111114;
    --surface: #18181c;
    --surface-hover: #222228;
    --surface-elevated: #2a2a30;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --text-tertiary: #606068;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --success: #6ccb5f;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(0, 120, 212, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.95);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 32px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 120, 212, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-screenshot {
    position: relative;
}

.hero-screenshot img {
    display: block;
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition);
}

.hero-screenshot:hover img {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 120, 212, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.4);
}

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

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-store {
    background: var(--primary);
    color: white;
}

.btn-store:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.4);
}

/* Video Section */
.video-section {
    padding: 100px 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--surface);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
    margin-left: 4px;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.video-wrapper:hover .video-play-btn {
    opacity: 0;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, var(--background-secondary) 50%, transparent 100%);
}

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

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Gallery Section */
.gallery {
    padding: 120px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.gallery-img.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item.visible:hover {
    transform: scale(1.02);
    z-index: 1;
}

.gallery-item.visible:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    border-radius: var(--radius-md);
}

.gallery-featured {
    grid-column: 1 / -1;
}

.gallery-featured img {
    aspect-ratio: 21 / 9;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Download Section */
.download {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, var(--background-secondary) 100%);
}

.download-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.download-content {
    flex: 1;
    text-align: center;
}

.download-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
}

.download-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.download-visual {
    flex: 1;
}

.download-preview {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.download-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 203, 95, 0.1);
    color: var(--success);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.download-badge:hover {
    background: rgba(108, 203, 95, 0.2);
}

.download-badge svg {
    width: 16px;
    height: 16px;
}

.download-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.system-requirements {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.system-requirements h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.system-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.download-visual {
    display: flex;
    justify-content: center;
}

.store-preview {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.store-preview:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.store-app-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
}

.app-dev {
    font-size: 13px;
    color: var(--text-secondary);
}

.app-category {
    font-size: 11px;
    color: var(--text-tertiary);
}

.microsoft-logo {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.footer-brand span {
    font-weight: 600;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-copyright p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .features,
    .gallery,
    .download,
    .video-section {
        padding: 80px 0;
    }
}

/* Page Styles */
.page {
    padding: 120px 32px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.page h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px;
}

.page p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.page ul {
    margin: 16px 0 24px 24px;
}

.page li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* Changelog */
.changelog-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.version {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.date {
    font-size: 13px;
    color: var(--text-tertiary);
}

.change-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.change-type.added {
    background: rgba(108, 203, 95, 0.15);
    color: var(--success);
}

.change-type.fixed {
    background: rgba(255, 189, 46, 0.15);
    color: #ffbd2e;
}

.change-type.improved {
    background: rgba(96, 205, 255, 0.15);
    color: var(--accent);
}

.change-type.removed {
    background: rgba(255, 95, 87, 0.15);
    color: #ff5f57;
}

.changelog-item ul {
    list-style: none;
    margin: 0;
}

.changelog-item li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.changelog-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}
