* {
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --accent-color: #0071e3;
    --secondary-bg: #f5f5f7;
    --timeline-color: #d2d2d7;
    --card-bg: rgba(255, 255, 255, 0.7);
    
    /* Domain Colors for "Character" */
    --color-fitness: #34c759;
    --color-wealth: #ffcc00;
    --color-intelligence: #af52de;
    --color-mystery: #ff3b30;
    
    --potential-gradient: linear-gradient(135deg, #0071e3 0%, #5ac8fa 50%, #34c759 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Global subtle pattern */
    background-image: radial-gradient(rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Character: Potential Pulse Animation */
@keyframes potentialPulse {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.4; }
    33% { transform: translate(-51%, -49%) scale(1.1) rotate(2deg); opacity: 0.7; }
    66% { transform: translate(-49%, -51%) scale(0.95) rotate(-2deg); opacity: 0.55; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.4; }
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Full width for all screen sizes */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Updated Hero: Infused with branding character */
.hero {
    text-align: center;
    padding: 160px 22px 140px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: transparent;
    overflow: hidden;
}

/* Character: The OS Grid */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 113, 227, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 90%);
    z-index: -1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(0, 113, 227, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(52, 199, 89, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(175, 82, 222, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 59, 48, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(255, 204, 0, 0.1) 0%, transparent 30%);
    z-index: -2;
    pointer-events: none;
    filter: blur(120px);
    animation: potentialPulse 15s ease-in-out infinite;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 32px;
    border-radius: 32px;
    box-shadow: 
        0 30px 60px rgba(0, 113, 227, 0.2),
        0 0 0 1px rgba(0,0,0,0.05);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #fff;
    animation: fadeInUp 0.8s ease-out forwards;
}

.app-logo:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 40px 80px rgba(0, 113, 227, 0.3);
}

h1 {
    font-size: 84px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #515154;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Character: Highlight "Human Potential" */
.hero-subtitle span {
    background: linear-gradient(90deg, #0071e3, #5ac8fa, #34c759, #0071e3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
    position: relative;
    display: inline-block;
}

.hero-subtitle span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--potential-gradient);
    opacity: 0.3;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
    padding: 18px 48px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.btn:hover {
    background: #1d1d1f;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    opacity: 0;
    width: 100%; /* Ensure it centers in the flex container */
}

.btn-secondary:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

/* Releases Section */
.releases {
    padding: 100px 22px;
    background: rgba(245, 245, 247, 0.5);
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.releases-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
}

.releases-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.release-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
}

.release-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.release-card .version {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.release-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.release-card p {
    font-size: 16px;
    color: #424245;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.release-card .arrow {
    font-size: 20px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

/* Modal for Release Notes */
.release-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.modal-content {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px 22px;
    position: relative;
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 32px;
    cursor: pointer;
    color: #86868b;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
}

.modal-body {
    font-size: 17px;
    line-height: 1.6;
}

.modal-body h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 32px;
}

.modal-body h3 {
    margin-top: 32px;
    font-size: 24px;
    font-weight: 700;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
}

.modal-body strong {
    color: #1d1d1f;
}

@media screen and (max-width: 768px) {
    .modal-content { margin: 60px auto; }
    .modal-body h2 { font-size: 32px; }
}

.release-card:hover .arrow {
    transform: translateX(8px);
}

@media screen and (max-width: 768px) {
    .releases { padding: 60px 22px; }
    .releases-title { font-size: 36px; }
    .release-card { padding: 30px; }
}

/* Roadmap Timeline */
.roadmap {
    padding: 120px 22px;
    background: #ffffff;
}

.roadmap-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 100px;
    letter-spacing: -0.03em;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--timeline-color), var(--timeline-color) 80%, transparent);
    top: 40px;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 60px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    top: 45px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--bg-color);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.4);
    background-color: var(--accent-color);
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -7px; }

.timeline-content {
    padding: 32px;
    background-color: var(--card-bg);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Character: Roadmap Domain Coloring */
.timeline-item.fitness::after { border-color: var(--color-fitness); }
.timeline-item.fitness .version-tag { color: var(--color-fitness); }

.timeline-item.wealth::after { border-color: var(--color-wealth); }
.timeline-item.wealth .version-tag { color: var(--color-wealth); }

.timeline-item.intelligence::after { border-color: var(--color-intelligence); }
.timeline-item.intelligence .version-tag { color: var(--color-intelligence); }

.timeline-item.released .timeline-content { background-color: rgba(242, 242, 247, 0.5); }
.timeline-item.released::after { background-color: var(--accent-color); }
.timeline-item.in-progress::after { border-color: #ff9f0a; }

.timeline-item.mysterious .timeline-content {
    background: linear-gradient(145deg, #1c1c1e 0%, #000 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.timeline-item.mysterious::after {
    background-color: #000;
    border-color: var(--color-mystery);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.6), 0 0 0 6px var(--bg-color);
}

.version-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #86868b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.status-label {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 99px;
    margin-left: 12px;
    font-weight: 700;
}

.status-released { background: #e8f5e9; color: #1b5e20; }
.status-progress { background: #fff3e0; color: #e65100; }

.timeline-content h3 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.timeline-content p { margin: 0; font-size: 16px; line-height: 1.5; color: #424245; }
.timeline-item.mysterious .timeline-content p { color: #a1a1a6; }

@media screen and (max-width: 768px) {
    .hero { padding: 100px 22px 60px; }
    h1 { font-size: 52px; }
    .hero-subtitle { font-size: 24px; }
    
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 0; margin-bottom: 30px; }
    .timeline-item::after { left: 24px; top: 45px; }
    .right { left: 0%; }
    .right::after { left: 24px; }
    
    .roadmap-title { font-size: 36px; margin-bottom: 60px; }
}

.footer {
    padding: 80px 22px;
    text-align: center;
    font-size: 12px;
    color: #86868b;
    background-color: var(--secondary-bg);
}

.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: #424245; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent-color); }

/* Privacy Policy Specific */
.privacy-content { 
    font-size: 1rem; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 100px 22px; 
    line-height: 1.6;
}

.privacy-content h1 { 
    text-align: center; 
    font-size: 48px; 
    font-weight: 800;
    margin-bottom: 16px; 
    background: none; 
    -webkit-text-fill-color: initial; 
    letter-spacing: -0.03em; 
}

.privacy-content .last-updated {
    text-align: center;
    color: #86868b;
    margin-bottom: 60px;
    font-size: 14px;
}

.privacy-content h2 { 
    border-bottom: 1px solid #d2d2d7; 
    padding-bottom: 12px; 
    margin-top: 60px; 
    font-size: 28px; 
    font-weight: 700;
    letter-spacing: -0.01em;
}

.privacy-content h3 {
    margin-top: 40px;
    font-size: 20px;
    font-weight: 600;
}

.privacy-content h4 {
    margin-top: 30px;
    font-size: 17px;
    font-weight: 600;
}

.privacy-content p {
    margin-bottom: 16px;
    color: #424245;
}

ul { margin-bottom: 24px; padding-left: 20px; }
li { margin-bottom: 12px; color: #424245; }

@media screen and (max-width: 768px) {
    .privacy-content { padding: 60px 22px; }
    .privacy-content h1 { font-size: 32px; margin-bottom: 12px; }
    .privacy-content h2 { font-size: 24px; margin-top: 40px; }
    .privacy-content h3 { font-size: 18px; margin-top: 30px; }
}
