:root {
    color-scheme: dark;
    --background: #060814;
    --surface: rgba(14, 20, 38, 0.94);
    --surface-soft: rgba(20, 30, 60, 0.85);
    --text: #f7f8ff;
    --muted: #98a8c0;
    --accent: #7c5cff;
    --accent-2: #00f6ff;
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.25), transparent 22%),
                radial-gradient(circle at bottom right, rgba(0, 246, 255, 0.12), transparent 18%),
                linear-gradient(180deg, #050810 0%, #0d1031 100%);
    color: var(--text);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 36px;
    position: sticky;
    top: 0;
    background: rgba(6, 8, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1001;
    transition: all 0.3s ease;
}

.brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(400px, 80%);
    height: 100vh;
    background: var(--surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.nav-links.active { right: 0; }

/* Auth Actions Styling */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover { color: var(--text); }

.auth-button {
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(124, 92, 255, 0.3);
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

/* Hamburger Icon */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
    transform: translateX(-5px);
}

/* Dropdown Menu für Socials */
.nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.dropdown-trigger {
    color: var(--muted);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.dropdown-trigger:hover { color: var(--text); }

.dropdown-arrow {
    margin-left: 10px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown.active .dropdown-trigger { color: var(--text); }

.dropdown-content { display: none; flex-direction: column; gap: 20px; margin-top: 20px; width: 100%; align-items: center; }
.nav-dropdown.active .dropdown-content { display: flex; }
.dropdown-content a { font-size: 1.2rem !important; opacity: 0.8; }
.dropdown-content a:hover { opacity: 1; }

.hero-header {
    padding-bottom: 22px;
}

.main-content {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    flex: 1;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    margin-top: 40px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #7c5cff;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-panel h1 {
    font-size: clamp(3rem, 4vw, 5.2rem);
    line-height: 0.95;
    margin: 0;
}

.lead {
    max-width: 610px;
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 24px;
    line-height: 1.8;
}

.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    padding: 16px 28px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #070a1d;
    box-shadow: 0 20px 40px rgba(124, 92, 255, 0.24);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

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

.hero-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    padding: 34px;
    width: 100%;
    min-height: 340px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.tag {
    display: inline-flex;
    padding: 10px 18px;
    background: rgba(124, 92, 255, 0.18);
    color: var(--accent-2);
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-card h2 {
    margin: 0 0 18px;
    font-size: 2rem;
}

.hero-card p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

.hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text);
    display: grid;
    gap: 12px;
}

.hero-card li::before {
    content: '→';
    margin-right: 10px;
    color: var(--accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 56px;
}

.features-grid article {
    background: rgba(255, 255, 255, 0.05);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.features-grid h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.profile-panel,
.error-panel {
    margin-top: 60px;
    padding: 42px;
    background: var(--surface);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 32px 0;
}

.profile-grid div {
    background: rgba(255, 255, 255, 0.03);
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-grid strong {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
}

.footer {
    padding: 32px 36px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
    .hero-panel,
    .features-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 18px;
    }
}
