@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #05070f;
    --bg-dark-card: rgba(13, 17, 33, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    /* Code & Canvas Palette: Cyan for Code, Purple/Pink for Canvas */
    --primary-code: #00f2fe;     /* Electric Cyan */
    --primary-canvas: #a18cd1;   /* Creative Purple */
    --accent-canvas: #fbc2eb;    /* Pastel Pink */
    
    --grad-primary: linear-gradient(135deg, var(--primary-canvas) 0%, var(--primary-code) 100%);
    --grad-accent: linear-gradient(135deg, #fbc2eb 0%, #a18cd1 100%);
    --grad-dark: linear-gradient(180deg, #05070f 0%, #0d1121 100%);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --glow-primary: 0 0 20px rgba(161, 140, 209, 0.2);
    --glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: var(--bg-dark);
    background-image: var(--grad-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.ambient-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(161, 140, 209, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: -200px;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 7, 15, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.85rem 0;
    background: rgba(5, 7, 15, 0.85);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
}

.logo-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation: drawPath 3s ease-in-out infinite alternate;
}

.logo-text span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-primary);
    color: #05070f;
    border: none;
    box-shadow: 0 4px 15px rgba(161, 140, 209, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(161, 140, 209, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(161, 140, 209, 0.1);
    border: 1px solid rgba(161, 140, 209, 0.2);
    color: var(--accent-canvas);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-tag span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-code);
    box-shadow: 0 0 8px var(--primary-code);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Branding Graphic */
.brand-graphic {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.graphic-line-1 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: revealPath 5s ease-in-out forwards infinite alternate;
}

.graphic-line-2 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: revealPath 6s ease-in-out forwards infinite alternate;
}

/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
}

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

.section-subtitle {
    color: var(--primary-canvas);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.25rem;
    transition: var(--transition-smooth);
    box-shadow: var(--glow-card);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(161, 140, 209, 0.04) 0%, rgba(0, 242, 254, 0) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(161, 140, 209, 0.3);
    box-shadow: var(--glow-primary), var(--glow-card);
}

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

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-canvas);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--grad-primary);
    color: #05070f;
    border-color: transparent;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.service-list svg {
    color: var(--primary-code);
    flex-shrink: 0;
}

/* Framework Section */
.framework {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.framework-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
    position: relative;
}

.framework-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.framework-step:hover {
    border-color: rgba(161, 140, 209, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-canvas);
    color: var(--accent-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(161, 140, 209, 0.3);
}

.framework-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.framework-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Interactive ROI growth calculator */
.calculator-section {
    padding: 8rem 0;
}

.calculator-wrapper {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: var(--glow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
}

.input-label span:last-child {
    color: var(--primary-code);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(161, 140, 209, 0.5);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-results::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(161, 140, 209, 0.1) 0%, rgba(0,0,0,0) 70%);
    top: -50px;
    right: -50px;
    filter: blur(20px);
}

.result-num {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-canvas) 0%, var(--primary-code) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.result-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 320px;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 440px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-canvas);
}

.method-details h5 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.method-details p {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: var(--glow-card);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.50rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.95rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-canvas);
    box-shadow: 0 0 15px rgba(161, 140, 209, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    resize: none;
    min-height: 140px;
}

/* Footer Section */
footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 7, 15, 0.9);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--grad-primary);
    color: #05070f;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Keyframe Animations */
@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes revealPath {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .framework-timeline {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    nav ul {
        display: none;
    }
}
