:root {
    --background-color: #000000;
    --text-color: #f5f5f7;
    --accent-color: #2997ff;
    --secondary-text: #86868b;
    --section-background: #1d1d1f;
    --nav-background: rgba(0, 0, 0, 0.8);
    --font-stack: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background-color: var(--nav-background);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

nav a {
    color: #e8e8ed;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 44px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 28px;
    line-height: 1.10722;
    font-weight: 400;
    letter-spacing: 0.004em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: #f5f5f7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 39px;
    width: auto;
    display: block;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background-color: var(--background-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--section-background);
    opacity: 0.9;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.02);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 17px;
    color: var(--secondary-text);
}

/* Footer */
footer {
    background-color: var(--section-background);
    padding: 50px 20px;
    font-size: 12px;
    color: var(--secondary-text);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

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

/* Legal Page Specifics */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.legal-page h1 {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.legal-page p, .legal-page li {
    font-size: 17px;
    line-height: 1.5;
    color: #d2d2d7;
    margin-bottom: 16px;
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #424245;
}

.legal-page th, .legal-page td {
    border: 1px solid #424245;
    padding: 12px;
    text-align: left;
}

.legal-page th {
    background-color: #2d2d2f;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

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