/* ==========================================================================
   Base & Typography (Neo-Editorial Spatial Theme)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500;1,6..72,600&display=swap');

:root {
    --bg-main: #F4F2ED;
    /* Warm Oatmeal / Sand */
    --bg-secondary: #EBE8E0;
    /* Slightly darker sand */
    --text-dark: #121212;
    /* Jet Black */
    --text-muted: #6B6A65;
    --accent-indigo: #4338CA;
    --accent-coral: #FF4747;
    --header-footer-bg: #0F0F0F;
    /* Dark for white logo contrast */
    --header-footer-text: #F4F2ED;
    --border-dark: rgba(18, 18, 18, 0.1);
    --border-light: rgba(244, 242, 237, 0.15);
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Newsreader', serif;
    --transition-snappy: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    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-sans);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-indigo);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

section {
    position: relative;
    padding: 10rem 5%;
}

/* ==========================================================================
   Custom Blending Cursor
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: var(--accent-coral);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: transparent;
}

.hover-active .cursor-dot {
    width: 80px;
    height: 80px;
    background: var(--accent-indigo);
    color: white;
    mix-blend-mode: normal;
}

.hover-active .cursor-dot::after {
    content: "EXPLORE";
}

/* ==========================================================================
   Header (Strictly Consistent - Jet Black for White Logo)
   ========================================================================== */
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-slow);
    border-bottom: 1px solid var(--border-light);
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
}
.footer-brand img {
    height: 50px;
}

/* Crisp white logo */
.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #A0A0A0;
    position: relative;
    overflow: hidden;
    padding-bottom: 4px;
    transition: var(--transition-snappy);
}

.nav-links a:hover {
    color: var(--header-footer-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: var(--accent-coral);
    transition: var(--transition-snappy);
}

.nav-links a:hover::after {
    left: 0;
}

.btn-editorial {
    background: var(--header-footer-text);
    color: var(--header-footer-bg);
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-snappy);
    border: none;
}

.btn-editorial:hover {
    background: var(--accent-indigo);
    color: white;
    transform: scale(1.05);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */


.reveal-text.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Index Page Layout
   ========================================================================== */
/* 1. Spatial Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 150px;
    border-bottom: 1px solid var(--border-dark);
}

.hero h1 {
    font-size: clamp(4rem, 11vw, 10rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-top: 4rem;
}

.hero-bottom p {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
}

/* 2. Massive Ticker */
.ticker-section {
    padding: 3rem 0;
    background: var(--text-dark);
    color: var(--bg-main);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    animation: scrollTicker 20s linear infinite;
    font-size: 3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ticker-track span {
    margin: 0 3rem;
    color: var(--accent-coral);
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. Editorial Vision */
.vision {
    padding: 12rem 5%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.vision h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.3;
    font-weight: 500;
    max-width: 1200px;
}

.vision h2 span {
    color: var(--text-muted);
}

/* 4. Interactive Accordion Services (NEW DESIGN PATTERN) */
.services-section {
    padding: 8rem 5%;
    border-top: 1px solid var(--border-dark);
}

.accordion-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--border-dark);
    padding: 3rem 0;
    cursor: none;
    transition: var(--transition-snappy);
    position: relative;
    overflow: hidden;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition-snappy);
    z-index: -1;
}

.accordion-item:hover::before {
    transform: scaleY(1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition-snappy);
}

.accordion-item:hover .accordion-header h3 {
    padding-left: 2rem;
    color: var(--accent-indigo);
}

.accordion-icon {
    font-size: 2rem;
    font-family: var(--font-serif);
    font-style: italic;
    transition: transform 0.4s;
}

.accordion-item:hover .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent-coral);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-item.open .accordion-content {
    max-height: 300px;
}

.accordion-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 2rem 0 0 2rem;
    max-width: 800px;
}

/* 5. Minimal Widget Calculator */
.calc-section {
    background: var(--bg-secondary);
}

.calc-widget {
    background: var(--bg-main);
    border-radius: 40px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    border: 1px solid var(--border-dark);
}

.calc-widget h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.range-container {
    margin-top: 4rem;
}

.range-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: var(--text-muted);
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-coral);
    cursor: pointer;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.calc-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
}

.data-box h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.data-box .val {
    font-size: 5rem;
    color: var(--accent-indigo);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1;
}

/* 6. Sticky Stacking Industries (NEW DESIGN PATTERN) */
.sticky-section {
    padding: 5rem 5% 10rem;
}

.sticky-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.sticky-card {
    position: sticky;
    top: 120px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    padding: 5rem;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.02);
}

.sticky-card:nth-child(1) {
    top: 120px;
    background: #EBE8E0;
}

.sticky-card:nth-child(2) {
    top: 140px;
    background: #DFDBD0;
}

.sticky-card:nth-child(3) {
    top: 160px;
    background: #D3CEBF;
}

.sticky-card h3 {
    font-size: 4rem;
}

.sticky-card p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    font-family: var(--font-serif);
    font-style: italic;
}

/* 7. Circular SVG Progress Analytics */
.analytics-section {
    text-align: center;
    border-top: 1px solid var(--border-dark);
}

.circle-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 6rem;
    flex-wrap: wrap;
}

.circle-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.svg-circle {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
    margin-bottom: 2rem;
}

.circle-bg {
    fill: none;
    stroke: var(--border-dark);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--accent-indigo);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.circle-progress.active {
    stroke-dashoffset: var(--target-offset);
}

.circle-val {
    font-size: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.circle-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

/* 8. Editorial Testimonials Slider */
.testi-section {
    background: var(--bg-secondary);
    overflow: hidden;
}

.testi-track {
    display: flex;
    gap: 4rem;
    cursor: grab;
    padding-bottom: 2rem;
    width: max-content;
}

.testi-card {
    width: 600px;
    border-left: 2px solid var(--accent-coral);
    padding-left: 3rem;
}

.testi-card p {
    font-size: 2rem;
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.testi-card h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* 9. Minimal Contact CTA */
.contact-section {
    padding: 12rem 5%;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-split h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
}

.contact-form {
    padding: 4rem;
    background: var(--bg-main);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    background: transparent;
    padding: 1.5rem 0;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-snappy);
    margin-bottom: 2rem;
}

.form-input:focus {
    border-bottom-color: var(--accent-indigo);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   Footer (Strictly Consistent - Jet Black for White Logo)
   ========================================================================== */
footer {
    background: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 8rem 5% 3rem;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-brand p {
    color: #888;
    margin-top: 2rem;
    max-width: 400px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--header-footer-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #888;
    transition: var(--transition-snappy);
    font-size: 1.1rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-coral);
    transform: translateX(8px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.legal-main {
    padding-top: 200px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.legal-main h1 {
    font-size: 5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.legal-content h2 {
    font-size: 2.5rem;
    margin: 4rem 0 1.5rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-style: italic;
}

.legal-content p {
    font-size: 1.2rem;
    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.2rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-bottom,
    .calc-widget,
    .contact-split {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        display: none;
    }

    .sticky-card {
        height: auto;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 5%;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .calc-widget {
        padding: 3rem 2rem;
    }

    .accordion-header h3 {
        font-size: 2.5rem;
    }
}