/* RollsportManager Website Styles */

/* Basis-Reset und Variablen */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-brand img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-brand span {
    font-size: inherit;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    min-height: 48px;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.btn-secondary:hover {
    background: #059669;
}

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

.btn-white:hover {
    background: var(--light);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

@media (max-width: 640px) {
    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Screenshots Carousel */
.screenshots {
    background: var(--dark);
    color: white;
}

.screenshots .section-header h2,
.screenshots .section-header p {
    color: white;
}

.screenshots-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshots-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 280px;
    scroll-snap-align: center;
}

.screenshot-item img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* iPhone Frame Styles */
.iphone-frame {
    position: relative;
    width: 200px;
    height: 420px;
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 3px #0a0a0a,
        0 0 0 4px #333;
}

.iphone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 26px;
    background: #000;
    border-radius: 15px;
    z-index: 10;
}

.iphone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 1px solid #333;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.iphone-home-bar {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: #333;
    border-radius: 3px;
    z-index: 10;
}

.screenshot-label {
    text-align: center;
    margin-top: 1.5rem;
    color: #60a5fa;
    font-weight: 600;
    font-size: 1rem;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-item:hover .iphone-frame {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(37, 99, 235, 0.2);
}

.iphone-frame {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero iPhone - Groesser */
.hero-iphone {
    width: 280px;
    height: 570px;
    border-radius: 50px;
    padding: 6px;
}

.hero-iphone .iphone-notch {
    width: 70px;
    height: 22px;
    top: 10px;
}

.hero-iphone .iphone-screen {
    border-radius: 44px;
}

.hero-iphone .iphone-home-bar {
    width: 100px;
    height: 4px;
    bottom: 8px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-iphone:hover {
    transform: translateY(-10px) rotate(2deg);
}

/* iPad Frame */
.ipad-frame {
    position: relative;
    width: 400px;
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 20px;
    padding: 6px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 2px #333;
    transition: transform 0.4s ease;
}

.ipad-frame:hover {
    transform: scale(1.02);
}

.ipad-screen {
    width: 100%;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
}

.ipad-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* iPad 3D Frame - Perspektive von links */
.ipad-frame-3d {
    position: relative;
    width: 400px;
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 20px;
    padding: 12px;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(-10deg) rotateX(3deg);
    box-shadow:
        -20px 35px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 2px #333;
    transition: transform 0.5s ease;
}

.ipad-frame-3d:hover {
    transform: perspective(1200px) rotateY(-5deg) rotateX(1deg) scale(1.02);
}

.ipad-frame-3d .ipad-screen {
    width: 100%;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
}

/* iPad 3D Frame - Perspektive von rechts */
.ipad-frame-3d-right {
    position: relative;
    width: 400px;
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 20px;
    padding: 12px;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(10deg) rotateX(3deg);
    box-shadow:
        20px 35px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 2px #333;
    transition: transform 0.5s ease;
}

.ipad-frame-3d-right:hover {
    transform: perspective(1200px) rotateY(5deg) rotateX(1deg) scale(1.02);
}

/* MacBook Frame */
.macbook-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    perspective: 1000px;
    transition: transform 0.4s ease;
}

.macbook-frame:hover {
    transform: scale(1.02);
}

.macbook-screen {
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0 8px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.macbook-screen img {
    width: 100%;
    border-radius: 6px 6px 0 0;
    display: block;
}

.macbook-base {
    background: linear-gradient(180deg, #e5e5e5, #c4c4c4);
    height: 12px;
    border-radius: 0 0 2px 2px;
    position: relative;
}

.macbook-base::after {
    content: '';
    display: block;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 30%, #a3a3a3 100%);
    height: 8px;
    border-radius: 0 0 12px 12px / 0 0 8px 8px;
    margin: 0 -10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* MacBook Mockup mit Screenshot */
.macbook-mockup {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.macbook-mockup .screen-content {
    position: absolute;
    /* Position des Bildschirms im PNG (prozentual) */
    top: 1.2%;
    left: 14.8%;
    width: 56.5%;
    height: 30.5%;
    /* Perspektive passend zum MacBook-Winkel */
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) skewY(0.5deg);
    transform-origin: left top;
    overflow: hidden;
    border-radius: 4px;
}

.macbook-mockup .screen-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.macbook-mockup .frame {
    position: relative;
    width: 100%;
    z-index: 2;
}

.macbook-mockup .frame img {
    width: 100%;
    display: block;
}

/* 3D Laptop - Randlos */
.laptop-3d {
    position: relative;
    width: 100%;
    max-width: 550px;
    perspective: 1500px;
}

.laptop-3d-inner {
    transform-style: preserve-3d;
}

/* Display - kein Rand */
.laptop-3d .display {
    transform-origin: bottom;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
}

.laptop-3d .display img {
    width: 100%;
    display: block;
    border-radius: 4px 4px 0 0;
}

/* Tastatur-Basis */
.laptop-3d .base {
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
    padding: 12px 20px 16px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-top: -1px;
}

/* Tastatur */
.laptop-3d .keys {
    background: #1a1a1a;
    height: 55px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 4px;
}

.laptop-3d .keys::before {
    content: '';
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    background:
        repeating-linear-gradient(90deg, #2d2d2d 0px, #2d2d2d 20px, #1a1a1a 20px, #1a1a1a 22px);
    border-radius: 2px;
}

/* Trackpad */
.laptop-3d .trackpad {
    background: linear-gradient(180deg, #d0d0d0, #b0b0b0);
    width: 40%;
    height: 40px;
    border-radius: 4px;
    margin: 0 auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* 3D Varianten */
.laptop-3d.left {
    transform: rotateY(-8deg);
}

.laptop-3d.right {
    transform: rotateY(8deg);
}

.laptop-3d:hover {
    transform: rotateY(0deg) scale(1.02);
}

/* MacBook 3D Frame - Perspektive von links */
.macbook-frame-3d {
    position: relative;
    width: 100%;
    max-width: 600px;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(-12deg) rotateX(4deg);
    transition: transform 0.5s ease;
}

.macbook-frame-3d:hover {
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) scale(1.02);
}

.macbook-frame-3d .macbook-screen {
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0 8px;
    box-shadow:
        -20px 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.macbook-frame-3d .macbook-base {
    background: linear-gradient(180deg, #d4d4d4, #a3a3a3);
    height: 18px;
    border-radius: 0 0 10px 10px;
    box-shadow:
        -15px 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* MacBook 3D Frame - Perspektive von rechts */
.macbook-frame-3d-right {
    position: relative;
    width: 100%;
    max-width: 600px;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(12deg) rotateX(4deg);
    transition: transform 0.5s ease;
}

.macbook-frame-3d-right:hover {
    transform: perspective(1200px) rotateY(6deg) rotateX(2deg) scale(1.02);
}

.macbook-frame-3d-right .macbook-screen {
    background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0 8px;
    box-shadow:
        20px 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.macbook-frame-3d-right .macbook-base {
    background: linear-gradient(180deg, #d4d4d4, #a3a3a3);
    height: 18px;
    border-radius: 0 0 10px 10px;
    box-shadow:
        15px 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Device Showcase Section */
.device-showcase {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-button {
    display: inline-block;
    transition: transform 0.2s;
}

.store-button:hover {
    transform: scale(1.05);
}

.store-button img {
    height: 50px;
    width: auto;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-brand img {
    height: 100px;
    width: 100px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9ca3af;
    max-width: 300px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #374151;
    border-radius: 50%;
    color: white;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 568px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .logo img {
    height: 60px;
    width: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.auth-card h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #374151;
}

.admin-sidebar .logo img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-sidebar .logo span {
    font-weight: 600;
    font-size: 1.125rem;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 0.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(37, 99, 235, 0.2);
    color: white;
}

.admin-nav a.active {
    background: var(--primary);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background: var(--light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--dark);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Admin Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-stat-card .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.admin-stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.admin-stat-card .label {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.admin-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid #e5e7eb;
}

.admin-table tr:not(:last-child) td {
    border-bottom: 1px solid #e5e7eb;
}

.admin-table tr:hover td {
    background: #f9fafb;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-layout {
        flex-direction: column;
    }
}

/* Hero Slider - CSS Grid Overlay */
.hero-slider {
    display: grid;
    place-items: center;
    width: 100%;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Device Frames - Desktop */
.hero-ipad {
    width: 500px;
    padding: 6px;
    border-radius: 20px;
}

.hero-ipad .ipad-screen {
    border-radius: 14px;
}

.hero-ipad .ipad-screen img {
    border-radius: 0;
    width: 100%;
}

.hero-macbook {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Tablet */
@media (max-width: 968px) {
    .hero-iphone {
        width: 220px;
        height: 450px;
    }

    .hero-ipad {
        width: 380px;
        max-width: 90vw;
    }

    .hero-macbook {
        max-width: 90vw;
        max-height: 350px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-iphone {
        width: 180px;
        height: 370px;
        border-radius: 32px;
        padding: 5px;
    }

    .hero-iphone .iphone-notch {
        width: 80px;
        height: 22px;
    }

    .hero-ipad {
        width: 300px;
        max-width: 85vw;
        padding: 5px;
        border-radius: 16px;
    }

    .hero-macbook {
        max-width: 85vw;
        max-height: 280px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-iphone {
        width: 150px;
        height: 310px;
        border-radius: 28px;
        padding: 4px;
    }

    .hero-iphone .iphone-notch {
        width: 65px;
        height: 18px;
    }

    .hero-ipad {
        width: 250px;
        max-width: 80vw;
        padding: 4px;
        border-radius: 14px;
    }

    .hero-macbook {
        max-width: 80vw;
        max-height: 200px;
    }
}

/* ============================================
   Enhanced Mobile Responsive Styles
   ============================================ */

/* Mobile Hero */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

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

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Screenshots */
    .screenshots-container {
        flex-direction: column;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    /* CTA Section */
    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Download Cards */
    .download-cards {
        grid-template-columns: 1fr;
    }
}

/* Small Phone */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

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

    .feature-card {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .nav-brand span {
        font-size: 1.25rem;
    }

    .nav-brand img {
        height: 36px;
        width: 36px;
    }
}

/* Safe Area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Touch-friendly targets */
@media (pointer: coarse) {
    .nav-links a,
    .btn,
    .feature-card,
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .nav-toggle {
        padding: 10px;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Better text rendering on mobile */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        hyphens: auto;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Smooth scrolling for iOS */
* {
    -webkit-overflow-scrolling: touch;
}

/* Disable tap highlight */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
    }
}
