/* --- General Styles & Variables --- */
:root {
    --background-color: #0A0A14;
    --card-background: rgba(20, 20, 40, 0.4);
    --border-color: rgba(126, 92, 255, 0.2);
    --text-color: #C0C0E0;
    --heading-color: #FFFFFF;
    --primary-glow: #6A44FF;
    --secondary-glow: #FF44B3;
    --highlight-blue: #44A1FF;
    --highlight-yellow: #FFC744;
    --highlight-cyan: #44FFD1;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blur-circle-1, .blur-circle-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.blur-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
    top: -150px;
    left: -200px;
    animation: move-circle-1 20s infinite alternate ease-in-out;
}

.blur-circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-glow);
    bottom: -100px;
    right: -150px;
    animation: move-circle-2 25s infinite alternate-reverse ease-in-out;
}

@keyframes move-circle-1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.2); }
}

@keyframes move-circle-2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-80px, -40px) scale(1.1); }
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 {
    color: var(--heading-color);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 80px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading-color);
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 35px;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: var(--primary-glow);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.cta-button.small { padding: 8px 20px; }
.cta-button.large { padding: 18px 40px; font-size: 1.1rem; }

.cta-button:not(.secondary) {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-headline {
    font-size: 4rem;
    margin-bottom: 20px;
}

.sub-headline {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Why LinkPay Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.benefit-card {
    background: var(--card-background);
    padding: 40px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.benefit-card h4 {
    font-size: 2rem;
    color: var(--primary-glow);
    margin-top: 0;
    margin-bottom: 10px;
}

/* --- Designed For Section --- */
.designed-for {
    text-align: center;
}
.audience-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.audience-card {
    padding: 15px 30px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 500;
    background: var(--card-background);
    transition: background-color 0.3s, color 0.3s;
}
.audience-card:hover {
    background-color: var(--primary-glow);
    color: var(--heading-color);
    border-color: var(--primary-glow);
}

/* --- How It Works Section --- */
.how-it-works {
    text-align: center;
}
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}
.step {
    flex: 1;
}
.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-glow);
    margin-bottom: 20px;
}
.step h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.step-arrow {
    font-size: 2.5rem;
    color: var(--primary-glow);
    margin-top: 60px;
    opacity: 0.5;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.card-content {
    background: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    box-shadow: 0 0 30px rgba(126, 92, 255, 0.3);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    background-color: var(--primary-glow);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
#icon-web2 { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v10z"/></svg>'); }
#icon-privacy { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>'); }
#icon-tps { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 5l-1.41 1.41L15 7.83l2.59-2.58L19 4m-4-4l-1.41 1.41L15 2.83l2.59-2.58L19 0m-4 8l-1.41 1.41L15 10.83l2.59-2.58L19 8m-7-3.41L6.59 6 5.17 4.59 6.59 3.17 8 4.59zM4 19h16v-2H4v2zm-2-4h20v-2H2v2zm-2-4h24v-2H0v2z"/></svg>'); }
#icon-security { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 21.035V18.53a3.5 3.5 0 013.5-3.5h5a3.5 3.5 0 013.5 3.5v2.505A9.954 9.954 0 0112 23c-3.05 0-5.8-1.37-7.66-3.554C4.13 19.18 4 18.85 4 18.53v-2.48a3.5 3.5 0 013.5-3.5h5a3.5 3.5 0 013.5 3.5v2.48c0 .32-.13.65-.34.86A7.951 7.951 0 0012 15c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8c0 1.04-.2 2.04-.56 2.94A3.5 3.5 0 0117.5 10h-5a3.5 3.5 0 01-3.5-3.5V4.02A9.938 9.938 0 0112 1c-4.96 0-9 4.04-9 9s4.04 9 9 9c.34 0 .67-.02 1-.05V21.035z"/></svg>'); }


/* --- Testimonials Section --- */
.testimonials {
    text-align: center;
}
.testimonial-card {
    max-width: 750px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.testimonial-card blockquote {
    font-size: 1.4rem;
    margin: 0 0 20px;
    font-style: italic;
    opacity: 0.9;
}
.testimonial-card cite {
    font-style: normal;
    display: block;
}
.author {
    font-weight: 700;
    color: var(--heading-color);
}
.title {
    margin-left: 10px;
    opacity: 0.7;
}

/* --- Roadmap Section --- */
.roadmap-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.roadmap-line, .roadmap-line-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    border-radius: 2px;
}
.roadmap-line {
    background-color: var(--border-color);
    z-index: 1;
}
.roadmap-line-progress {
    background: linear-gradient(to bottom, var(--primary-glow), var(--secondary-glow));
    height: 0; /* Controlled by JS */
    z-index: 2;
    transition: height 0.1s linear;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 40px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-dot {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: var(--background-color);
    border: 4px solid var(--border-color);
    border-radius: 50%;
    z-index: 3;
    transition: border-color 0.3s, transform 0.3s;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    transform: translateX(50%);
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    transform: translateX(-50%);
}
.timeline-item[data-status="completed"] .timeline-dot {
    border-color: var(--highlight-cyan);
}
.timeline-item[data-status="in-progress"] .timeline-dot {
    border-color: var(--primary-glow);
    animation: pulse 2s infinite;
}
.timeline-item:hover .timeline-dot {
    transform: translateX(var(--transform-sign, -1) * 50%) scale(1.2);
}
.timeline-item:nth-child(odd) { --transform-sign: 1; }
.timeline-item:nth-child(even) { --transform-sign: -1; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(106, 68, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(106, 68, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 68, 255, 0); }
}
.timeline-date {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.timeline-content {
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}
.timeline-item:hover .timeline-content {
    border-color: var(--border-color);
}
.timeline-content h4 {
    margin-top: 0;
    font-size: 1.5rem;
}
.timeline-content p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* --- Tokenomics Section --- */
.tokenomics-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}
.token-chart {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}
.chart-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip: rect(0, 150px, 300px, 0);
    transform: rotate(calc(var(--offset) * 3.6deg));
}
.chart-segment::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 40px solid var(--color);
    box-sizing: border-box;
    clip: rect(0, 300px, 300px, 150px);
    transform: rotate(calc(var(--value) * 3.6deg));
}
.chart-center {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 60px;
    left: 60px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}
.token-distribution {
    list-style: none;
    padding: 0;
}
.token-distribution li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color);
    margin-right: 15px;
}

/* --- Final CTA Section --- */
.final-cta {
    text-align: center;
    background: var(--card-background);
    padding: 80px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* --- Footer --- */
.footer {
    padding: 60px 20px 20px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.footer-column h4 { font-size: 1.5rem; }
.footer-column h5 { font-size: 1rem; margin-bottom: 15px; }
.footer-column a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-column a:hover { color: var(--primary-glow); }
.social-links { display: flex; gap: 15px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    opacity: 0.6;
}
.footer-bottom a { margin-left: 20px; color: var(--text-color); text-decoration: none; }