/* Custom Font Definitions */
@font-face {
    font-family: 'Axiforma';
    src: url('uploads/fonts/Axiforma-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('uploads/fonts/Axiforma-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('uploads/fonts/Axiforma-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('uploads/fonts/Axiforma-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
:root {
    --primary: #615CF6;
    --dark: #1A1A1A;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-bg: #F8F8F8;
    --border-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Axiforma', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #5048e0;
    border-color: #5048e0;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--dark);
    margin-left: 12px;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

/* Updated Header with Circular Container Style */
header {
    height: 80px;
    background-color: transparent;
    border-bottom: none;
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1160px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 2.25rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 32px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-button .btn-primary {
    border-radius: 20px;
    padding: 0.6rem 1.5rem;
}

/* Responsive adjustments for the header */
@media (max-width: 1024px) {
    header .container {
        max-width: calc(100% - 40px);
    }
    
    nav ul li {
        margin-left: 24px;
    }
}

@media (max-width: 900px) {
    header {
        top: 15px;
    }
    
    header .container {
        border-radius: 30px;
        padding: 0 20px;
        max-width: calc(100% - 30px);
    }
    
    nav ul li {
        margin-left: 20px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-icon {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    header {
        top: 10px;
        height: 70px;
    }
    
    header .container {
        border-radius: 25px;
        padding: 0 20px;
        max-width: calc(100% - 20px);
    }
    
    .logo img {
        height: 2rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }
    
    .hamburger-menu {
        display: block;
        width: 28px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 100;
    }
    
    .hamburger-menu .bar {
        width: 100%;
        height: 2px;
        background-color: var(--text-dark);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu .bar:nth-child(1) {
        top: 0;
    }
    
    .hamburger-menu .bar:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-menu .bar:nth-child(3) {
        bottom: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    header {
        top: 8px;
        height: 60px;
    }
    
    header .container {
        border-radius: 20px;
        padding: 0 16px;
        max-width: calc(100% - 16px);
    }
    
    .logo img {
        height: 1.75rem;
    }
    
    .social-icon {
        font-size: 1rem;
    }
    
    .hamburger-menu {
        width: 24px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    header .container {
        padding: 0 12px;
    }
    
    .logo img {
        height: 1.5rem;
    }
    
    .social-icon {
        font-size: 0.9rem;
    }
}

/* Hero Section with Decorative Background Image */
.hero {
    padding: 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    --x-rotation: 0deg;
    --y-rotation: 0deg;
}

/* Add 3D hover effect for decorative background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 25%;
    width: 50%;
    height: 100%;
    background-image: url('uploads/imgs/9077877.png');
    background-size: cover;
    background-position: center left;
    opacity: 0.5;
    z-index: 1;
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    transform: rotateX(var(--x-rotation)) rotateY(var(--y-rotation)) translateZ(20px);
}

.hero .container {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    text-align: center;
    
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Heading Animation */
.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

@keyframes wordEntrance {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fades the actual text to transparent so the gradient ::before shows through */
@keyframes textColorFade {
    0%, 10%  { color: var(--dark); }
    40%, 60% { color: transparent; }
    80%, 100% { color: var(--dark); }
}

/* Fades the gradient layer in and out in sync */
@keyframes fadeGradient {
    0%, 10%  { opacity: 0; }
    30%, 60% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

.hero-content h1 span {
    display: inline-block;
    position: relative;
    color: var(--dark);
}

/* wordEntrance runs once on load; textColorFade loops after it settles.
   Delays staggered 2 s apart so the gradient scans Launch → Curve → Soar. */
.hero-content h1 span:nth-child(1) {
    animation:
        wordEntrance  0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both,
        textColorFade 6s  linear                          1.0s  infinite;
}

.hero-content h1 span:nth-child(2) {
    animation:
        wordEntrance  0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both,
        textColorFade 6s  linear                          3.0s  infinite;
}

.hero-content h1 span:nth-child(3) {
    animation:
        wordEntrance  0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both,
        textColorFade 6s  linear                          5.0s  infinite;
}

/* Gradient overlay — absolutely positioned over the text,
   revealed only while textColorFade makes the text transparent */
.hero-content h1 span::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #615CF6, #ffc661);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    z-index: 1;
}

.hero-content h1 span:nth-child(1)::before {
    animation: fadeGradient 6s linear 1.0s infinite;
}

.hero-content h1 span:nth-child(2)::before {
    animation: fadeGradient 6s linear 3.0s infinite;
}

.hero-content h1 span:nth-child(3)::before {
    animation: fadeGradient 6s linear 5.0s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content h1 span {
        animation: none;
        opacity: 1;
        transform: none;
        color: var(--dark);
    }
    .hero-content h1 span::before {
        display: none;
    }
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

/* Responsive Improvements */

/* General responsive adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        max-width: 38rem;
    }
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
        max-width: 34rem;
        margin-bottom: 2rem;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    /* Hero adjustments */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 5rem 0 8rem;
        perspective: none;
    }

    .hero::before {
        transform: none;
        will-change: auto;
        transition: none;
        opacity: 0.3;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.08;
        letter-spacing: -0.025em;
        margin-bottom: 1.25rem;
        text-align: left;
    }

    .hero-content h1 span {
        display: block;
    }

    .hero-content p {
        font-size: 1.0625rem;
        line-height: 1.7;
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    /* Further reduce font sizes */
    .hero-content h1 {
        font-size: 2.75rem;
        letter-spacing: -0.03em;
        margin-bottom: 1.25rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.75rem;
    }

    /* Stack buttons on small screens */
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .btn-secondary {
        margin-left: 0;
    }
    
    /* Header further adjustments */
    .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .cta-button a {
        display: block;
        width: 100%;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 200;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        margin-left: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 150;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 1.5rem 0;
    }
    
    /* Hamburger animation for open state */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Adjust other header elements */
    .cta-button {
        display: none; /* Hide in the header, will show in nav menu */
    }
    
    .main-nav.active .cta-button {
        display: block;
        margin-top: 2rem;
    }
}

/* Prevent body scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.bento-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Base bento card style with no specific gradient angle */
.bento-card {
    background: 
        radial-gradient(61.14% 79.47% at 0 0, #f5f5f5 0%, #ffffff 100%) padding-box;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Specific card gradient styles */
.bento-card.full-width {
    background: 
        radial-gradient(61.14% 79.47% at 0 0, #f5f5f5 0%, #ffffff 100%) padding-box,
        linear-gradient(310deg, rgba(0, 0, 0, 0.08) 39.38%, #2d26ff 42.7%, #ffc661 50.51%, rgba(0, 0, 0, 0.08) 58.35%) border-box;
}

/* Left card (first half-width card) */
.bento-card.half-width:nth-of-type(2) {
    background: 
        radial-gradient(61.14% 79.47% at 0 0, #f5f5f5 0%, #ffffff 100%) padding-box,
        linear-gradient(35deg, rgba(0, 0, 0, 0.08) 39.38%, #2d26ff 42.7%, #ffc661 50.51%, rgba(0, 0, 0, 0.08) 58.35%) border-box;
}

/* Right card (second half-width card) */
.bento-card.half-width:nth-of-type(3) {
    background: 
        radial-gradient(61.14% 79.47% at 0 0, #f5f5f5 0%, #ffffff 100%) padding-box,
        linear-gradient(205deg, rgba(0, 0, 0, 0.08) 39.38%, #2d26ff 42.7%, #ffc661 50.51%, rgba(0, 0, 0, 0.08) 58.35%) border-box;
}

.bento-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.bento-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.full-width {
    grid-column: span 2;
}

.half-width {
    grid-column: span 1;
}

/* Bento Card with Images */
.bento-card.with-image {
    padding: 0;
    overflow: hidden;
}

.bento-card.with-image .card-content {
    padding: 2rem;
}

/* Image placeholders */
.image-placeholder {
   
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.placeholder-text {
    color: var(--primary);
    font-weight: 500;
    opacity: 0.7;
}

/* First card - image on left */
.bento-card.full-width.with-image {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.card-content {
    flex: 0 0 55%;
}

.card-image-right {
    flex: auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-right img {
    width: 85%;
    height: auto;
    object-fit: contain;
}

/* Second and third cards - image on top */
.card-image-top {
    width: 100%;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(97, 92, 246, 0.02);
    margin-bottom: 1.5rem;
}

.card-image-top img {
    width: 75%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .features .section-header h2 {
        font-size: 2rem;
    }
}

/* Responsive adjustments for bento layout */
@media (max-width: 768px) {
    .bento-layout {
        grid-template-columns: 1fr;
    }
    
    .full-width, .half-width {
        grid-column: span 1;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        letter-spacing: -0.025em;
    }

    .bento-card h3 {
        font-size: 1.375rem;
    }

    .bento-card.full-width {
        flex-direction: column;
        gap: 2rem;
    }
    
    .card-content {
        flex: none;
        width: 100%;
    }
    
    .card-image-right {
        width: 100%;
        order: -1; /* Move image to top on mobile */
        padding-bottom: 2rem;
    }
    
    .card-image-right img {
        width: 75%;
    }
    
    .card-image-top {
        height: 180px;
    }
    
    .card-image-top img {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 3rem 0;
    }
    
    .bento-card {
        padding: 1.5rem;
    }
    
    .bento-card h3 {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        letter-spacing: -0.03em;
    }

    .card-image-top {
        height: 160px;
    }
    
    .card-image-top img {
        width: 90%;
    }
    
    .bento-card.with-image .card-content {
        padding: 1.5rem;
    }
    
    .card-image-right img {
        width: 85%;
    }
}

/* Typography improvements - adding negative letter spacing to headings */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* We can also be more specific for certain headings if needed */
.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* Bento Layout Responsive Improvements */

/* Adjust spacing for larger screens */
@media (min-width: 1200px) {
    .bento-layout {
        gap: 2rem;
    }
    
    .bento-card.with-image .card-content {
        padding: 2.5rem;
    }
}

/* Better tablet experience */
@media (max-width: 1024px) {
    .features {
        padding: 4rem 0;
    }
    
    .bento-layout {
        gap: 1.25rem;
    }
    
    .card-image-right {
        min-height: 220px;
    }
    
    .card-image-top {
        height: 160px;
    }
}

/* Enhanced mobile layout */
@media (max-width: 768px) {
    .features {
        padding: 3.5rem 0;
    }
    
    .bento-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .full-width, .half-width {
        grid-column: span 1;
    }
    
    /* Ensure images are proportional on mobile */
    .card-image-right {
        width: 100%;
        /* Make the right image area taller on mobile for better visibility */
        min-height: 180px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .features {
        padding: 3rem 0;
    }
    
    .bento-card.with-image .card-content {
        padding: 1.25rem;
    }
    
    .bento-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .bento-card p {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    /* Make images slightly smaller on very small screens */
    .card-image-top {
        height: 160px;
    }
    
    .card-image-top img {
        width: 90%;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .card-image-top {
        height: 120px;
    }
    
    .bento-card.with-image .card-content {
        padding: 1rem;
    }
}

/* Card icon styling with background */
.card-icon {
    margin-bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(45, 38, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* Adjust spacing between icon and heading */
.card-icon + h3 {
    margin-top: 0.5rem;
}

/* Platform Fundamentals Section (rename classes) */
.fundamentals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.fundamental-card {
    background: 
        radial-gradient(61.14% 79.47% at 0 0, #f5f5f5 0%, #ffffff 100%) padding-box;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Apply the same 35deg gradient to all fundamental cards */
.fundamental-card:nth-of-type(1),
.fundamental-card:nth-of-type(2),
.fundamental-card:nth-of-type(3),
.fundamental-card:nth-of-type(4) {
    background: 
        radial-gradient(61.14% 79.47% at 0 0, #f5f5f5 0%, #ffffff 100%) padding-box,
        linear-gradient(40deg, rgba(0, 0, 0, 0.08) 39.38%, #2d26ff 42.7%, #ffc661 50.51%, rgba(0, 0, 0, 0.08) 58.35%) border-box;
}

/* Remove the individual card gradient styles */
/* .fundamental-card:nth-of-type(1) { ... } */
/* .fundamental-card:nth-of-type(2) { ... } */
/* .fundamental-card:nth-of-type(3) { ... } */
/* .fundamental-card:nth-of-type(4) { ... } */

.fundamental-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.fundamental-icon {
    margin-bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(45, 38, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fundamental-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.fundamental-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Update responsive styles */
@media (max-width: 1024px) {
    .fundamentals-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .fundamentals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fundamental-card {
        padding: 1.5rem;
    }
}

/* Platform Fundamentals Section - add padding */
.platform-fundamentals {
    padding: 6rem 0 7rem;
    background-color: var(--light-bg);
}

/* Responsive adjustments for section padding */
@media (max-width: 1024px) {
    .platform-fundamentals {
        padding: 5rem 0 6rem;
    }
}

@media (max-width: 768px) {
    .platform-fundamentals {
        padding: 4rem 0 5rem;
    }
}

@media (max-width: 480px) {
    .platform-fundamentals {
        padding: 3.5rem 0 4rem;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-top: 3rem;
    padding: 0.5rem 0;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 1.5rem 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track .fundamental-card {
    flex: 0 0 calc((100% - 3rem) / 3); /* Account for 2 gaps between 3 cards */
    max-width: calc((100% - 3rem) / 3);
    margin-bottom: 0.5rem;
}

.carousel-track .fundamental-card.shrink {
    transform: scale(0.97);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.carousel-prev, .carousel-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: rgba(45, 38, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(45, 38, 255, 0.15);
}

.carousel-prev:disabled, .carousel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin: 0 1.5rem;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 4px;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    width: 24px;
    background: #2D26FF;
}

/* Carousel responsive adjustments */
@media (max-width: 1024px) {
    .carousel-track .fundamental-card {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* Account for 1 gap between 2 cards */
        max-width: calc((100% - 1.5rem) / 2);
    }
    
    .carousel-track {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .carousel-track .fundamental-card {
        flex: 0 0 100%; /* Single card takes full width */
        max-width: 100%;
    }
    
    .carousel-track {
        gap: 1rem;
    }
}

/* Tech Behind Section - Updated Responsive Design */
.tech-behind {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.tech-content {
    display: flex;
    gap: 4rem;
    
    align-items: center;
    justify-content: center;
}

/* Improved tablet breakpoint */
@media (max-width: 1200px) {
    .tech-behind {
        padding: 4.5rem 0;
    }
    
    .tech-content {
        gap: 3rem;
    }
    
    .tech-image {
        flex: 0 0 38%;
        max-width: 38%;
    }
}

/* Added intermediate breakpoint for better transition */
@media (max-width: 900px) {
    .tech-behind {
        padding: 4rem 0;
    }
    
    .tech-content {
        gap: 2.5rem;
    }
    
    .tech-image {
        flex: 0 0 40%;
        max-width: 40%;
        position: relative;
        top: 0;
    }
    
    .tech-image .image-placeholder {
        padding-bottom: 80%;
    }
    
    .tech-feature h3 {
        font-size: 1.1rem;
    }
    
    .tech-feature p {
        font-size: 0.9rem;
    }
}

/* Better mobile layout */
@media (max-width: 768px) {
    .tech-content {
        flex-direction: column;
    }
    
    .tech-features {
        margin-bottom: 2.5rem;
    }
    
    .tech-image {
        flex: 0 0 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .tech-image .image-placeholder {
        padding-bottom: 0;
        height: 100%;
    }
}

/* Small mobile improvements */
@media (max-width: 480px) {
    .tech-behind {
        padding: 3rem 0 2rem;
    }
    
    .tech-image {
        height: 200px;
    }
    
    .tech-features {
        margin-bottom: 2rem;
    }
}

.tech-text {
    flex: 1;
}

.tech-behind .section-header {
    text-align: left;
    margin-bottom: 0;
}

.tech-behind .section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.tech-behind .section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
    position: relative;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0;
    background: none;
    position: relative;
    transition: all 0.3s ease;
}

.tech-feature::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -2rem;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(45, 38, 255, 0.08) 0%,
        rgba(45, 38, 255, 0.08) 50%,
        transparent 100%);
}

.tech-feature:last-child::after {
    display: none;
}

.tech-feature .feature-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tech-feature .feature-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.tech-feature:hover .feature-icon svg {
    transform: scale(1.1);
}

.tech-feature .feature-content {
    flex: 1;
    padding-top: 0.25rem;
}

.tech-feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    transition: color 0.2s ease;
}

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

.tech-feature p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

.tech-image {
    flex: 1;
    min-height: 400px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-image img {
    width: 75%;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
    animation: techFloat 4s ease-in-out infinite;
}

/* Add floating animation for tech image */
@keyframes techFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tech-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .tech-behind {
        padding: 4rem 0;
    }
    
    .tech-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .tech-features {
        gap: 1.75rem;
        margin-top: 2rem;
    }
    
    .tech-feature::after {
        bottom: -1.75rem;
    }
    
    .tech-feature p {
        max-width: 100%;
    }
    
    .tech-image {
        flex: 0 0 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        min-height: 300px;
        margin-top: 2rem;
    }
    
    .tech-image .image-placeholder {
        padding-bottom: 60%;
    }
    
    .tech-image img {
        width: 85%;
        animation-duration: 3.5s; /* Slightly faster on mobile */
    }
}

@media (max-width: 480px) {
    .tech-behind {
        padding: 3rem 0;
    }
    
    .tech-behind .section-header h2 {
        font-size: 1.5rem;
    }
    
    .tech-features {
        gap: 1.5rem;
    }
    
    .tech-feature {
        gap: 1rem;
    }
    
    .tech-feature::after {
        left: 16px;
        bottom: -1.5rem;
    }
    
    .tech-feature .feature-icon {
        width: 32px;
        height: 32px;
    }
    
    .tech-feature .feature-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .tech-feature h3 {
        font-size: 1.0625rem;
    }

    .tech-feature p {
        font-size: 0.9375rem;
    }
    
    .tech-image {
        min-height: 250px;
        margin-top: 1.5rem;
    }
    
    .tech-image img {
        width: 90%;
        animation-duration: 3s; /* Even faster on smaller screens */
    }
}

/* Tokenomics Section */
.tokenomics {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.tokenomics .section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.tokenomics .section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.tokenomics .section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.tokenomics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.token-basics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.token-name, .token-supply {
    flex: 1;
}

.token-name h3, .token-supply h3, .token-allocation h3, .token-utility h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.token-name p, .token-supply p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.allocation-chart {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.chart-container {
    flex: 0 0 180px;
}

.chart-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        #615CF6 0% 65%,
        #8F8BF8 65% 70%,
        #B3B1FA 70% 80%,
        #D7D6FC 80% 90%,
        #EBEAFD 90% 100%
    );
}

.allocation-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.allocation-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.allocation-name {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.allocation-value {
    font-weight: 600;
    color: var(--dark);
}

.token-utility {
    padding-left: 1rem;
}

.utility-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.utility-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.utility-list li svg {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.utility-list li p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tokenomics-content {
        gap: 3rem;
    }
    
    .token-basics {
        gap: 1.5rem;
    }
    
    .allocation-chart {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .tokenomics {
        padding: 4rem 0;
    }

    .tokenomics-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .token-name p, .token-supply p {
        font-size: 1.25rem;
    }

    .chart-container {
        flex: 0 0 150px;
    }

    .chart-placeholder {
        width: 150px;
        height: 150px;
    }

    .token-utility {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .token-basics {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .allocation-chart {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .chart-container {
        flex: 0 0 auto;
    }
    
    .allocation-list {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tokenomics {
        padding: 3rem 0;
    }
    
    .tokenomics .section-header h2 {
        font-size: 1.5rem;
    }
    
    .chart-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .allocation-item {
        gap: 0.5rem;
    }
    
    .allocation-name {
        font-size: 0.875rem;
    }
}

/* FAQ Section - Larger Font Sizes */
.faq {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
}

.faq .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq .section-header h2 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.faq .section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
}

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
    padding-right: 2rem;
}

.faq-question:hover h3 {
    color: var(--primary);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .faq {
        padding: 4rem 0;
    }
    
    .faq .section-header {
        margin-bottom: 3rem;
    }
    
    .faq .section-header h2 {
        font-size: 1.75rem;
    }
    
    .faq-question h3 {
        font-size: 1.25rem;
    }
    
    .faq-answer p {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.125rem;
        padding-right: 1.5rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 3rem 0;
    }
    
    .faq .section-header h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1.25rem 0;
    }
    
    .faq-question h3 {
        font-size: 1.0625rem;
        padding-right: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9375rem;
    }
    
    .faq-item.active .faq-answer {
        padding-bottom: 1.25rem;
    }
}

/* Platform Icons Marquee */
.platform-icons-marquee {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.platform-icons-marquee::before,
.platform-icons-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.platform-icons-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}

.platform-icons-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

.marquee-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: running;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1.25rem;
}

.platform-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-icon:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .marquee-container {
        max-width: 1000px;
    }
}

/* Nav social — shown only inside the mobile hamburger overlay */
.nav-social {
    display: none;
}

/* Add styles for social media icons */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Update responsive styles */
@media (max-width: 480px) {
    .social-icon {
        font-size: 1.125rem;
    }
}

/* Base section styles */
section:not(.hero) {
    padding: 5rem 0;
}

section:not(.hero) .container {
    padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    section:not(.hero) {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    section:not(.hero) {
        padding: 3.5rem 0;
    }
    
    section:not(.hero) .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    section:not(.hero) {
        padding: 3rem 0;
    }
    
    section:not(.hero) .container {
        padding: 0 1rem;
    }
}

/* Hero container styles */
.hero .container {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
}

/* Responsive adjustments for hero container */
@media (max-width: 1200px) {
    .hero .container {
        max-width: 1000px;
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    .hero .container {
        max-width: 800px;
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero .container {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .hero .container {
        padding: 0 0.75rem;
    }
}

/* Updated Footer Styles */
.footer {
    background-color: var(--light-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 2rem;
}

.footer-logo img {
    height: 100%;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social .social-icon {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 1.75rem 0;
    }
    
    .footer .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.25rem;
    }
    
    .footer-logo {
        height: 1.75rem;
    }
    
    .footer-social .social-icon {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-logo {
        height: 1.5rem;
    }
    
    .footer-social .social-icon {
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.875rem;
    }
}

/* Update card content padding */
.bento-card.half-width .card-content {
    padding: 0 1.5rem 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bento-card.half-width .card-content {
        padding: 0 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .bento-card.half-width .card-content {
        padding: 0 1rem 1rem;
    }
}

/* Mobile: hide header social icons, show them inside the hamburger overlay */
@media (max-width: 768px) {
    .social-links {
        display: none;
    }

    .nav-social {
        display: flex;
        gap: 1.25rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-social .social-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(97, 92, 246, 0.07);
        font-size: 1.25rem;
        color: var(--text-dark);
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .nav-social .social-icon:hover {
        background: rgba(97, 92, 246, 0.14);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .nav-social .social-icon img {
        width: 22px;
        height: 22px;
    }
}

/* Fade In Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

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

/* Staggered animation delays */
.fade-in-delay-1 { transition-delay: 0.2s; }
.fade-in-delay-2 { transition-delay: 0.4s; }
.fade-in-delay-3 { transition-delay: 0.6s; }
.fade-in-delay-4 { transition-delay: 0.8s; }
.fade-in-delay-5 { transition-delay: 1.0s; }
.fade-in-delay-6 { transition-delay: 1.2s; }

/* Optional: Different animation directions */
.fade-in-left {
    transform: translateX(-20px);
}

.fade-in-right {
    transform: translateX(20px);
}

.fade-in-up {
    transform: translateY(20px);
}

.fade-in-down {
    transform: translateY(-20px);
}

