:root {
    /* Apple Dark Mode Palette */
    --bg-color: #000000;
    --card-bg: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-heading: #ffffff;
    --text-secondary: #86868b;
    --accent: #0a84ff;
    --accent-hover: #007aff;
    --border-color: #38383a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 3rem;
}

.logo {
    width: 128px;
    height: 128px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 28px;
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

h3 {
    color: var(--text-heading);
}

.tagline {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.version {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
}

/* Homebrew Container & Copy */
.homebrew-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.homebrew-command {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem 1rem;
    transition: all 0.2s ease;
}

.homebrew-command:hover {
    border-color: #555557;
}

.homebrew-command code {
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    color: var(--text-primary);
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-size: 0.95rem;
}

.copy-icon {
    font-size: 1.1rem;
    opacity: 0.5;
    margin-left: 0.5rem;
}

.homebrew-command:hover .copy-icon {
    opacity: 1;
}

.homebrew-disclaimer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.homebrew-disclaimer a {
    color: var(--accent);
    text-decoration: none;
}

.homebrew-disclaimer a:hover {
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Reusable Card */
.glass-container {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}

/* iMac Frame / Demo Section */
.demo-section {
    margin: 5rem auto;
    text-align: center;
}

.imac-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5rem auto;
    width: 100%;
}

.imac-chassis {
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 95%;
}

.imac-screen-bezel {
    background: #000;
    padding: 16px; /* 16px black bezel all around the screen */
}

.demo-gif {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* Slight rounding for inner screen */
}

.imac-chin {
    height: 60px;
    background: linear-gradient(180deg, #e5e5ea 0%, #d2d2d7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.5);
}

/* Apple logo in the chin */
.imac-chin::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg"><path fill="%23a1a1a6" d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.3 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.3zM34.3 103C60.6 70.3 80.5 49 113.8 45.4 116.7 17.4 135.2 0 159 0c-26 5-49 20.7-65.3 49-16.7 29.5-12.7 57.5-9.3 54z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.imac-stand {
    width: 140px;
    height: 80px;
    background: linear-gradient(180deg, #d2d2d7 0%, #a1a1a6 100%);
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
    position: relative;
    z-index: -1;
    margin-top: -10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Maker's Story */
.story-section {
    max-width: 800px;
    margin: 6rem auto;
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.story-card h2 {
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    font-size: 2rem;
    font-weight: 600;
}

.story-card p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.6;
}

.story-card p:last-child {
    margin-bottom: 0;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 6rem;
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.feature-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 8rem auto 4rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Sticky Coffee Button */
.sticky-coffee-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #FFDD00;
    color: #000;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    border: 1px solid rgba(255, 221, 0, 0.5);
}

.sticky-coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 221, 0, 0.2);
}

/* Sponsors */
.sponsors-section {
    margin-bottom: 3rem;
}

.sponsor-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-sponsor {
    background-color: #ea4aaa;
    color: white;
    border: none;
}

.btn-sponsor:hover {
    background-color: #d13a96;
    color: white;
}

.btn-coffee {
    background-color: #FFDD00;
    color: #000;
    border: none;
}

.btn-coffee:hover {
    background-color: #e6c700;
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .cta-buttons { flex-direction: column; }
    .story-card { padding: 2rem; }
    .imac-frame { border-radius: 12px 12px 0 0; padding: 8px 8px 0 8px; }
}

