:root {
    --bg-color: #000;
    --card-bg: #111;
    --text-primary: #fff;
    --text-secondary: #a1a1a6;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --warning: #ffb340;
    --container-width: 1100px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
   FIX: Major scrolling overhaul for mouse wheel compatibility.
   Removed fixed positions and restrictive overflows that fight with mouse events.
*/
html {
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    /* Reset all overflow restrictions to use native browser defaults */
    overflow-x: hidden;
    overflow-y: visible;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Switched to sticky for better performance and scroll behavior */
.navbar {
    min-height: 60px;
    background: #0a0a0a;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-icon {
    width: 42px;
    height: 42px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

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

.btn {
    padding: 10px 20px;
    border-radius: 980px; /* Essential for Apple-style pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.btn-nav {
    background-color: var(--accent);
    color: white !important;
    padding: 8px 16px;
}

.nav-short-text {
    display: none;
}

/* Hero */
.hero {
    padding-top: 60px; /* Reduced since navbar is sticky/static now */
    padding-bottom: 40px;
    text-align: center;
}

.hero-logo {
    width: 240px;
    height: auto;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 16px 36px;
    background-color: var(--accent);
    color: white;
    white-space: normal; /* Allow hero button text to wrap if needed */
}

.hero-disclaimer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-disclaimer-link {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.hero-disclaimer-link:hover {
    color: var(--accent-hover);
}

.chip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #1a1a1a;
    padding: 4px 12px;
    border-radius: 980px;
    text-align: center;
}

/* Gallery - Added overscroll-behavior to prevent mouse trapping */
.gallery {
    padding: 20px 0;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 40px 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 auto;
    width: 850px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: var(--card-bg);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #333;
    border-radius: 16px;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.gallery-btn {
    background: #222;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.gallery-btn:hover {
    background: #333;
}

/* Features */
.features {
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Warnings Section */
.warnings {
    padding: 40px 0;
}

.warning-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid #222;
}

.warning-card h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.warning-label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--warning);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Support */
.support {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, #000 0%, #050505 100%);
}

.support h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.support p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 30px;
}

.btn-support {
    background-color: #ffdd00;
    color: #000 !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 36px;
    white-space: normal;
    border-radius: 980px;
}

/* Release Notes */
.release-notes {
    padding: 40px 0;
}

.release-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid #222;
}

.release-card h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.release-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.release-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.release-item p, .release-item li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.release-item ul {
    list-style: none;
    padding: 0;
}

.release-tag {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid #222;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hero-logo { width: 140px; margin-bottom: 0; }
    .hero h1 { font-size: 2.5rem; }
    .gallery-card { width: 90%; }
    .feature-grid, .warning-grid, .release-grid { grid-template-columns: 1fr; }
    .gallery-scroll { padding: 10px 20px 30px; }
}

@media (max-width: 850px) {
    .nav-full-text { display: none; }
    .nav-short-text { display: inline; }
    .nav-links { gap: 15px; }
}

@media (max-width: 600px) {
    .brand span { display: none; }
}

@media (max-width: 430px) { /* Targeting largest iPhones */
    .navbar { min-height: 70px; }
    .nav-content { justify-content: space-between; }
    .nav-links { gap: 12px; }
    .btn-nav { padding: 8px 12px; font-size: 0.8rem; }
}

@media (max-width: 375px) { /* Targeting smaller iPhones */
    .container { padding: 0 10px; }
    .nav-links { gap: 8px; }
    .btn-nav { padding: 6px 10px; }
    .brand { gap: 5px; } /* Tighten brand gap for very small screens */
}
