/* ========================================
   STRATUM GLOBAL - asutajad.ee Inspired Design
   ======================================== */

:root {
    /* Colors - Tech Minimalist */
    --color-bg-body: #FAFBFC;
    --color-bg-card: #FFFFFF;
    --color-text-primary: #111827;
    --color-text-secondary: #6B7280;
    --color-accent: #2563EB;
    --color-accent-dark: #1E40AF;
    --color-border: #E5E7EB;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Manrope', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --radius-pill: 100px;
    --radius-bento: 40px;
    /* Increased from 24px to match asutajad.ee */
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --shadow-icon: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   AMBIENT BACKGROUND (Enhanced Vignette)
   ======================================== */
.ambient-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    /* More intense blue/purple vignette like asutajad.ee */
    background:
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(200, 220, 255, 0.08) 100%);
}

.ambient-orb {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -2;
    background: var(--color-accent);
    transition: transform 0.3s ease-out;
}

.orb-top-right {
    top: -300px;
    right: -300px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.orb-bottom-left {
    bottom: -300px;
    left: -300px;
    background: linear-gradient(135deg, #06B6D4, #3B82F6);
}

.orb-center {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.06;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-text-primary);
    color: white;
}

.btn-primary:hover {
    background: black;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-bento {
    padding: 10rem 0 8rem;
    position: relative;
    overflow: visible;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-float);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
    }
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.text-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   FLOATING ICONS (asutajad.ee style)
   ======================================== */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: drift 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
    transition: transform 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-8px, -12px) rotate(-3deg);
    }

    50% {
        transform: translate(4px, -20px) rotate(2deg);
    }

    75% {
        transform: translate(-4px, -8px) rotate(-1deg);
    }
}

/* ========================================
   ECOSYSTEM (Bento Grid - asutajad.ee Style)
   ======================================== */
.ecosystem {
    padding: 6rem 1.5rem 8rem;
    position: relative;
}

.section-intro {
    text-align: center;
    margin-bottom: 4.5rem;
}

.sub-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-intro h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

.section-intro p {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.8;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-bento);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Card Icons with Soft Colors */
.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.card-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.12;
}

.color-green {
    color: #10B981;
}

.color-green::after {
    background: currentColor;
}

.color-purple {
    color: #8B5CF6;
}

.color-purple::after {
    background: currentColor;
}

.color-orange {
    color: #F59E0B;
}

.color-orange::after {
    background: currentColor;
}

.card-icon {
    width: 24px;
    height: 24px;
    z-index: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.card-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Grid Spanning */
.card-large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.card-large .card-content {
    flex: 1.2;
    padding: 4rem;
}

.card-medium {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.card-medium .card-content {
    flex: 1.2;
    padding: 4rem;
}

/* Card Visuals */
.visual-graph {
    flex: 1;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Isometric Bar Chart SVG */
.iso-chart {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.iso-chart .bar {
    transition: transform 0.3s ease;
}

.visual-graph:hover .bar-1 {
    transform: translateY(-3px);
}

.visual-graph:hover .bar-2 {
    transform: translateY(-5px);
}

.visual-graph:hover .bar-3 {
    transform: translateY(-8px);
}

.graph-stats {
    margin-top: 1.5rem;
}

.stat-pill {
    position: relative;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #059669;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Accent Card (High Impact) */
.card-accent {
    background: linear-gradient(145deg, #1E1B4B 0%, #312E81 100%);
    color: white;
    border: none;
    box-shadow: 0 20px 40px rgba(30, 27, 75, 0.15);
}

.card-accent:hover {
    background: linear-gradient(145deg, #1E1B4B 0%, #312E81 100%);
}

.accent-bg {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.card-accent .card-content {
    z-index: 1;
}

.accent-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: #818CF8;
}

.card-accent .accent-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 0.75rem;
}

.card-accent .accent-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.card-accent .accent-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Advisory Visual */
.card-visual-advisory {
    flex: 1;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(180deg, #FFF7ED 0%, #FFEDD5 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

/* Mirrored Hexagons/Prisms SVG */
.iso-twin-prism {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Animations for Twin Prism */
.card-medium:hover .prism-digital {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.card-medium:hover .prism-digital path {
    stroke-dashoffset: 10;
    transition: stroke-dashoffset 20s linear;
}

.card-tags {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
}

.card-tags span {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.05);
    color: #059669;
    border-radius: 10px;
    font-weight: 700;
}

/* Small Visual for Card 2 */
.card-visual-small {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0;
}

/* Stacked Blocks / Launchpad SVG */
.iso-launchpad {
    width: 100%;
    height: auto;
    display: block;
    /* Ensures no bottom gap */
}

/* Animations for Launchpad */
.bento-card:hover .sat-1 {
    transform: translate(-3px, -6px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover .sat-2 {
    transform: translate(3px, -6px);
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover .sat-3 {
    transform: translate(-2px, 4px);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover .sat-4 {
    transform: translate(2px, 4px);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.satellite,
.core-cube {
    transition: transform 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.pulse-node {
    animation: pulse 2s infinite ease-in-out;
    transform-origin: center;
}

/* ========================================
   WHY US - BOLD VISUAL PILLARS
   ======================================== */
.why-us-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.why-us-header {
    text-align: center;
    margin-bottom: 5rem;
}

.why-us-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    margin-top: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pillar-card {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: background 0.4s ease;
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.pillar-card:nth-child(1):hover::before {
    background: linear-gradient(90deg, #6366F1, #A78BFA);
}

.pillar-card:nth-child(2):hover::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.pillar-card:nth-child(3):hover::before {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

/* Featured middle card */
.pillar-featured {
    transform: scale(1.05);
    background: linear-gradient(145deg, #0F172A 0%, #1E1B4B 100%);
    border: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.pillar-featured:hover {
    transform: scale(1.05) translateY(-12px);
}

.pillar-featured .pillar-title,
.pillar-featured .pillar-sub {
    color: #FFFFFF;
}

.pillar-featured .pillar-sub {
    opacity: 0.7;
}

.pillar-visual {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pillar-card:hover .pillar-visual {
    transform: scale(1.1) rotate(3deg);
}

.pillar-visual svg {
    width: 100%;
    height: 100%;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.pillar-sub {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pillar-featured {
        transform: scale(1);
        order: -1;
    }

    .pillar-featured:hover {
        transform: translateY(-12px);
    }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-text-primary);
}

.footer-copy {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* Nav Spacer */
.nav-spacer {
    height: 120px;
}

/* ========================================
   UNIFIED FLOATING NAVIGATION (asutajad.ee)
   ======================================== */
.floating-nav-container {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.floating-nav.unified {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Brand in Nav */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-primary);
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.nav-logo {
    height: 28px;
    width: auto;
}

.nav-brand .brand-icon {
    color: var(--color-accent);
}

/* Divider */
.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0 0.25rem;
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
    background: white;
    color: var(--color-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-item.highlight {
    background: var(--color-text-primary);
    color: white;
}

.nav-item.highlight:hover {
    background: black;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .floating-icon {
        display: none;
    }

    .floating-icon.icon-1,
    .floating-icon.icon-3 {
        display: block;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large,
    .card-medium {
        grid-column: span 1;
        flex-direction: column;
    }

    .card-large .card-visual {
        width: 100%;
        margin-top: 1.5rem;
        min-height: 120px;
    }

    .diff-layout {
        flex-direction: column;
        text-align: center;
    }

    .clean-list li {
        justify-content: center;
    }

    .floating-icons {
        display: none;
    }
}

@media (max-width: 700px) {
    .hero-bento {
        padding: 8rem 0 5rem;
        min-height: auto;
    }

    .nav-brand span {
        display: none;
    }

    .nav-divider:first-of-type {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-heading {
        font-size: 2.5rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .floating-nav.unified {
        width: 92%;
        justify-content: space-between;
        padding: 0.4rem 0.5rem;
    }

    .nav-item {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .nav-item.highlight {
        padding: 0.5rem 1rem;
    }
}