/* --- CSS Variables & Theming --- */
:root {
    --bg-color: #0b0f19;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6; /* Blue */
    --accent-secondary: #8b5cf6; /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Glow Effects --- */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.bg-glow-secondary {
    top: auto;
    bottom: -20%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Text Utility --- */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}
h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.divider {
    height: 4px;
    width: 60px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 1rem auto 2rem;
}

/* --- Header / Navbar --- */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    background: rgba(11, 15, 25, 0.8);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-cordelia {
    color: var(--text-primary);
}
.brand-software {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.nav-links a:hover {
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero-section {
    padding: 8rem 0 6rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.display-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-heading);
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* --- Apps Section --- */
.apps-section {
    padding: 5rem 0;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}
.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}
.app-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.app-logo-wrapper {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--card-border);
    padding: 2rem;
}
.sporkolig-bg {
    background: linear-gradient(135deg, rgba(34,197,94,0.05) 0%, rgba(20,83,45,0.05) 100%);
}
.app-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}
.app-card:hover .app-logo {
    transform: scale(1.05);
}
.app-info {
    padding: 2.5rem;
}
.app-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.app-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.app-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.app-features span {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.app-features i {
    color: var(--accent-primary);
    width: 24px;
    font-size: 1.1rem;
}
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
    min-width: 160px;
}
.store-btn:hover {
    background: #111;
    border-color: rgba(255,255,255,0.3);
}
.store-btn i {
    font-size: 1.8rem;
}
.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.store-text small {
    font-size: 0.6rem;
    color: #aaa;
    line-height: 1;
}
.store-text span {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* --- Trust / About Section --- */
.trust-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--card-border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}
.trust-item {
    padding: 2rem;
}
.trust-item i {
    margin-bottom: 1.5rem;
}
.trust-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.trust-item p {
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.slide-in-left {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.slide-in-right {
    animation: slideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-section { min-height: 60vh; padding: 6rem 0 4rem; }
    .store-buttons { flex-direction: column; width: 100%; }
    .store-btn { width: 100%; justify-content: center; }
}