/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    background-color: #0D1117;
}

body {
    color: #E6EDF3;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Typography === */
h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
}

/* === Layout === */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex: 1;
}

/* === Utility === */
.accent {
    color: #FF8A34;
}

/* === Links === */
a {
    color: #FF8A34;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0D1117;
    border-bottom: 1px solid #21262D;
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo img {
    height: 32px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #E6EDF3;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF8A34;
    text-decoration: none;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #E6EDF3;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 767px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0D1117;
        border-bottom: 1px solid #21262D;
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* === Footer === */
.site-footer {
    border-top: 1px solid #21262D;
    padding: 32px 0;
    text-align: center;
    color: #7D8590;
    font-size: 14px;
}

.site-footer a {
    color: #FF8A34;
}

/* === Hero === */
.hero {
    padding: 64px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    margin-bottom: 16px;
}

.hero-text p {
    color: #7D8590;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.btn-primary {
    display: inline-block;
    background: #FF8A34;
    color: #0D1117;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    text-decoration: none;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: #161B22;
    border: 1px solid #21262D;
    border-radius: 12px;
    padding: 24px;
}

.feature-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: #7D8590;
    font-size: 14px;
    margin-bottom: 0;
}

/* === App Section === */
.app-section {
    padding: 48px 0 64px;
    text-align: center;
}

.app-section p {
    color: #7D8590;
    max-width: 540px;
    margin: 0 auto;
}

/* === Content Pages (Help, Privacy, EULA) === */
.page-header {
    padding: 48px 0 24px;
}

.content-section {
    background: #161B22;
    border: 1px solid #21262D;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.content-section h2 {
    margin-bottom: 12px;
}

.content-section p,
.content-section ul {
    color: #7D8590;
    font-size: 15px;
    margin-bottom: 12px;
}

.content-section ul {
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
}

.content-section p:last-child,
.content-section ul:last-child {
    margin-bottom: 0;
}

.legal-note {
    color: #7D8590;
    font-size: 14px;
    font-style: italic;
    padding: 24px 0 48px;
}

.page-intro {
    color: #7D8590;
    font-style: italic;
    margin-bottom: 24px;
}
