/* =========================================================
   zygig design system
   ========================================================= */

:root {
    /* Brand */
    --brand: #4f46e5;
    --brand-strong: #4338ca;
    --brand-2: #06b6d4;
    --brand-3: #f59e0b;
    --gradient: linear-gradient(120deg, #6366f1 0%, #4f46e5 45%, #06b6d4 100%);
    --gradient-soft: linear-gradient(120deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.12));

    /* Ink & surfaces */
    --ink: #0b1020;
    --ink-2: #141b33;
    --text-primary: #131a2b;
    --text-secondary: #5a6478;
    --background: #ffffff;
    --background-light: #f6f7fb;
    --border-color: #e7e9f0;

    /* Legacy aliases kept so older rules stay in sync */
    --primary-color: var(--brand);
    --secondary-color: var(--brand-3);
    --accent-color: #10b981;

    /* Depth */
    --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06);
    --shadow: 0 8px 24px -12px rgba(11, 16, 32, 0.18);
    --shadow-lg: 0 28px 60px -28px rgba(11, 16, 32, 0.35);
    --shadow-brand: 0 18px 40px -18px rgba(79, 70, 229, 0.65);

    /* Shape */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --header-height: 78px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(99, 102, 241, 0.22);
}

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

section[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* =========================================================
   Header & navigation
   ========================================================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-color);
    box-shadow: 0 10px 30px -24px rgba(11, 16, 32, 0.5);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: 24px;
}

.nav-brand-link {
    display: block;
    text-decoration: none;
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
}

.nav-logo {
    display: block;
    height: 34px;
    width: auto;
}

.tagline {
    display: block;
    margin-top: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-link {
    display: inline-block;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand);
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.active {
    color: var(--brand);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.nav-cta,
.nav-link.nav-cta.active {
    margin-left: 8px;
    color: #fff;
    background: var(--gradient);
    box-shadow: var(--shadow-brand);
}

.nav-link.nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background-color: var(--text-primary);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Buttons & small parts
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.98rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px -20px rgba(79, 70, 229, 0.75);
}

.btn-secondary {
    color: var(--text-primary);
    background: #fff;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    color: var(--brand);
}

.btn-on-dark {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

.btn-on-dark:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 26px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.section-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    color: var(--brand);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-height) + 96px) 0 108px;
    background:
        radial-gradient(1000px 520px at 12% -10%, rgba(99, 102, 241, 0.55), transparent 60%),
        radial-gradient(900px 480px at 88% 0%, rgba(6, 182, 212, 0.42), transparent 62%),
        radial-gradient(700px 420px at 60% 110%, rgba(168, 85, 247, 0.35), transparent 60%),
        linear-gradient(180deg, #0b1020 0%, #111936 100%);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
}

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

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(100deg, #a5b4fc 0%, #67e8f9 55%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    max-width: 660px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.74);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 38px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    list-style: none;
}

.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-chips i {
    color: #67e8f9;
    font-size: 0.9rem;
}

/* =========================================================
   Sections
   ========================================================= */

section {
    padding: 96px 0;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0;
}

/* =========================================================
   Advisory services
   ========================================================= */

.services {
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
    padding: 40px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: -1;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-lg);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-brand);
}

.service-icon i {
    font-size: 1.4rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.75;
}

.service-features {
    list-style: none;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    padding: 7px 0 7px 30px;
    color: var(--text-secondary);
    position: relative;
    font-size: 0.97rem;
}

.service-features li::before {
    content: "\2713";
    font-weight: 700;
    font-size: 0.72rem;
    position: absolute;
    left: 0;
    top: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brand);
    background: var(--gradient-soft);
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
    background: var(--background-light);
    padding-bottom: 110px;
}

.contact-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 40px;
    text-align: center;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(600px 300px at 12% 0%, rgba(99, 102, 241, 0.6), transparent 62%),
        radial-gradient(520px 280px at 88% 100%, rgba(6, 182, 212, 0.45), transparent 62%),
        linear-gradient(150deg, #131b38 0%, #0b1020 100%);
    box-shadow: var(--shadow-lg);
}

.contact-card .section-title,
.contact-card .section-subtitle {
    color: #fff;
}

.contact-card .section-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 34px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.contact-item i {
    color: #67e8f9;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-item a:hover {
    border-bottom-color: #fff;
}

.contact-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Form styling kept for future use */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 22px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =========================================================
   Products (icon links)
   ========================================================= */

.products-compact {
    padding: 96px 0;
    background: var(--background-light);
}

.product-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
}

.product-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    width: 140px;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-icon i {
    font-size: 1.7rem;
    color: #fff;
}

.product-icon-link:hover .product-icon {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-icon-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 56px 0 40px;
    text-align: center;
}

.footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 22px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #fff;
}

.footer-separator {
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.24);
}

.footer p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   Legal pages
   ========================================================= */

.legal {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 88px;
    background-color: var(--background);
}

.legal-container {
    max-width: 780px;
}

.legal-title {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal-effective {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal p,
.legal ul {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal ul {
    padding-left: 22px;
}

.legal a {
    color: var(--brand);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

/* =========================================================
   Scroll reveal
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 24px;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .hero {
        padding: calc(var(--header-height) + 64px) 0 80px;
    }

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

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

    .contact-card {
        padding: 48px 24px;
        border-radius: 22px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .footer-separator {
        margin: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
