:root {
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-bg: #f5f5f7;
    --apple-white: #ffffff;
    --apple-text: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-border: #d2d2d7;
    --apple-success: #34c759;
    --ease-apple: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--apple-white);
    color: var(--apple-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-apple);
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--apple-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-logo-icon {
    width: 30px;
    height: 30px;
    display: block;
}

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

.nav-link {
    font-size: 12px;
    color: var(--apple-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

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

.nav-cta {
    font-size: 12px;
    color: var(--apple-white);
    background: var(--apple-blue);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--apple-blue-hover);
}

.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apple-bg);
    padding: 100px 24px 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s var(--ease-apple);
}

.hero-title {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-description {
    font-size: clamp(16px, 2.5vw, 21px);
    color: var(--apple-text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 400;
    color: var(--apple-white);
    background: var(--apple-blue);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--apple-blue-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 400;
    color: var(--apple-blue);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* Laptop Mockup */
.laptop-mockup {
    width: min(100%, 760px);
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s var(--ease-apple) 0.3s both;
}

.laptop-mockup img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.laptop-frame {
    background: linear-gradient(180deg, #2d2d2f 0%, #1d1d1f 100%);
    border-radius: 16px 16px 0 0;
    padding: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.laptop-screen {
    background: #0a0a0a;
    border-radius: 8px;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.screen-title {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.screen-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 32px;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
}

.screen-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.screen-item-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin: 0 auto 8px;
}

.screen-item-text {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    width: 100%;
}

.laptop-base {
    height: 16px;
    background: linear-gradient(180deg, #3d3d3f 0%, #2d2d2f 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--ease-apple) 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--apple-text-secondary);
    margin-top: 4px;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: var(--apple-white);
}

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

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 21px);
    color: var(--apple-text-secondary);
}

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

.feature-card {
    background: var(--apple-bg);
    border-radius: 24px;
    padding: 32px;
    transition: background 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: #ebebef;
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--apple-blue);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-description {
    font-size: 15px;
    color: var(--apple-text-secondary);
    line-height: 1.5;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--apple-text-secondary);
}

.feature-tag-dot {
    width: 6px;
    height: 6px;
    background: var(--apple-blue);
    border-radius: 50%;
}

/* Download Section */
.download {
    padding: 100px 24px;
    background: var(--apple-bg);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.download-card {
    background: var(--apple-white);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}

.download-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.download-icon {
    width: 56px;
    height: 56px;
    background: var(--apple-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.download-icon svg {
    width: 28px;
    height: 28px;
    color: var(--apple-text);
}

.download-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-version {
    font-size: 13px;
    color: var(--apple-text-secondary);
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--apple-white);
    background: var(--apple-blue);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.download-btn:hover {
    background: var(--apple-blue-hover);
}

.download-info {
    text-align: center;
}

.download-requirements {
    font-size: 13px;
    color: var(--apple-text-secondary);
    margin-bottom: 12px;
}

.download-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--apple-white);
    border-radius: 50px;
    font-size: 13px;
    color: var(--apple-text-secondary);
}

.version-dot {
    width: 8px;
    height: 8px;
    background: var(--apple-success);
    border-radius: 50%;
}

/* License Section */
.license {
    padding: 100px 24px;
    background: var(--apple-white);
}

.license-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1024px;
    margin: 0 auto;
    align-items: center;
}

.license-content {
    animation: fadeInLeft 0.8s var(--ease-apple);
}

.license-form-wrapper {
    animation: fadeInRight 0.8s var(--ease-apple) 0.2s both;
}

.benefits-list {
    list-style: none;
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.benefit-check {
    width: 24px;
    height: 24px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-check svg {
    width: 14px;
    height: 14px;
    color: var(--apple-blue);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--apple-blue), #0054ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-left: -8px;
    border: 2px solid white;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 14px;
    color: var(--apple-text-secondary);
}

.trust-text strong {
    color: var(--apple-text);
}

.license-form {
    background: var(--apple-bg);
    border-radius: 24px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--apple-text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--apple-text);
    background: var(--apple-white);
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-input::placeholder {
    color: #a1a1a6;
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--apple-white);
    background: var(--apple-blue);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    background: var(--apple-blue-hover);
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--apple-text-secondary);
    margin-top: 16px;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--apple-success);
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-text {
    font-size: 15px;
    color: var(--apple-text-secondary);
    margin-bottom: 24px;
}

.success-btn {
    padding: 12px 24px;
    font-size: 14px;
    color: var(--apple-text);
    background: var(--apple-white);
    border: 1px solid var(--apple-border);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.success-btn:hover {
    background: var(--apple-bg);
}

/* Footer */
.footer {
    padding: 48px 24px;
    background: var(--apple-bg);
    border-top: 1px solid var(--apple-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1024px;
    margin: 0 auto 32px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--apple-text);
    text-decoration: none;
    margin-bottom: 8px;
}

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

.footer-tagline {
    font-size: 13px;
    color: var(--apple-text-secondary);
    max-width: 240px;
}

.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 8px;
}

.footer-link a {
    font-size: 13px;
    color: var(--apple-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: var(--apple-text);
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--apple-text-secondary);
    margin-bottom: 8px;
}

.footer-contact svg {
    width: 14px;
    height: 14px;
}

.footer-bottom {
    max-width: 1024px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--apple-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-made {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--apple-white);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-apple);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-title svg {
    width: 24px;
    height: 24px;
    color: var(--apple-blue);
}

.modal-text {
    font-size: 14px;
    color: var(--apple-text-secondary);
    margin-bottom: 24px;
}

.modal-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--apple-bg);
    border-top-color: var(--apple-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.modal-filename {
    font-size: 13px;
    color: var(--apple-text-secondary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--apple-text-secondary);
    font-size: 20px;
    line-height: 1;
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-btn {
        display: block;
    }

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

    .laptop-mockup {
        width: min(100%, 520px);
        margin: 0 auto 40px;
    }

    .license-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-tagline {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
