/* ==========================================================================
   Redface Network - Premium Red Aesthetic
   ========================================================================== */

:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050505;
    --bg-light: #ffffff;
    --bg-light-alt: #f4f5f7;
    
    --color-primary: #e60000;
    --color-primary-dark: #b30000;
    --color-primary-light: #ff3333;
    
    --text-main: #ffffff;
    --text-inverse: #0a0a0c;
    --text-muted: #888899;
    --text-muted-inverse: #555566;
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-inverse: rgba(0, 0, 0, 0.1);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-large { margin-top: 4rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--text-inverse);
}

/* Top Banner */
.top-banner {
    background-color: #1a1a20;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-banner a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.top-banner a:hover {
    color: var(--color-primary-light);
}

/* Navbar */
.navbar {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 32px;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-graphics {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 1;
}

.glowing-cube {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230,0,0,0.2) 0%, rgba(5,5,5,0) 70%);
    border: 1px solid rgba(230,0,0,0.3);
    box-shadow: inset 0 0 50px rgba(230,0,0,0.1);
    transform: rotateX(45deg) rotateZ(45deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotateX(45deg) rotateZ(45deg) translateY(0); }
    50% { transform: rotateX(45deg) rotateZ(45deg) translateY(-20px); }
}

/* Newsletter Bar */
.newsletter-bar {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 1.5rem 2rem;
}

.newsletter-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.newsletter-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.newsletter-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 0.25rem 0.25rem 0.25rem 1.5rem;
    width: 100%;
    max-width: 400px;
}

.newsletter-input {
    border: none;
    outline: none;
    flex: 1;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-arrow {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-arrow:hover {
    background: var(--color-primary-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons .icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.social-icons .icon:hover {
    background: white;
    color: var(--color-primary);
}

/* Web3 Section (Red Background) */
.bg-red-gradient {
    background: linear-gradient(135deg, #cc0000 0%, #ff3333 100%);
    color: white;
    padding: 6rem 2rem;
}

.section-kicker {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.section-para {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    opacity: 0.9;
    margin-bottom: 4rem;
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-desc {
    opacity: 0.85;
    line-height: 1.7;
}

/* Split Section */
.split-section {
    display: flex;
    min-height: 80vh;
}

.split-content {
    flex: 1;
    padding: 8rem 4rem;
    background: var(--bg-light);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kicker-red {
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.split-heading {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.text-red {
    color: var(--color-primary);
}

.split-para {
    font-size: 1.1rem;
    color: var(--text-muted-inverse);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.split-actions {
    display: flex;
    gap: 1rem;
}

.split-image {
    flex: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 2rem;
}

/* Portals Section */
.portals-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portals-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portal-card {
    height: 300px;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

.portal-card h3 {
    font-size: 2rem;
    z-index: 2;
    position: relative;
}

.portal-icon {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Get Token Section */
.get-token-section {
    background: linear-gradient(135deg, #111 0%, #1a0000 100%);
    padding: 8rem 2rem;
    position: relative;
}

.get-token-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.get-token-content {
    flex: 1;
}

.get-token-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.get-token-para {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.get-token-card {
    background: #2a2a2a;
    padding: 3rem;
    border-radius: 16px;
    width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.card-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.card-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* News Section */
.news-section {
    background: var(--bg-light-alt);
    color: var(--text-inverse);
    padding: 8rem 2rem;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
}

.news-header {
    background: white;
    padding: 4rem;
    margin-bottom: 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.news-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.news-para {
    font-size: 1.1rem;
    color: var(--text-muted-inverse);
    max-width: 700px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-img {
    width: 100%;
    height: 220px;
    background: #ddd;
    background-size: cover;
    background-position: center;
}

.news-card-content {
    padding: 2rem;
}

.news-card-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--text-muted-inverse);
}

/* Footer */
.main-footer {
    background: var(--bg-darker);
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: white;
}

/* Standard Pages (Whitepaper, Roadmap) */
.page-header {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #111 0%, #1a0000 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    background: var(--bg-light);
    color: var(--text-inverse);
    padding: 6rem 2rem;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2.5rem;
    margin: 4rem 0 1.5rem 0;
    color: var(--text-inverse);
}

.content-wrapper h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem 0;
    color: var(--color-primary);
}

.content-wrapper p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted-inverse);
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
    font-size: 1.125rem;
    color: var(--text-muted-inverse);
    line-height: 1.8;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Diagrams */
.diagram-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.diagram-caption {
    font-size: 0.9rem;
    color: var(--text-muted-inverse);
    margin-top: 1rem;
    font-style: italic;
}

/* Roadmap specific */
.roadmap-timeline {
    position: relative;
    margin: 4rem 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
}

.roadmap-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.roadmap-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.roadmap-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 90%;
    position: relative;
    border-top: 4px solid var(--color-primary);
}

.roadmap-item::after {
    content: '';
    position: absolute;
    right: calc(50% - 10px);
    top: 2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--color-primary);
}

.roadmap-item:nth-child(even)::after {
    left: calc(50% - 10px);
}

.roadmap-date {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 992px) {
    .split-section { flex-direction: column; }
    .split-image { min-height: 400px; }
    .get-token-container { flex-direction: column; text-align: center; }
    .footer-container { grid-template-columns: 1fr; }
    
    .roadmap-timeline::before { left: 20px; }
    .roadmap-item, .roadmap-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }
    .roadmap-content { width: 100%; }
    .roadmap-item::after, .roadmap-item:nth-child(even)::after {
        left: 10px;
    }
}
