/* ===== CSS Variables ===== */
:root {
    --primary-color: #0099FF;
    --primary-rgb: 0, 153, 255;
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-gray-light: #cccccc;
    --border-color: rgba(0, 153, 255, 0.2);
    --border-hover: rgba(0, 153, 255, 0.5);
    --max-width: 1200px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--text-gray-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-gray-light);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 0 3rem;
    overflow: hidden;
    background: linear-gradient(180deg, #000000 0%, #05050a 50%, #000000 100%);
}

.wave-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center top, rgba(0, 153, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at center bottom, rgba(0, 100, 200, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.ca-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ca-badge:hover {
    background: rgba(0, 153, 255, 0.2);
}

.ca-badge-small {
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.ca-text {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 0.75rem;
    word-break: break-all;
}

@media (min-width: 640px) {
    .ca-text {
        font-size: 0.875rem;
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-shadow: 0 0 60px rgba(0, 153, 255, 0.4);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 40px rgba(0, 153, 255, 0.4);
    }
    to {
        text-shadow: 0 0 80px rgba(0, 153, 255, 0.6), 0 0 120px rgba(0, 153, 255, 0.3);
    }
}

.hero-subtitle-container {
    margin-bottom: 3rem;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.text-white {
    color: var(--text-white);
}

.text-accent {
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 640px) {
    .btn {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-black);
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.25);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 153, 255, 0.5);
}

.icon-left,
.icon-right {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .icon-left,
    .icon-right {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.link-accent {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.link-accent:hover {
    opacity: 0.8;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray-light);
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Capabilities Section ===== */
.capabilities {
    padding: 5rem 0;
    background: 
        radial-gradient(ellipse at top left, rgba(0, 153, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 100, 200, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a14 50%, #000000 100%);
    position: relative;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    background: linear-gradient(135deg, var(--bg-black) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.capability-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.1);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-icon-wrapper {
    margin-bottom: 1.5rem;
}

.capability-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.2) 0%, rgba(0, 153, 255, 0.05) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.capability-card:hover .capability-icon {
    transform: scale(1.1);
}

.capability-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.capability-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.capability-card:hover h3 {
    color: var(--primary-color);
}

.capability-card p {
    color: var(--text-gray);
    line-height: 1.625;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 5rem 0;
    background: 
        linear-gradient(135deg, #000000 0%, #0a0a1a 25%, #000510 50%, #0a0a1a 75%, #000000 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: radial-gradient(
        circle,
        rgba(0, 153, 255, 0.15) 0%,
        rgba(0, 100, 255, 0.1) 20%,
        transparent 40%
    );
    animation: floatingGradient 10s ease-in-out infinite;
    pointer-events: none;
}

.how-it-works::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 153, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 100, 200, 0.04) 0%, transparent 25%);
    pointer-events: none;
}

@keyframes floatingGradient {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10%, 10%) rotate(90deg);
    }
    50% {
        transform: translate(-5%, 15%) rotate(180deg);
    }
    75% {
        transform: translate(-10%, 5%) rotate(270deg);
    }
}

.steps-container {
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3.5rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, rgba(0, 153, 255, 0.5) 0%, transparent 100%);
}

.step-number-wrapper {
    flex-shrink: 0;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 153, 255, 0.7) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-black);
    font-weight: bold;
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.step:hover h3 {
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.75;
    font-size: 1.125rem;
}

/* ===== Code Example Section ===== */
.code-example {
    padding: 5rem 0;
    background: 
        radial-gradient(circle at center, rgba(0, 153, 255, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a14 0%, #000000 50%, #050510 100%);
    position: relative;
}

.code-block {
    background: linear-gradient(135deg, var(--bg-black) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: rgba(0, 153, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.code-filename {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 0.875rem;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-gray-light);
    line-height: 1.625;
}

.code-link-container {
    text-align: center;
    margin-top: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: 
        radial-gradient(ellipse at top, rgba(0, 153, 255, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #0a0a14 0%, #000000 100%);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        padding: 0 1rem;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .code-content {
        font-size: 0.75rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capability-card,
.step {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.capability-card:nth-child(1) { animation-delay: 0.1s; }
.capability-card:nth-child(2) { animation-delay: 0.15s; }
.capability-card:nth-child(3) { animation-delay: 0.2s; }
.capability-card:nth-child(4) { animation-delay: 0.25s; }
.capability-card:nth-child(5) { animation-delay: 0.3s; }
.capability-card:nth-child(6) { animation-delay: 0.35s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }

/* ===== Enterprise Features Section ===== */
.enterprise-features {
    padding: 5rem 0;
    background: var(--bg-black);
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .enterprise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .enterprise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.enterprise-card {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.05) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s;
}

.enterprise-card:hover {
    border-color: var(--border-hover);
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.08) 0%, transparent 100%);
    transform: translateY(-4px);
}

.enterprise-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.enterprise-card:hover .enterprise-icon {
    transform: scale(1.1);
}

.enterprise-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.enterprise-card:hover h3 {
    color: var(--primary-color);
}

.enterprise-card p {
    color: var(--text-gray);
    line-height: 1.625;
}

/* ===== Privacy Banner Section ===== */
.privacy-banner {
    padding: 4rem 0;
    background: 
        linear-gradient(90deg, rgba(0, 153, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 153, 255, 0.1) 100%),
        var(--bg-black);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.privacy-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.privacy-content h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.privacy-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray-light);
    line-height: 1.75;
}

/* ===== Social Follow Section ===== */
.social-follow {
    padding: 5rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 153, 255, 0.05) 0%, transparent 50%, rgba(0, 153, 255, 0.05) 100%),
        var(--bg-black);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.social-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray-light);
    margin-bottom: 3rem;
}

.social-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 153, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 153, 255, 0.5);
}
