:root {
    --primary: #0066FF;
    --primary-dark: #0050CC;
    --primary-light: #4D94FF;
    --secondary: #FF9500;
    --secondary-dark: #CC7800;
    --dark: #121212;
    --dark-light: #2D2D2D;
    --light: #F8F9FA;
    --gray: #6C757D;
    --gray-light: #CED4DA;
    --success: #28A745;
    --danger: #DC3545;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-sphere {
    width: 150px;
    height: 150px;
    position: relative;
    perspective: 500px;
}

.sphere {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate 2s infinite linear;
}

.sphere-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: glow 2s infinite;
    margin-top: 170px;
}

.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.5;
}

.circle:nth-child(1) { transform: rotateY(0deg); }
.circle:nth-child(2) { transform: rotateY(45deg); }
.circle:nth-child(3) { transform: rotateY(90deg); }
.circle:nth-child(4) { transform: rotateY(135deg); }

@keyframes rotate {
    from { transform: rotateY(0deg) rotateX(30deg); }
    to { transform: rotateY(360deg) rotateX(30deg); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary); }
    50% { text-shadow: 0 0 20px var(--primary-light); }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}


.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #eaf0f6 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-graphic {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 40%;
    height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.bitcoin-layer, .l2-layer {
    position: relative;
    width: 100%;
}

.bitcoin-layer {
    height: 40%;
}

.l2-layer {
    height: 60%;
    margin-top: -20px;
    display: flex;
    justify-content: space-around;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
}

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

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

/* Technology Section */
.technology {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.technology .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-list {
    list-style: none;
    margin-top: 2rem;
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.check {
    margin-right: 1rem;
    color: var(--success);
    font-weight: bold;
}

.code-window {
    background-color: var(--dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.window-header {
    background-color: var(--dark-light);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    font-family: 'Courier New', Courier, monospace;
    color: var(--light);
}

/* Business Section */
.business {
    padding: 5rem 0;
    background-color: white;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #eaf0f6 100%);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.business-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

.business-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.business-cta {
    text-align: center;
}

/* Partners Section Styles */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.partner-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .partner-card {
        padding: 4rem;
    }
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.partner-card h3 {
    margin-bottom: 1.5rem;
}

.partner-tagline {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem auto 3rem;
    line-height: 1.4;
    max-width: 800px;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(0, 102, 255, 0.05), rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    border-radius: var(--border-radius);
}

.partner-logo {
    margin-bottom: 2rem;
}

.partner-logo img {
    max-height: 80px;
    max-width: 100%;
}

.partner-details {
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    text-align: left;
}

.detail-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.partner-metrics {
    display: flex;
    justify-content: space-around;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 120px;
    text-align: center;
}

.partnership-details {
    margin: 3rem 0;
    text-align: left;
    background-color: rgba(0, 102, 255, 0.05);
    padding: 3rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.08);
}

.partnership-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 2rem 0 3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.partnership-details h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.partnership-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.partnership-details ul li {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.partnership-details ul li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.partnership-details li {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.partnership-details li:last-child {
    margin-bottom: 0;
}

.partnership-details li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.partnership-details li strong {
    margin-right: 0.25rem;
}

.partner-description {
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.partner-cta {
    margin-top: 2rem;
}

/* Whitepaper Section */
.whitepaper {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.whitepaper .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.whitepaper-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-item h4 {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.paper-graphic {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.paper-cover {
    padding: 2rem;
    text-align: center;
}

.paper-cover h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.paper-cover .subtitle {
    font-size: 1rem;
    color: var(--gray);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: white;
    text-align: center;
}

.contact p {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 250px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--gray-light);
}

.link-group a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* Team Section */
.team {
    padding: 5rem 0;
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Position bottom row members */
.team-grid > div:nth-last-child(2),
.team-grid > div:nth-last-child(1) {
    width: 100%;
    max-width: 280px;
    margin: 0;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(250px, 300px));
    }
    .team-grid > div:nth-last-child(-n+2) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: minmax(250px, 300px);
        justify-content: center;
    }
    .team-grid > div:nth-last-child(-n+2) {
        margin: 0;
        grid-column: auto;
    }
    .team-member {
        height: 650px; /* Slightly larger on mobile */
    }
}

.team-member {
    background: linear-gradient(to bottom, white, #f8faff);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 102, 255, 0.1);
    height: 600px; /* Fixed height for all boxes */
    justify-content: flex-start;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.team-member h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary);
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 102, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member .bio {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.4;
    text-align: left;
    font-size: 0.82rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    height: 220px; /* Fixed height adjusted */
    display: block;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .partnership-details {
        padding: 1.25rem;
    }

    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-graphic {
        opacity: 0.4;
    }
    
    .technology .container,
    .whitepaper .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-graphic {
        order: -1;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-graphic {
        opacity: 0.4;
    }
    
    .technology .container,
    .whitepaper .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-graphic {
        order: -1;
    }
}

@media (max-width: 768px) {
    .partner-metrics {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .partnership-details {
        padding: 1rem;
    }
    
    .partnership-details li {
        margin-bottom: 1rem;
    }
    
    .whitepaper-details {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- hotfix: hide hero/overlay image on small screens --- */

@media (max-width: 1024px) {

  .hero img,

  .hero picture,

  .hero-image,

  .overlay,

  .lightbox,

  .modal,

  [data-lightbox] {

    display: none !important;

  }

}


/* hotfix: remove image from *mobile menu only* */

.mobile-nav img,

nav.mobile img,

#mobile-nav img,

#menu img { display: none !important; }

.mobile-nav, nav.mobile, #mobile-nav, #menu { background-image: none !important; }

