:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #8a8a9a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --accent: #fff;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

::selection {
    background: var(--text-main);
    color: var(--bg-color);
}



/* Background Aurora */
.aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3;
    overflow: hidden;
    background: #000;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px; height: 600px;
    background: rgba(120, 20, 255, 0.3);
    top: -10%; left: -10%;
    animation-delay: 0s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: rgba(255, 20, 100, 0.2);
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}
.orb-3 {
    width: 700px; height: 700px;
    background: rgba(20, 100, 255, 0.2);
    top: 40%; left: 40%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 25px 50px;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 100;
}
.navbar.scrolled {
    padding: 15px 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; display: inline-block; }
.logo span { color: var(--text-muted); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}
.nav-links a:hover { color: var(--text-main); }

/* Typography & Reveals */
.section-kicker {
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 15px; display: inline-block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 5px;
}

h2 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 60px; }

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-text.visible {
    opacity: 1; transform: translateY(0);
}

/* Hero Section */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px;
}
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; }

.hero-label {
    font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
    margin-bottom: 30px; text-transform: uppercase; letter-spacing: 0.15em;
    padding: 8px 20px; border: 1px solid var(--border); border-radius: 30px;
    background: rgba(255, 255, 255, 0.02); display: inline-flex; align-items: center;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 6px; height: 6px; background: #33ffaa; border-radius: 50%;
    margin-right: 10px; box-shadow: 0 0 10px #33ffaa; animation: blinkDot 2s infinite;
}
@keyframes blinkDot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.modern-title {
    font-size: 7.5rem; font-weight: 900; line-height: 0.95; letter-spacing: -0.06em;
    margin-bottom: 35px;
    background: linear-gradient(90deg, #ffffff 0%, #555555 25%, #ffffff 50%, #555555 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shineText 6s linear infinite;
}

@keyframes shineText {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.3rem; color: var(--text-muted); max-width: 650px; margin: 0 auto;
    font-weight: 400; line-height: 1.6;
}

/* Metrics Section */
.metrics-section {
    padding: 60px 20px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.3); backdrop-filter: blur(10px);
}
.metrics-container {
    max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px;
}
.metric { text-align: center; }
.metric-number {
    font-size: 3.5rem; font-weight: 800; line-height: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #555 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.metric-number .suffix, .metric-number .prefix { font-size: 1.5rem; -webkit-text-fill-color: var(--text-muted); }
.metric-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; }

/* News Section */
.news-section { padding: 140px 20px; max-width: 1400px; margin: 0 auto; }
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px;
}
.news-card {
    display: block; text-decoration: none; color: var(--text-main);
    background: rgba(20, 20, 25, 0.4); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px; transition: all 0.4s ease;
    position: relative; overflow: hidden; backdrop-filter: blur(15px);
}
.news-card:hover {
    background: rgba(30, 30, 35, 0.6); border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
}
.news-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 15px; }
.news-card h3 { font-size: 1.5rem; margin-bottom: 15px; letter-spacing: -0.02em; }
.news-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; }
.news-link { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; opacity: 0.7; transition: 0.3s; }
.news-card:hover .news-link { opacity: 1; letter-spacing: 0.05em; }
.news-card:hover .arrow { transform: translateX(10px); }

/* Bento Grid Projects */
.projects-section { padding: 100px 20px 140px; max-width: 1400px; margin: 0 auto; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 20px;
}

.bento-card {
    position: relative; display: flex; flex-direction: column;
    text-decoration: none; color: var(--text-main);
    background: rgba(15, 15, 18, 0.5); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px; overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-standard { grid-column: span 1; grid-row: span 1; }

.card-glass {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0; transition: opacity 0.3s ease; z-index: 0; pointer-events: none;
}
.bento-card:hover .card-glass { opacity: 1; }
.bento-card:hover { border-color: rgba(255,255,255,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

.card-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }

.card-status {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 6px 12px; border-radius: 8px; display: inline-block;
}
.status-active { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 15px rgba(255,255,255,0.1); }
.status-build { background: rgba(100, 100, 100, 0.1); color: var(--text-muted); }
.status-soon { background: rgba(150, 150, 150, 0.1); color: #ccc; }
.status-future { border: 1px dashed var(--border); color: var(--text-muted); }

/* Foszto AI Shutdown logic - Liquid Glass */
.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.countdown-label::before {
    content: '';
    width: 6px; height: 6px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3333;
    animation: pulseRed 1.5s infinite alternate;
}

.countdown-timer {
    display: flex;
    gap: 6px;
    align-items: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(40, 10, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 51, 51, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 15px rgba(255, 51, 51, 0.1);
    border-radius: 8px;
    width: 46px;
    height: 48px;
    position: relative;
    overflow: hidden;
}
.time-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.time-block::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(0deg, rgba(255,51,51,0.05), transparent);
    pointer-events: none;
}

.time-num {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.time-unit {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 51, 51, 0.8);
    margin-top: 3px;
    letter-spacing: 0.1em;
}

.time-colon {
    color: rgba(255, 51, 51, 0.4);
    font-weight: 700;
    font-size: 1rem;
    animation: blinkDot 2s infinite;
}

@keyframes pulseRed {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.3); }
}

.bento-card h3 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.03em; }
.bento-standard h3 { font-size: 1.5rem; }
.bento-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 25px; }

.explore-link { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; opacity: 0.5; transition: 0.3s; }
.bento-card:hover .explore-link { opacity: 1; letter-spacing: 0.05em; }
.explore-link .arrow { transition: transform 0.3s; }
.bento-card:hover .arrow { transform: translateX(12px); }

/* Card Reveal Animation */
.reveal-card {
    opacity: 0; transform: scale(0.95) translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-card.visible { opacity: 1; transform: scale(1) translateY(0); }

/* Vision Section */
.vision-section { padding: 140px 20px; border-top: 1px solid var(--border); }
.vision-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.lead-text { font-size: 1.8rem; font-weight: 500; margin-bottom: 35px; letter-spacing: -0.03em; line-height: 1.4; }
.vision-text p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 25px; }
.vision-text strong { color: var(--text-main); }

/* 3D Sphere */
.vision-visual { height: 500px; display: flex; justify-content: center; align-items: center; }
.tech-sphere { width: 350px; height: 350px; position: relative; perspective: 1000px; }
.ring {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2); animation: rotateRing 15s linear infinite;
    transform-style: preserve-3d;
}
.ring::before {
    content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px; background: #fff; border-radius: 50%;
    box-shadow: 0 0 20px #fff, 0 0 40px rgba(100, 150, 255, 0.8);
}
.ring:nth-child(1) { transform: rotateX(70deg) rotateY(0deg); }
.ring:nth-child(2) { transform: rotateX(70deg) rotateY(60deg); animation-duration: 20s; animation-direction: reverse; }
.ring:nth-child(3) { transform: rotateX(70deg) rotateY(120deg); animation-duration: 25s; }
.core-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100px; height: 100px; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

@keyframes rotateRing { 100% { transform: rotateX(70deg) rotateY(360deg); } }

/* Waitlist */
.waitlist-section { padding: 140px 20px; text-align: center; border-top: 1px solid var(--border); }
.waitlist-container { max-width: 700px; margin: 0 auto; background: rgba(20, 20, 25, 0.5); padding: 80px 60px; border-radius: 30px; border: 1px solid var(--border); backdrop-filter: blur(20px); }
.waitlist-container h2 { margin-bottom: 20px; }
.waitlist-container p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.waitlist-form { display: flex; gap: 20px; }
.waitlist-form input {
    flex-grow: 1; padding: 20px 25px; border-radius: 15px; border: 1px solid var(--border);
    background: rgba(0,0,0,0.5); color: #fff; font-family: var(--font-main); font-size: 1.05rem;
    outline: none; transition: 0.3s;
}
.waitlist-form input:focus { border-color: #fff; }
.waitlist-form button {
    padding: 20px 40px; border-radius: 15px; border: none; background: #fff; color: #000;
    font-family: var(--font-main); font-weight: 700; font-size: 1.05rem; display: inline-block;
}

/* Footer Modernizzato */
.modern-footer { padding: 100px 20px 40px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(15,15,18,0.8)); }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-brand-col .logo { font-size: 2.5rem; margin-bottom: 20px; display: inline-block; }
.footer-tagline { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; max-width: 350px; margin-bottom: 25px; }
.footer-contact { color: var(--text-main); font-weight: 600; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 5px; transition: 0.3s; display: inline-block; }
.footer-contact:hover { border-color: #fff; }

.footer-links-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; letter-spacing: -0.02em; color: var(--text-main); }
.footer-links-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 15px; font-weight: 500; transition: 0.3s; width: max-content; }
.footer-links-col a:hover { color: var(--text-main); transform: translateX(5px); }

.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.legal-links { display: flex; gap: 30px; }
.legal-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.legal-links a:hover { color: var(--text-main); }

/* Responsive */
@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .bento-large, .bento-tall, .bento-wide, .bento-standard { grid-column: span 2; grid-row: auto; }
    .modern-title { font-size: 5rem; }
    .vision-container { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-tall, .bento-wide, .bento-standard { grid-column: span 1; }
    .waitlist-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* News Page / Timeline Specifics */
.news-page { background: #030303; }
.news-hero { padding: 180px 20px 80px; text-align: center; border-bottom: 1px solid var(--border); }
.timeline-section { padding: 100px 20px; max-width: 1000px; margin: 0 auto; overflow-x: hidden; }
.timeline-container { position: relative; padding: 40px 0; }
.timeline-line {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15) 10%, rgba(255,255,255,0.15) 90%, transparent);
    transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; margin-bottom: 60px; }
.timeline-item.left { left: 0; padding-right: 60px; text-align: right; }
.timeline-item.right { left: 50%; padding-left: 60px; text-align: left; }

.timeline-dot {
    position: absolute; top: 0; width: 16px; height: 16px;
    background: var(--bg-color); border: 2px solid var(--text-muted);
    border-radius: 50%; z-index: 2; transition: 0.3s;
}
.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }
.timeline-item:hover .timeline-dot { background: #fff; border-color: #fff; box-shadow: 0 0 15px #fff; }
.timeline-dot.active { border-color: #fff; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); }

.timeline-content {
    background: rgba(15, 15, 18, 0.4); border: 1px solid var(--border);
    padding: 35px; border-radius: 20px; backdrop-filter: blur(10px); transition: 0.3s;
}
.timeline-item:hover .timeline-content { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); }

/* Future Items */
.timeline-item.future .timeline-content {
    border-style: dashed;
}
.timeline-item.future:hover .timeline-content {
    border-style: solid;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; display: inline-block; margin-bottom: 15px; }
.news-tag.classified { color: #ff3333; text-shadow: 0 0 10px rgba(255,50,50,0.3); }
.news-tag.upcoming { color: #33aaff; }
.news-tag.release { color: #33ffaa; text-shadow: 0 0 10px rgba(50,255,150,0.3); }
.news-tag.update { color: var(--text-main); }
.news-tag.milestone { color: #ffaa33; }

.timeline-content h3 { font-size: 1.6rem; margin-bottom: 15px; letter-spacing: -0.02em; }
.timeline-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 60px !important; padding-right: 0 !important; text-align: left !important; }
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 12px; right: auto; }
}
