:root {
    --bg-dark: #050505;
    --bg-surface: #111111;
    --bg-surface-light: #18181A;
    --primary: #E4E4E7;
    --primary-glow: rgba(228, 228, 231, 0.15);
    --secondary: #A1A1AA;
    --secondary-glow: rgba(161, 161, 170, 0.15);
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --border: #27272A;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--primary);
    color: #000;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 500;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

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

.gradient-text {
    background: linear-gradient(90deg, #FFFFFF, #A1A1AA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 6%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

/* Buttons */
.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.cta-button.primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.cta-button.primary:hover {
    background: #E4E4E7;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3F3F46;
}

.cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.nav-cta {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

.badge {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Features Grid */
.features {
    padding: 8rem 5%;
    background: var(--bg-dark);
    position: relative;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-surface-light);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.feature-card .icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Integration Diagram */
.integration {
    padding: 5rem 5% 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-diagram-container {
    padding: 3rem 1rem;
    border-radius: 16px;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.03), transparent 50%);
}

.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.flow-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.flow-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.flow-item .subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.verisys-node {
    background: rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.3);
    position: relative;
}

.verisys-node::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    pointer-events: none;
}

.verisys-node h4 {
    color: var(--primary);
}

.flow-item.multi {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.flow-item.multi span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.arrow {
    color: var(--border);
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 5% 8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-box {
    background: linear-gradient(145deg, var(--bg-surface), #151515);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
    transform: translate(50%, -50%);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 5rem 5% 2rem;
    background: #020202;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
    font-size: 0.95rem;
    font-weight: 300;
}

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

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-content .badge {
    animation-delay: 0.1s;
}

.hero-content .hero-title {
    animation-delay: 0.2s;
}

.hero-content .hero-subtitle {
    animation-delay: 0.3s;
}

.hero-content .hero-actions {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    .flow-diagram {
        flex-direction: column;
        align-items: stretch;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .flow-item {
        max-width: none;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2.5rem;
    }
}