:root {
    --bg-color: #f5f5f7;
    /* Apple-like light gray */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    /* Apple Blue */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --card-radius: 24px;
    --btn-radius: 980px;
    /* Pill shape */
    --font-stack: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(162, 222, 250, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(228, 201, 250, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(189, 240, 222, 0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(250, 223, 194, 0.4) 0px, transparent 50%);
    background-attachment: fixed;
    /* Keep background steady */
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glass Container Base */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

header {
    margin-bottom: 40px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

p.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0;
}

/* --- Components --- */

/* Buttons */
.btn {
    border: none;
    padding: 12px 24px;
    border-radius: var(--btn-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Inputs */
input,
select,
textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.4);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* Grid Layout */
.grid {
    display: grid;
    row-gap: 80px;
    /* Vertical spacing */
    column-gap: 48px;
    /* Horizontal spacing */
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card h2 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-red {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.badge-green {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.badge-blue {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

/* Animation Utils */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* Navbar */
.nav-bar {
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 40px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1200px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Log Console window style */
.log-console {
    background: rgba(0, 0, 0, 0.03);
    color: #48484a;
    /* iOS Dark Gray */
    font-family: "SF Mono", "Menlo", "Monaco", monospace;
    padding: 15px;
    border-radius: 16px;
    height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.01);
}