/* 
  Beydex Official Colors 
  Background: hsl(0, 0%, 7.1%) -> approx #121212
  Foreground: hsl(0, 0%, 98%) -> approx #FAFAFA
  Primary: hsl(180, 100%, 25.1%) -> #008080 (Teal)
  Secondary/Muted: hsl(0, 0%, 14.9%) -> #262626
  Border: hsl(0, 0%, 14.9%) -> #262626
*/

:root {
    --bg-color: #121212;
    --text-color: #FAFAFA;
    --primary-color: #008080;
    --primary-hover: #006666;
    --secondary-bg: #262626;
    --border-color: #262626;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a, button, .feature-card {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    outline: none;
}

a:hover, a:focus, a:active {
    text-decoration: underline;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-button {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 4px;
}

.menu-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}


/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    border: none;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.button:focus, .button:active {
    outline: none;
}

.button-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.button-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.button-secondary {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.button-secondary:hover {
    background-color: #333333;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url('beydex.webp') no-repeat center center;
    background-size: cover;
    text-align: center;
}

.hero-container {
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 18px;
    color: #e5e5e5;
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Community Section */
.community {
    padding: 80px 0;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

.text-center {
    text-align: center;
}

.community-description {
    color: #a3a3a3;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Features Grid */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px auto;
    display: block;
}

.feature-card {
    background-color: var(--secondary-bg);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-icon {
    border-radius: 8px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-description {
    color: #e5e5e5;
    font-size: 15px;
}

.features-action {
    text-align: center;
}

/* Detailed Features Page */
.page-content {
    padding: 60px 0;
    min-height: calc(100vh - 180px);
}

.page-title {
    font-size: 40px;
    margin-bottom: 16px;
    text-align: center;
}

.page-description {
    text-align: center;
    color: #a3a3a3;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.detailed-features-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.detailed-feature-item {
    display: flex;
    align-items: center;
    gap: 48px;
}

.detailed-feature-item.reverse {
    flex-direction: row-reverse;
}

.detailed-feature-image {
    flex: 1;
    max-width: 50%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.detailed-feature-text {
    flex: 1;
}

.detailed-feature-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.detailed-feature-text p {
    color: #a3a3a3;
    font-size: 16px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    background-color: var(--bg-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #737373;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #737373;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        position: relative;
        justify-content: center;
    }

    .menu-button {
        display: block;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 250px;
        height: 100vh;
        background-color: var(--bg-color);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.8);
        gap: 32px;
    }

    .nav.open {
        right: 0;
    }

    .nav a {
        font-size: 18px;
        width: 100%;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .detailed-feature-item, .detailed-feature-item.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .detailed-feature-image {
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.feature-card {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background-color: #252525;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.and-much-more {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 32px;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    margin: auto;
    border: none;
    border-radius: 12px;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    padding: 40px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-icon-container {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #ffffff;
}

.modal-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
    margin-bottom: 24px;
    text-align: left;
}

.modal-extra {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e5e5;
    background-color: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}









@media (min-width: 1024px) {
    .hero {
        background-size: 60%;
    }
}

.no-scroll {
    overflow: hidden;
}
