/* =========================================================
   Nexsysi — Ocean Deep · Dazzling
   Typography: Space Grotesk (display) + DM Sans (body)
   Layout: Structured Highlights
   ========================================================= */

:root {
    --ocean-abyss: #040d18;
    --ocean-deep: #071a2c;
    --ocean-mid: #0d3a55;
    --ocean-teal: #1a8f9f;
    --ocean-cyan: #3de0cf;
    --ocean-aqua: #7ef0e4;
    --brand-blue: #00639e;
    --brand-blue-dark: #004f7e;
    --ocean-mist: #e4f4f8;
    --ocean-foam: #f3f8fb;
    --ocean-ink: #071522;
    --ocean-slate: #4f6880;
    --ocean-glow: rgba(61, 224, 207, 0.45);
    --ocean-glow-soft: rgba(61, 224, 207, 0.18);
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

body,
body.theme-ocean {
    font-family: var(--font-body);
    color: var(--ocean-ink);
    background:
        radial-gradient(ellipse at 10% -10%, rgba(61, 224, 207, 0.08), transparent 42%),
        radial-gradient(ellipse at 90% 0%, rgba(20, 122, 138, 0.07), transparent 40%),
        var(--ocean-foam);
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-brand,
.about-title,
.services-title,
.contact-title,
.page-hero-title,
.section-title,
.logo-text,
.experience-number,
.product-title,
.service-title,
.card-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.scroll-progress {
    background: linear-gradient(90deg, var(--ocean-teal) 0%, var(--ocean-cyan) 50%, var(--ocean-aqua) 100%);
    box-shadow: 0 0 18px var(--ocean-glow);
}

.scroll-to-top {
    background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean-cyan) 100%);
    box-shadow: 0 8px 28px rgba(10, 31, 51, 0.4), 0 0 24px var(--ocean-glow-soft);
}

.scroll-to-top:hover {
    box-shadow: 0 14px 36px rgba(61, 224, 207, 0.45);
    transform: translateY(-4px) scale(1.08);
}

/* ---------- Nav ---------- */
.logo-n {
    background: linear-gradient(135deg, var(--ocean-teal), var(--ocean-cyan));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 18px var(--ocean-glow);
}

.nav-logo .logo:hover .logo-n {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 6px 28px var(--ocean-glow);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ocean-cyan);
}

.nav-link::after {
    background: linear-gradient(90deg, var(--ocean-teal), var(--ocean-cyan), var(--ocean-aqua));
    height: 2px;
    box-shadow: 0 0 10px var(--ocean-glow);
}

.nav-link.active {
    color: var(--ocean-cyan) !important;
}

.header.light-theme .nav-link:hover,
.header.light-theme .logo-text,
.header.light-theme .nav-link {
    color: var(--ocean-ink);
}

.header.light-theme .nav-link:hover {
    color: var(--ocean-teal);
    background: rgba(26, 143, 159, 0.08);
}

.header.light-theme .logo-n {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-teal));
    color: #fff;
}

.header.light-theme .cta-button {
    border-color: var(--ocean-ink);
    color: var(--ocean-ink);
}

.header.light-theme .cta-button:hover {
    background: var(--ocean-ink);
    color: #fff;
}

.header.dark-theme .nav-link:hover {
    color: var(--ocean-cyan);
}

.header.dark-theme .bar,
.header:not(.light-theme) .bar {
    background: #fff;
}

.header.light-theme .bar,
.header.page-header.light-theme .bar {
    background: var(--ocean-ink);
}

.cta-button {
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.nav-careers-btn {
    border-radius: 4px;
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-teal)) !important;
    border: none !important;
    box-shadow: 0 6px 22px rgba(13, 58, 85, 0.45), 0 0 20px var(--ocean-glow-soft);
}

.nav-careers-btn:hover {
    box-shadow: 0 10px 30px rgba(61, 224, 207, 0.35) !important;
}

/* ---------- Homepage full-bleed studio hero ---------- */
.hero.hero--studio {
    min-height: 100vh;
    padding: 0;
    background: var(--ocean-abyss);
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.hero.hero--studio::before,
.hero.hero--studio::after {
    display: none;
}

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

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.04);
    filter: saturate(1.15) contrast(1.08) brightness(0.92);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(4, 13, 24, 0.88) 0%, rgba(4, 13, 24, 0.58) 38%, rgba(4, 13, 24, 0.22) 68%, rgba(7, 26, 44, 0.5) 100%),
        linear-gradient(to top, rgba(4, 13, 24, 0.82) 0%, transparent 48%),
        radial-gradient(ellipse at 72% 38%, rgba(61, 224, 207, 0.18), transparent 42%);
}

.hero-media-shine {
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 210deg at 70% 40%, transparent 0deg, rgba(126, 240, 228, 0.12) 28deg, transparent 70deg, rgba(61, 224, 207, 0.08) 140deg, transparent 200deg);
    mix-blend-mode: screen;
    animation: shineSweep 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-media-sparkles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 32% 28%, rgba(126, 240, 228, 0.95) 0 1.5px, transparent 3px),
        radial-gradient(circle at 58% 62%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 22%, rgba(61, 224, 207, 0.9) 0 1.5px, transparent 3px),
        radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 46% 18%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px);
    background-size: 100% 100%;
    animation: sparkleTwinkle 5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}

.hero-container--studio {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 7rem 2rem 4.5rem;
    min-height: 100vh;
    align-items: end;
    box-sizing: border-box;
}

.hero-copy {
    max-width: 38rem;
    animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1.1rem;
    letter-spacing: -0.035em;
}

.hero-brand span {
    display: inline-block;
    color: #fff;
    text-shadow:
        0 0 18px rgba(61, 224, 207, 0.55),
        0 0 42px rgba(61, 224, 207, 0.28),
        0 12px 40px rgba(0, 0, 0, 0.55);
    position: relative;
}

.hero-brand span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.12em;
    background: linear-gradient(90deg, transparent, var(--ocean-cyan), var(--ocean-aqua), transparent);
    opacity: 0.85;
    filter: blur(0.5px);
    animation: brandShimmer 3.5s ease-in-out infinite;
    background-size: 200% 100%;
    pointer-events: none;
}

.hero-title--studio {
    font-size: clamp(1.55rem, 3.2vw, 2.4rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ocean-mist);
    margin: 0 0 1rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-lede {
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(228, 244, 248, 0.9);
    margin: 0 0 2rem;
    max-width: 28rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.hero--studio .discover-button,
.discover-button--glow {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(135deg, rgba(61, 224, 207, 0.22), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 0 1px rgba(61, 224, 207, 0.2),
        0 10px 36px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(61, 224, 207, 0.25);
    position: relative;
    overflow: hidden;
}

.hero--studio .discover-button::before,
.discover-button--glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    animation: buttonSheen 3.8s ease-in-out infinite;
}

.hero--studio .discover-button:hover,
.discover-button--glow:hover {
    background: linear-gradient(135deg, var(--ocean-cyan), var(--ocean-aqua));
    color: var(--ocean-abyss);
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(61, 224, 207, 0.45);
}

.hero-secondary {
    color: var(--ocean-mist);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid rgba(215, 232, 239, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}

.hero-secondary:hover {
    color: var(--ocean-cyan);
    border-color: var(--ocean-cyan);
    text-shadow: 0 0 18px var(--ocean-glow);
}

@keyframes heroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.4%, -1%, 0); }
}

@keyframes shineSweep {
    from { transform: translate3d(-2%, 1%, 0) rotate(0deg); opacity: 0.7; }
    to { transform: translate3d(3%, -2%, 0) rotate(8deg); opacity: 1; }
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes brandShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes buttonSheen {
    0%, 55% { left: -120%; }
    75%, 100% { left: 140%; }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50% { transform: translateY(-10px); opacity: 1; }
}

/* ---------- Structured Highlights ---------- */
.highlight-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ocean-teal);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.highlight-label::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 2px;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, var(--ocean-cyan), transparent);
    box-shadow: 0 0 12px var(--ocean-glow);
}

.highlight-label--light {
    color: var(--ocean-cyan);
}

.highlight-section {
    position: relative;
}

.highlight-section--muted {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(61, 224, 207, 0.1), transparent 45%),
        linear-gradient(180deg, #eef6f9 0%, #e3eef4 100%);
}

.highlight-section--deep,
.contact {
    background:
        radial-gradient(ellipse at 18% 10%, rgba(61, 224, 207, 0.28), transparent 42%),
        radial-gradient(ellipse at 90% 80%, rgba(26, 143, 159, 0.22), transparent 45%),
        linear-gradient(160deg, var(--ocean-abyss) 0%, var(--ocean-deep) 55%, var(--ocean-mid) 100%);
    position: relative;
    overflow: hidden;
}

.highlight-section--deep::before,
.contact::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 224, 207, 0.22), transparent 68%);
    filter: blur(8px);
    animation: floatGlow 7s ease-in-out infinite;
    pointer-events: none;
}

.about {
    background:
        radial-gradient(ellipse at 0% 50%, rgba(61, 224, 207, 0.07), transparent 40%),
        var(--ocean-foam);
}

.about-title,
.services-title {
    color: var(--ocean-ink);
}

.experience-number {
    background: linear-gradient(135deg, var(--ocean-teal), var(--ocean-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 18px rgba(61, 224, 207, 0.25));
}

.experience-text {
    color: var(--ocean-teal);
}

.services-description,
.about-description p,
.section-text {
    color: var(--ocean-slate);
}

.services-features .feature-item i,
.highlight-list .feature-item i {
    color: var(--ocean-cyan);
    font-size: 0.45rem;
    filter: drop-shadow(0 0 6px var(--ocean-glow));
}

.robot-image-1 img,
.robot-image-2 img {
    border: 1px solid rgba(61, 224, 207, 0.28);
    border-radius: 10px;
    box-shadow:
        0 20px 50px rgba(10, 31, 51, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.robot-image-1 img:hover,
.robot-image-2 img:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow:
        0 28px 60px rgba(10, 31, 51, 0.22),
        0 0 30px rgba(61, 224, 207, 0.2);
}

.contact-title {
    color: #fff;
    text-shadow: 0 0 40px rgba(61, 224, 207, 0.25);
}

.get-started-button {
    border-radius: 10px;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    box-shadow: 0 10px 32px rgba(0, 99, 158, 0.35);
    position: relative;
    overflow: hidden;
}

.get-started-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.get-started-button:hover::after {
    transform: translateX(120%);
}

.get-started-button:hover {
    background: var(--brand-blue-dark);
    color: #fff;
    box-shadow: 0 14px 40px rgba(0, 99, 158, 0.45);
}

/* Inner page heroes are defined in site.css (clean Ocean Deep, no studio image) */

/* ---------- Shared surfaces ---------- */
.about-main,
.services-overview,
.products-overview,
.faq-section,
.privacy-content,
.contact-page {
    background: var(--ocean-foam);
}

.section-title,
.card-title,
.service-title,
.product-title {
    color: var(--ocean-ink);
}

.mission-card,
.service-card,
.value-card,
.team-member,
.faq-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 31, 51, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(7, 21, 34, 0.04);
    backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.mission-card:hover,
.service-card:hover,
.value-card:hover {
    border-color: rgba(61, 224, 207, 0.45);
    transform: translateY(-5px);
    box-shadow:
        0 22px 48px rgba(10, 31, 51, 0.1),
        0 0 28px rgba(61, 224, 207, 0.12);
}

.card-icon,
.service-icon {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-cyan));
    color: #fff;
    box-shadow: 0 8px 22px rgba(61, 224, 207, 0.3);
}

.feature-item:nth-child(n) i,
.benefit-item:nth-child(n) i {
    background: linear-gradient(135deg, var(--brand-blue, #00639e), var(--brand-blue-dark, #004f7e)) !important;
}

.footer {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(61, 224, 207, 0.12), transparent 50%),
        var(--ocean-abyss);
}

.footer a,
.footer-address,
.footer-address p {
    color: var(--ocean-mist);
}

.footer a:hover {
    color: var(--ocean-cyan);
}

.social-link {
    color: var(--ocean-mist);
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
    color: var(--ocean-cyan);
    text-shadow: 0 0 16px var(--ocean-glow);
    transform: translateY(-2px);
}

.submit-btn {
    background: var(--brand-blue);
    box-shadow: 0 8px 24px rgba(0, 99, 158, 0.28);
}

.submit-btn:hover {
    background: var(--brand-blue-dark);
    box-shadow: 0 12px 34px rgba(0, 99, 158, 0.4);
}

.cta-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(61, 224, 207, 0.28), transparent 55%),
        linear-gradient(160deg, var(--ocean-abyss) 0%, var(--ocean-mid) 100%);
}

.cta-primary-button {
    border-radius: 4px;
    color: var(--ocean-abyss);
    background: linear-gradient(135deg, #fff, var(--ocean-aqua));
    box-shadow: 0 10px 30px rgba(61, 224, 207, 0.3);
}

.cta-title {
    font-family: var(--font-display);
    text-shadow: 0 0 36px rgba(61, 224, 207, 0.25);
}

/* ---------- Motion for structured sections ---------- */
.highlight-row > * {
    animation: heroRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.highlight-row > *:nth-child(2) {
    animation-delay: 0.14s;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-container--studio {
        padding: 6.5rem 1.5rem 3.5rem;
        min-height: 100svh;
        display: flex;
        align-items: flex-end;
    }

    .hero-brand {
        font-size: clamp(2.3rem, 11vw, 3.4rem);
    }

    .hero-title--studio {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    }

    .hero-media-img {
        animation: none;
        transform: scale(1.06);
        object-position: 65% center;
    }

    .hero-media-shine,
    .hero-media-sparkles {
        opacity: 0.55;
        animation: none;
    }

    .page-hero {
        min-height: 44vh;
    }

    .page-hero::after {
        height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media-img,
    .hero-media-veil,
    .hero-media-shine,
    .hero-media-sparkles,
    .hero-copy,
    .hero-brand span,
    .discover-button--glow::before,
    .highlight-row > *,
    .highlight-section--deep::before,
    .contact::before,
    .page-hero::before {
        animation: none !important;
    }
}
