/* ==========================================================================
   Base & Typography (Swiss Editorial Light Theme)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #FAFAFB;
    --bg-surface: #FFFFFF;
    --text-dark: #0A0A0A;
    --text-muted: #666666;
    --accent-blue: #0033FF;
    --accent-hover: #0022CC;
    --header-footer-bg: #0A0A0A;
    --header-footer-text: #FFFFFF;
    --border-light: #E5E5E5;
    --border-dark: rgba(255, 255, 255, 0.15);
    --font-head: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-elegant: 0 20px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Architectural Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    position: relative;
    padding: 8rem 5%;
    border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Custom Magnetic Cursor
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: background 0.3s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.hover-active .cursor-ring {
    width: 70px;
    height: 70px;
    background: rgba(0, 51, 255, 0.05);
    border-color: var(--accent-blue);
}

.header-hover .cursor-ring {
    border-color: var(--header-footer-text);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Header 
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--header-footer-bg);
    color: var(--header-footer-text);
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-dark);
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #CCCCCC;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--header-footer-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--accent-blue);
    color: #FFF;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 500;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    display: inline-block;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 51, 255, 0.3);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Index Layout
   ========================================================================== */
/* 1. Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 1200px;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--text-dark);
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--accent-blue);
    display: inline-block;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* 2. Editorial Marquee */
.marquee-sec {
    background: var(--text-dark);
    color: #FFF;
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border: none;
}

.marquee-track {
    display: inline-block;
    animation: scrollLeft 20s linear infinite;
    font-family: var(--font-head);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-track span {
    color: var(--accent-blue);
    margin: 0 2rem;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. Manifesto / About */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about h2 {
    font-size: 4rem;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 4. Bento Box Services */
.services {
    background: var(--bg-surface);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
    margin-top: 4rem;
}

.bento-card {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elegant);
    border-color: var(--accent-blue);
}

.bento-card.large {
    grid-column: span 2;
    background: var(--text-dark);
    color: #FFF;
}

.bento-card.large h3 {
    color: #FFF;
}

.bento-card.large p {
    color: #AAA;
}

.bento-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    z-index: 2;
}

.bento-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    z-index: 2;
}

.bento-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--accent-blue);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.bento-card:hover .bento-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 5. Minimalist Calculator */
.calc-section {
    padding: 8rem 5%;
}

.calc-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    box-shadow: var(--shadow-elegant);
}

.range-group {
    margin-bottom: 3rem;
}

.range-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border-light);
    outline: none;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    background: var(--bg-main);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.res-block {
    margin-bottom: 3rem;
}

.res-block:last-child {
    margin-bottom: 0;
}

.res-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.res-val {
    font-size: 4rem;
    font-family: var(--font-head);
    color: var(--text-dark);
    line-height: 1;
}

/* 6. Industry Vertical Tabs */
.industries {
    background: var(--text-dark);
    color: #FFF;
}

.ind-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 4rem;
}

.ind-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-head);
    font-size: 2rem;
    color: #555;
    cursor: none;
    transition: var(--transition-fast);
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.tab-btn.active,
.tab-btn:hover {
    color: #FFF;
    border-bottom-color: var(--accent-blue);
    padding-left: 1rem;
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-dark);
    animation: fadeInRight 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.tab-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #CCC;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 7. CSS Data Charts */
.reports {
    background: var(--bg-surface);
}

.chart-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 400px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 12%;
}

.bar {
    width: 100%;
    background: var(--accent-blue);
    position: relative;
    transform-origin: bottom;
    animation: barGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bar-val {
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s 1.5s forwards;
}

.bar-label {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 8. Testimonials Grid */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testi-card {
    background: var(--bg-surface);
    padding: 4rem 3rem;
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.testi-quote {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.testi-author {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
}

.testi-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 9. Abstract 3D Chat Orb */
.chat-cta {
    text-align: center;
    padding: 10rem 5%;
    background: var(--bg-main);
}

.css-orb {
    width: 120px;
    height: 120px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--accent-blue);
    margin: 0 auto 3rem;
    animation: morphOrb 5s ease-in-out infinite alternate;
    box-shadow: 0 20px 40px rgba(0, 51, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-orb svg {
    width: 40px;
    height: 40px;
    fill: #FFF;
}

@keyframes morphOrb {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translateY(0);
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: translateY(-20px);
    }
}

/* 10. Minimalist Contact Form */
.contact-section {
    background: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    margin-top: 4rem;
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-light);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-dark);
    background: transparent;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-bottom-color: var(--accent-blue);
}

.form-label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: var(--transition-fast);
    font-family: var(--font-head);
}

.form-input:focus~.form-label,
.form-input:valid~.form-label {
    top: -1.5rem;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* ==========================================================================
   Footer 
   ========================================================================== */
footer {
    background: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 6rem 5% 2rem;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #AAA;
    margin-top: 1.5rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFF;
    text-transform: uppercase;
}

.footer-contact p {
    color: #AAA;
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #AAA;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.legal-main {
    padding-top: 180px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.legal-main h1 {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.legal-content h2 {
    font-size: 2rem;
    margin: 4rem 0 1.5rem;
    color: var(--accent-blue);
}

.legal-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {

    .about,
    .calc-container,
    .ind-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 5%;
    }

    .chart-wrapper {
        height: 250px;
    }

    .calc-container {
        padding: 3rem;
    }
}