/* Color Variables */
:root {
    --violet-primary: #4c1d95;
    --violet-hover: #3b1475;
    --violet-light: #6b46c1;
    --violet-dark: #2e1065;
    --violet-deeper: #1e0a4e;
    --black-primary: #1a1a1a;
    --black-light: #333;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --background-light: #f8f9fa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black-light);
    background: #fff;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--violet-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--violet-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.2s;
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.2s;
}

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

.link-separator {
    color: var(--violet-primary);
    font-size: 1em;
    user-select: none;
    opacity: 0.4;
    margin: 0 4px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--violet-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    right: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.mobile-nav li {
    text-align: left;
    padding: 0;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--violet-primary);
    font-weight: 500;
    font-size: 1.1em;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.mobile-nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mobile-nav a:hover {
    color: var(--violet-hover);
    background: rgba(76, 29, 149, 0.08);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--violet-deeper) 0%, var(--violet-primary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('metaimage.png') top center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.hero .description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--violet-primary);
    color: #ffffff;
}

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

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: var(--violet-primary);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--violet-dark) 100%);
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 700;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    color: var(--text-dark);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: var(--violet-primary);
}

.feature p {
    color: var(--text-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--violet-primary);
}

.feature p {
    color: var(--text-light);
}

/* What is Ethrex Section */
.what-is-ethrex {
    padding: 80px 0;
    background: rgba(76, 29, 149, 0.06);
    color: var(--text-dark);
}

.what-is-ethrex h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--violet-primary);
    font-weight: 700;
}

.what-is-ethrex p {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.what-is-ethrex .btn-primary {
    background: var(--violet-primary);
    color: white;
}

.what-is-ethrex .btn-primary:hover {
    background: var(--violet-hover);
    transform: translateY(-2px);
}

/* Use Cases Section */
.use-cases {
    padding: 80px 0;
    background: #ffffff;
}

.use-cases h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--violet-primary);
    font-weight: 700;
}

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

.use-case {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--violet-primary);
}

.use-case h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--violet-primary);
}

.use-case p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.use-case ul {
    color: var(--text-light);
    padding-left: 1.2rem;
}

.use-case .btn-primary {
    background: var(--violet-primary);
    color: #ffffff;
}

.use-case .btn-primary:hover {
    background: var(--violet-hover);
    transform: translateY(-2px);
}

/* Community Section */
.community {
    padding: 80px 0;
    text-align: center;
    background: rgba(76, 29, 149, 0.05);
}

.community h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--violet-primary);
    font-weight: 700;
}

.community p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: var(--violet-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 600;
}

.community-link:hover {
    background: var(--violet-hover);
    transform: translateY(-2px);
}

.community-link:nth-child(even) {
    background: var(--violet-dark);
    color: white;
}

.community-link:nth-child(even):hover {
    background: var(--black-primary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet-deeper) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav {
        padding: 1rem 2rem;
    }

    .hero {
        min-height: 100vh;
        padding: 100px 20px 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .community-links {
        flex-direction: column;
        align-items: center;
    }
}
