/* ============================================
   DYNAMIS LABS — Deep Space Theme
   ============================================ */

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

:root {
    --bg: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --primary: #00d4ff;
    --accent: #7b61ff;
    --text: #e8eaed;
    --text-muted: #6b7280;
    --text-dim: #4b5563;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 97, 255, 0.1));
    --border: rgba(255, 255, 255, 0.06);
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-accent: 0 0 20px rgba(123, 97, 255, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

strong {
    color: var(--text);
    font-weight: 600;
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.nav--scrolled {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav__logo:hover {
    color: var(--text);
}

.nav__logo-img {
    width: 36px;
    height: 36px;
}

.nav__logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav__link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav__link--cta {
    background: var(--gradient);
    color: var(--bg) !important;
    font-weight: 600;
    -webkit-text-fill-color: var(--bg);
}

.nav__link--cta:hover {
    opacity: 0.9;
    box-shadow: var(--glow-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn--primary {
    background: var(--gradient);
    color: var(--bg);
}

.btn--primary:hover {
    opacity: 0.9;
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
    color: var(--bg);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn--full {
    width: 100%;
}

.btn--large {
    padding: 18px 48px;
    font-size: 1.05rem;
}

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

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

.hero__title {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 24px auto 0;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: var(--gradient);
    opacity: 0.4;
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-header__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: var(--gradient);
    opacity: 0.2;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateY(-4px);
}

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

.service-card__number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
}

.service-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
}

.service-card__icon {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    color: var(--accent);
    opacity: 0.4;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

/* --- Team --- */
.team {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(123, 97, 255, 0.03), transparent);
}

.team__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.team__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team__orbit {
    position: relative;
    width: 320px;
    height: 320px;
}

.team__orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.team__orbit-ring--1 {
    inset: 40px;
    animation: orbitRotate 20s linear infinite;
}

.team__orbit-ring--2 {
    inset: 20px;
    border-color: rgba(123, 97, 255, 0.08);
    animation: orbitRotate 30s linear infinite reverse;
}

.team__orbit-ring--3 {
    inset: 0;
    border-color: rgba(0, 212, 255, 0.05);
    animation: orbitRotate 40s linear infinite;
}

.team__orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: var(--glow-primary);
}

.team__orbit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.team__orbit-node--1 {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: nodePulse 3s ease-in-out infinite;
}

.team__orbit-node--2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--accent);
    animation: nodePulse 3s ease-in-out 0.5s infinite;
}

.team__orbit-node--3 {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: nodePulse 3s ease-in-out 1s infinite;
}

.team__orbit-node--4 {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: var(--accent);
    animation: nodePulse 3s ease-in-out 1.5s infinite;
}

.team__orbit-node--5 {
    top: 80px;
    right: 55px;
    animation: nodePulse 3s ease-in-out 2s infinite;
}

.team__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.team__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.team__stat {
    text-align: center;
}

.team__stat-number {
    display: inline;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team__stat-suffix {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team__stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Pricing --- */
.pricing {
    padding: 120px 0;
    position: relative;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.pricing-card--featured {
    border-color: rgba(0, 212, 255, 0.2);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05), var(--bg-card));
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
}

.pricing-card__badge {
    position: absolute;
    top: -1px;
    right: 32px;
    padding: 6px 16px;
    background: var(--gradient);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0 0 8px 8px;
}

.pricing-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.pricing-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.pricing-card__price {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.pricing-card__amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-card__features li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: var(--gradient);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* --- CTA --- */
.cta {
    padding: 120px 0;
    position: relative;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.03), transparent);
}

.cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta__desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta__email {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.cta__email a {
    color: var(--primary);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

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

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__logo {
    width: 24px;
    height: 24px;
}

.footer__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scaleY(0.6);
        transform-origin: top;
    }
    50% {
        opacity: 0.5;
        transform: scaleY(1);
    }
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .team__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .team__visual {
        order: -1;
    }

    .team__orbit {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 32px 32px;
        gap: 8px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav__links--open {
        right: 0;
    }

    .nav__link {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav__link--cta {
        margin-top: 16px;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .team__stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer__content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title-main {
        font-size: 2.5rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .service-card {
        padding: 32px 24px;
    }
}
