/* style.css - Ecosyst Agency Site */
:root {
    --bg-bone: #F7F7F4;
    --text-main: #14161A;
    --text-light: #5A5E66;
    --accent-blue: #0055FF;
    --accent-hover: #0044CC;
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-bone);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient Glow (Corporate Blue) */
.ambient-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 82, 138, 0.08) 0%, rgba(33, 82, 138, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* =========================================
   Typography & Sections
   ========================================= */
h1, h2, h3 {
    letter-spacing: -0.03em;
    font-weight: 500;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(247, 247, 244, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.02em;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
    cursor: pointer;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--text-main);
    color: var(--bg-bone);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding: 0 5%;
}

/* Hero Brand Focus */
.massive-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.05em;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 24px;
}

.hero-logo-inline {
    animation: slowRotate 40s linear infinite;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo-inline:hover {
    transform: scale(1.15) rotate(90deg);
    animation: none;
}

.nav-logo-inline {
    transition: transform 0.4s ease;
}

.nav-logo-inline:hover {
    transform: scale(1.1) rotate(45deg);
}

@keyframes slowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 16px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.9;
    text-decoration: none;
    z-index: 10;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.scroll-line {
    width: 2px;
    height: 80px;
    background: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent-blue);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* =========================================
   Bespoke Ecosystem (Sticky Layout)
   ========================================= */
.bespoke-ecosystem {
    padding: 160px 0;
    background: var(--bg-bone);
}

.ecosystem-header {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.ecosystem-header h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.04em;
    flex: 1;
}

.ecosystem-header p {
    flex: 1;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 500px;
}

.sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 120px;
    height: 70vh;
    min-height: 500px;
    background: white;
    border-radius: 40px;
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    overflow: hidden;
    transform-origin: top center;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Stacking effect offsets */
.card-1 { top: 120px; z-index: 1; }
.card-2 { top: 140px; z-index: 2; background: #0B0C0F; color: white; }
.card-3 { top: 160px; z-index: 3; background: #21528A; color: white; }

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.card-number {
    font-size: clamp(8rem, 15vw, 15rem);
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.05em;
    opacity: 0.35;
}

.card-2 .card-number { opacity: 0.3; }
.card-3 .card-number { opacity: 0.3; }

.card-text {
    max-width: 500px;
}

.card-text h3 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.card-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .ecosystem-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .card-number {
        font-size: 6rem;
    }
}

/* =========================================
   Manifesto / Vision
   ========================================= */
.manifesto-section {
    padding: 160px 0;
    position: relative;
    background: #0B0C0F;
    color: white;
    overflow: hidden;
}

.manifesto-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(0, 85, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.manifesto-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    margin-bottom: 40px;
}

.manifesto-content {
    max-width: 800px;
}

.lead-text {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 300;
}

.sub-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

/* =========================================
   Quote Form Section
   ========================================= */
.quote-section {
    padding: 120px 0;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.quote-info h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.quote-info p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.elegant-form {
    background: white;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.03);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 32px;
}

input, select, textarea {
    width: 100%;
    padding: 16px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    outline: none;
    transition: var(--transition);
    resize: none;
}

select {
    color: var(--text-light);
    cursor: pointer;
}

input:focus, select:focus, textarea:focus {
    border-bottom-color: var(--accent-blue);
}

/* Floating Labels */
label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

label.static-label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label,
textarea:focus ~ label,
textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--accent-blue);
    padding-left: 30px;
    padding-right: 20px;
}

.arrow {
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.submit-btn:hover .arrow {
    background: white;
    color: var(--accent-blue);
    transform: translateX(5px);
}

.success-message {
    text-align: center;
    padding: 60px;
    background: rgba(0, 204, 102, 0.1);
    border-radius: 32px;
    color: #00A352;
}

.hidden {
    display: none;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

/* =========================================
   Animations (Scroll Reveal)
   ========================================= */
.fade-in { animation: fadeIn 1s ease forwards; }
.slide-up { animation: slideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.fade-in-scroll, .float-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-scroll.visible, .float-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .elegant-form {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
