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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-elevated: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #007aff;
    --accent-hover: #0062cc;
    --accent-glow: rgba(0, 122, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background-pattern-dark.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 20px 40px rgba(0, 122, 255, 0.7));
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
}

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

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

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

.nav-links a.nav-download {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 4rem;
    text-align: center;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 20px 40px rgba(0, 122, 255, 0.3));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 20px 40px rgba(0, 122, 255, 0.7));
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hero-platforms {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.cta-button.large {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
}

.apple-icon {
    width: 24px;
    height: 24px;
}

/* Comparison Section */
.comparison {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.comparison .section-title {
    margin-bottom: 4rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-item {
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.4s ease;
}

.comparison-item.good {
    border-color: rgba(0, 255, 157, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), rgba(0, 122, 255, 0.08));
    box-shadow: 0 8px 32px rgba(0, 255, 157, 0.15);
    transform: rotate(1.5deg);
}

.comparison-item.good:hover {
    transform: rotate(1.5deg) translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 255, 157, 0.25);
    border-color: rgba(0, 255, 157, 0.6);
}

.comparison-item.bad {
    border-color: rgba(255, 59, 48, 0.3);
    opacity: 0.8;
    transform: rotate(-2deg) translateY(30px);
}

.comparison-item.bad:hover {
    transform: rotate(-2deg) translateY(26px);
    opacity: 0.9;
}

.comparison-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.comparison-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.comparison-item.good .comparison-label::after {
    background: rgba(0, 255, 157, 0.8);
}

.comparison-item.bad .comparison-label::after {
    background: rgba(255, 59, 48, 0.5);
}

.comparison-points {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comparison-item .point {
    font-size: 1.05rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-item .point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison-item.good .point:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.2);
    transform: translateX(8px);
}

.comparison-item.good .point:hover::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 255, 157, 0.8), rgba(0, 122, 255, 0.8));
}

/* Use Case Section */
.use-case {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.use-case-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.use-case-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.use-case-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.use-case-example {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 0 2rem;
    background: var(--bg-elevated);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    font-size: 0.95rem;
    height: 60px;
}

.use-case-example .before {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-example .arrow {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.5rem;
    opacity: 0.6;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-example .after {
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features Section */
.features {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.highlight {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(0, 255, 157, 0.15));
    border-color: rgba(0, 255, 157, 0.3);
    grid-column: span 2;
}

.feature-card.highlight:hover {
    border-color: rgba(0, 255, 157, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    position: relative;
    padding: 2rem 0;
    z-index: 1;
    overflow: hidden;
}

.platform-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.platform-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.platform-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.platform-btn svg {
    width: 20px;
    height: 20px;
}

.screenshots-gallery {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: none;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 0.5rem;
    flex-wrap: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screenshots-gallery.active {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.screenshots-gallery[data-platform-content="macos"] {
    align-items: flex-start;
    padding-top: 0;
}

.screenshots-gallery[data-platform-content="ios"] {
    min-height: auto;
}

.screenshots-gallery[data-platform-content="ios"] .screenshot-3 {
    margin-left: 0;
    margin-right: -80px;
}

.screenshots-gallery[data-platform-content="ios"] .screenshot-4 {
    margin-left: 0;
    margin-top: 60px;
}

.screenshot-float {
    position: relative;
    transition: transform 0.3s ease;
}

.screenshot-float:hover {
    animation-play-state: paused;
    transform: scale(1.02);
}

.screenshot-1 {
    z-index: 1;
    margin-right: -300px;
    animation: floatOne 12s ease-in-out infinite;
    will-change: transform;
}

.screenshot-2 {
    z-index: 2;
    margin-top: 60px;
    margin-left: -100px;
    animation: floatTwo 14s ease-in-out infinite;
    will-change: transform;
}

.screenshot-3 {
    z-index: 3;
    margin-left: -150px;
    margin-top: -40px;
    animation: floatThree 13s ease-in-out infinite;
    will-change: transform;
}

.screenshot-4 {
    z-index: 4;
    margin-left: -120px;
    margin-top: 80px;
    animation: floatFour 11s ease-in-out infinite;
    will-change: transform;
}

.screenshot-float img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.screenshot-3 img {
    max-width: 750px;
}

.screenshot-4 img {
    max-width: 350px;
}

/* Download Section */
.download {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    z-index: 1;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.download-note {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Legal Pages */
.legal-page {
    position: relative;
    padding: 10rem 0 4rem;
    z-index: 1;
}

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

.legal-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.legal-section ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 0.5rem 0;
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--text-primary);
}

.privacy-highlight {
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 255, 157, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
}

.privacy-highlight h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-highlight p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.back-button:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.imprint-image {
    max-width: 150px !important;
    width: 150px !important;
    height: auto !important;
    margin: 1rem 0;
    display: block;
}

.contact-image {
    max-width: 150px !important;
    width: 150px !important;
    height: auto !important;
    margin: 1rem 0;
    display: block;
}

/* Footer */
.footer {
    position: relative;
    padding: 4rem 0 3rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links .separator {
    color: var(--border-color);
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.footer-copy {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

@keyframes fadeInUpRotateLeft {
    from {
        opacity: 0;
        transform: translateY(60px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(30px) rotate(-2deg);
    }
}

@keyframes fadeInUpRotateRight {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(1.5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(1.5deg);
    }
}

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

@keyframes floatOne {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) translateX(5px) rotate(0.3deg);
    }
    50% {
        transform: translateY(-4px) translateX(-3px) rotate(-0.2deg);
    }
    75% {
        transform: translateY(6px) translateX(4px) rotate(0.2deg);
    }
}

@keyframes floatTwo {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    30% {
        transform: translateY(7px) translateX(-4px) rotate(-0.3deg);
    }
    60% {
        transform: translateY(-6px) translateX(5px) rotate(0.4deg);
    }
    85% {
        transform: translateY(3px) translateX(-3px) rotate(-0.2deg);
    }
}

@keyframes floatThree {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    20% {
        transform: translateY(-10px) translateX(6px) rotate(0.4deg);
    }
    50% {
        transform: translateY(5px) translateX(-4px) rotate(-0.3deg);
    }
    80% {
        transform: translateY(-3px) translateX(5px) rotate(0.2deg);
    }
}

@keyframes floatFour {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(8px) translateX(-5px) rotate(-0.4deg);
    }
    55% {
        transform: translateY(-7px) translateX(4px) rotate(0.3deg);
    }
    75% {
        transform: translateY(4px) translateX(-3px) rotate(-0.2deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-item {
        padding: 2rem 1.5rem;
    }

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

    .feature-card.highlight {
        grid-column: span 1;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .platform-switcher {
        flex-direction: row;
        gap: 0.75rem;
    }

    .platform-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .screenshots-gallery {
        min-height: auto;
        padding: 0.5rem;
    }

    .screenshots-gallery[data-platform-content="ios"] .screenshot-3 {
        margin-right: -60px;
    }

    .screenshots-gallery[data-platform-content="ios"] .screenshot-4 {
        margin-top: 40px;
    }

    .screenshot-1 {
        margin-right: -200px;
    }

    .screenshot-2 {
        margin-top: 60px;
        margin-left: -80px;
    }

    .screenshot-float img {
        max-width: 450px;
    }

    .screenshot-3 img {
        max-width: 380px;
    }

    .screenshot-4 img {
        max-width: 200px;
    }

    .cta-button.large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-title {
        display: none;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .platform-switcher {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .platform-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

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

    .screenshot-float img {
        max-width: 100%;
    }

    .screenshots-gallery[data-platform-content="ios"] .screenshot-3 {
        margin-left: 15px;
        margin-bottom: -40px;
    }

    .screenshots-gallery[data-platform-content="ios"] .screenshot-4 {
        margin-left: -15px;
        margin-top: 0;
    }

    .screenshots-gallery[data-platform-content="ios"] .screenshot-3 {
        margin-right: -50px;
    }

    .screenshots-gallery[data-platform-content="ios"] .screenshot-4 {
        margin-top: 30px;
    }

    .screenshot-1 {
        margin-right: -150px;
    }

    .screenshot-2 {
        margin-top: 40px;
        margin-left: -60px;
    }

    .screenshot-float img {
        max-width: 320px;
    }

    .screenshot-3 img {
        max-width: 280px;
    }

    .screenshot-4 img {
        max-width: 150px;
    }

    .comparison-item {
        padding: 2rem 1.5rem;
    }

    .comparison-label {
        font-size: 1.3rem;
    }

    .use-case-card {
        padding: 2rem;
    }
}
