/* CSS Reset and Variables */
:root {
    --bg-color: #0b0c10;
    --surface-color: #1f2833;
    --primary-color: #66fcf1;
    --primary-dark: #45a29e;
    --secondary-color: #c5c6c7;
    --text-color: #ffffff;
    --accent-color: #ff007f;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 252, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    z-index: -1;
    border-radius: 54px;
    background-size: 400%;
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.glow-effect:hover::after {
    opacity: 1;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/images/hero_bg.png') no-repeat center center/cover;
    opacity: 0.6;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 12, 16, 0.3) 0%, rgba(11, 12, 16, 1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 3rem;
}

/* Floating Tiles Animation */
.hero-image-wrapper {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 0;
    pointer-events: none;
}

.floating-tile {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.tile-1 { top: 20%; left: 10%; animation-delay: 0s; color: var(--primary-color); }
.tile-2 { top: 50%; right: 10%; animation-delay: -2s; color: var(--accent-color); font-size: 3.5rem; width: 100px; height: 100px; }
.tile-3 { bottom: 10%; left: 30%; animation-delay: -4s; color: #fff; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Features */
.features {
    padding: 8rem 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* CTA Banner */
.cta-banner {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 252, 241, 0.1), rgba(255, 0, 127, 0.1));
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta-banner h2 {
    margin-bottom: 1.5rem;
}

.btn-large {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    margin-top: 2rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 30px;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s;
}

.footer-brand:hover .footer-logo {
    filter: grayscale(0%) opacity(1);
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

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

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-cta { justify-content: center; flex-direction: column; }
    .hero-image-wrapper { display: none; }
    .nav-container { flex-direction: column; justify-content: center; gap: 1rem; }
    header { height: auto; padding: 1rem 0; }
    .hero { padding-top: 120px; }
}

/* Privacy Page / Markdown Styles */
.privacy-page {
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 50px;
    min-height: 80vh;
}
.privacy-container {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.markdown-body {
    color: var(--text-color);
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.markdown-body h1 { font-size: 2.5rem; }
.markdown-body h2 { font-size: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.markdown-body h3 { font-size: 1.5rem; color: var(--text-color); }
.markdown-body p { font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 1rem; }
.markdown-body ul { margin-bottom: 1.5rem; padding-left: 2rem; }
.markdown-body li { color: var(--secondary-color); font-size: 1.1rem; margin-bottom: 0.5rem; }
.markdown-body a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
.markdown-body a:hover { color: var(--primary-color); text-decoration: underline; }
.markdown-body table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,0.1); padding: 12px; text-align: left; }
.markdown-body th { background: rgba(0,0,0,0.3); color: var(--primary-color); }
.markdown-body hr { border: 0; border-bottom: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
.markdown-body strong { color: var(--text-color); }
