/* ============================================
   Dr. Markus Meier Portal - Premium Apple & Glassmorphism
   Theme: Warm Beige, Frosted Glass, Minimalist
   ============================================ */

:root {
    /* Apple-Style Minimalist Colors (Beige/Sand/Warm White) */
    --bg-base: #f5f3f0;
    --bg-ambient-1: #eadecd;
    --bg-ambient-2: #fdfbf7;
    
    /* Text */
    --text-primary: #1d1d1f; /* Apple typical dark grey/black */
    --text-secondary: #86868b;
    --text-accent: #a98f73;
    
    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(169, 143, 115, 0.08);
    --glass-shadow-hover: 0 20px 45px rgba(169, 143, 115, 0.15);
    --glass-blur: 32px;
    
    /* Fonts */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== AMBIENT WARM BACKGROUND (Aurora/Mesh Gradient) ===== */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(234, 222, 205, 0.8), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(253, 251, 247, 0.9), transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(220, 208, 192, 0.6), transparent 50%);
    filter: blur(80px);
    animation: slowDrift 20s infinite alternate ease-in-out;
}

@keyframes slowDrift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

/* ===== HEADER / NAVIGATION ===== */
header {
    width: 100%;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(245, 243, 240, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

/* ===== HERO SECTION ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 2rem 5rem;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeUp 1s ease forwards;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== FUNNEL GRID (Glassmorphism) ===== */
.funnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.funnel-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.funnel-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.funnel-card:nth-child(1) { animation-delay: 0.1s; }
.funnel-card:nth-child(2) { animation-delay: 0.2s; }
.funnel-card:nth-child(3) { animation-delay: 0.3s; }
.funnel-card:nth-child(4) { animation-delay: 0.4s; }
.funnel-card:nth-child(5) { animation-delay: 0.5s; }

.funnel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.9);
}

.funnel-card:hover::before {
    opacity: 1;
}

.funnel-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.funnel-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.funnel-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.funnel-cta {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.funnel-cta span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    margin-left: 8px;
}

.funnel-card:hover .funnel-cta {
    color: #8c735a;
}
.funnel-card:hover .funnel-cta span {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    main { padding: 7rem 1.5rem 3rem; }
    .hero h1 { font-size: 2.5rem; }
    .funnel-card { padding: 2rem 1.75rem; }
}