:root {
    --bg-black: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --accent-blue: #0A84FF;
    --glass-bg: rgba(28, 28, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-radius: 18px;
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Standardized Typography Sizes */
    --fs-h1: clamp(32px, 5vw, 56px);
    --fs-h2: clamp(24px, 4vw, 32px);
    --fs-h3: clamp(18px, 3vw, 22px);
    --fs-body: 17px;
    --fs-sub: clamp(18px, 2.5vw, 24px);
    --fs-label: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Nav Bar */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 0.5px solid var(--glass-border);
}

.nav-content {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
}

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

/* Main Container */
.container {
    max-width: 980px;
    margin: 120px auto 100px;
    padding: 0 22px;
    width: 100%;
}

/* Typography */
h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: var(--fs-body);
}

.hero-sub {
    font-size: var(--fs-sub);
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

/* Apple Style Card */
.apple-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: clamp(24px, 5vw, 40px);
    margin-bottom: 24px;
    transition: var(--transition);
    border: 0.5px solid transparent;
}

.apple-card:hover {
    transform: scale(1.005);
    background: var(--bg-tertiary);
}

/* Grid Layout - Standardized */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Button */
.btn-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 17px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-apple:hover {
    opacity: 0.85;
}

.btn-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

.btn-link::after {
    content: " ›";
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 4rem 22px;
    background: var(--bg-black);
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    border-top: 0.5px solid var(--glass-border);
}

/* Section labels */
.label {
    color: #f5f5f7;
    font-weight: 600;
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

/* Hero Section */
.hero {
    margin-bottom: 60px;
}

/* Utility classes to avoid inline styles */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.color-secondary { color: var(--text-secondary); }

/* Custom Profile Circle for Author */
.profile-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

/* QR Code Block for Sponsor */
.qr-placeholder {
    background: white;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: black;
    font-weight: bold;
    font-size: 12px;
}
