@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary: hsl(262, 85%, 58%);
    --primary-light: hsl(262, 85%, 96%);
    --primary-glow: hsla(262, 85%, 58%, 0.15);
    
    --accent-yellow: hsl(42, 95%, 55%);
    --accent-yellow-light: hsl(42, 95%, 96%);
    --accent-cyan: hsl(187, 85%, 48%);
    --accent-cyan-light: hsl(187, 85%, 96%);
    --accent-red: hsl(354, 75%, 56%);
    --accent-red-light: hsl(354, 75%, 96%);
    
    --bg-main: hsl(220, 20%, 97%);
    --bg-card: hsl(0, 0%, 100%);
    --text-main: hsl(224, 30%, 15%);
    --text-muted: hsl(220, 10%, 45%);
    --border-color: hsl(220, 15%, 90%);
    --border-hover: hsl(262, 85%, 85%);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Ambient glow backgrounds */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 8px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--text-main);
}

nav a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: var(--text-main);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #000;
}

.btn-accent {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    background: hsl(354, 75%, 50%);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    z-index: 1;
}

/* Floating animation keyframes */
@keyframes floatY {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes floatYReverse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
    100% { transform: translateY(0px); }
}

.hero-visual-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 420px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatY 6s ease-in-out infinite;
}

.hero-main-icon {
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--primary);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 45px rgba(139, 92, 246, 0.35), inset 0 -4px 10px rgba(0,0,0,0.15);
    z-index: 5;
    transition: var(--transition-smooth);
}

.hero-main-icon svg {
    width: 60px;
    height: 60px;
    fill: white;
    transition: var(--transition-smooth);
}

/* Connection Lines SVG Overlay */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.hero.scrolled .connection-lines {
    opacity: 0;
}

/* Floaters */
.floater {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    z-index: 4;
}

.floater svg {
    width: 32px;
    height: 32px;
}

.floater-yellow {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFDF6D, #FFC533);
    top: 25%;
    left: 25%;
    box-shadow: 0 10px 25px rgba(255, 197, 51, 0.25), inset 0 2px 4px rgba(255,255,255,0.4);
}

.floater-yellow svg {
    stroke: #5C3E00;
}

.floater-blue {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #53C3FF, #0099FF);
    top: 73%;
    left: 27%;
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.25), inset 0 2px 4px rgba(255,255,255,0.4);
}

.floater-red {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF8066, #FF4D3D);
    top: 28%;
    left: 73%;
    box-shadow: 0 10px 25px rgba(255, 77, 61, 0.25), inset 0 2px 4px rgba(255,255,255,0.4);
}

.floater-eyes {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 24px;
    top: 50%;
    left: 88%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06), inset 0 -2px 4px rgba(0,0,0,0.03);
}

.floater-eyes svg {
    width: 44px;
    height: 44px;
}

.hero.scrolled .floater {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
}

/* Hero Avatars initial state */
.hero-avatar {
    position: absolute;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
    z-index: 3;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-left {
    width: 96px;
    height: 110px;
    border-radius: 24px;
    left: 10%;
    top: 50%;
}

.avatar-right {
    width: 80px;
    height: 92px;
    border-radius: 20px;
    left: 77%;
    top: 70%;
}

/* Typography elements */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
    transition: var(--transition-smooth);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

.hero-actions {
    transition: var(--transition-smooth);
}

/* Scroll-driven Transition Classes (Applied via JS) */
.hero.scrolled .hero-main-icon {
    transform: scale(0.6) translateY(-50px);
    background: var(--primary-light);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.hero.scrolled .hero-main-icon svg {
    fill: var(--primary);
}

.hero.scrolled .floater {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
}

.hero.scrolled .hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    animation: none;
}

/* Floating cloud positioning is handled dynamically in script.js */

/* Setup all floating cloud avatars (we'll generate 8 placeholders or custom SVGs in code) */
.cloud-avatar {
    position: absolute;
    width: 160px;
    height: 195px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    opacity: 0;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0) scale(0);
    transition: opacity 0.4s ease;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}

.cloud-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero.scrolled .cloud-avatar {
    opacity: 1;
}

/* Features Grid Section */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.04), 0 1px 3px rgba(0,0,0,0.02);
}

.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

.card-visual {
    background: var(--bg-main);
    border-radius: 20px;
    height: 180px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.card-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Card Specific Visuals */
/* 1. Attendance bar chart */
/* 1. Attendance visual (HR professionals) */
.attendance-visual {
    position: relative;
    overflow: visible !important;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.attendance-chart {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    width: 170px;
    height: 135px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.attendance-bg-card {
    position: absolute;
    width: 140px;
    height: 110px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1;
    opacity: 0.55;
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.attendance-bg-card.left {
    transform: translate(-35px, 0px) scale(0.9) rotate(-3deg);
}

.attendance-bg-card.right {
    transform: translate(35px, 0px) scale(0.9) rotate(3deg);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.chart-dropdown {
    font-size: 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-main);
    cursor: pointer;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 70px;
    margin-top: 10px;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.chart-bar {
    width: 12px;
    border-radius: 4px 4px 0 0;
    height: 0%;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Palette colors for HR professionals card bars */
.chart-bar-wrapper:nth-child(1) .chart-bar { background: #FF8A75; }
.chart-bar-wrapper:nth-child(2) .chart-bar { background: #8B5CF6; }
.chart-bar-wrapper:nth-child(3) .chart-bar { background: #FF8A75; }
.chart-bar-wrapper:nth-child(4) .chart-bar { background: #8B5CF6; }
.chart-bar-wrapper:nth-child(5) .chart-bar { background: #FF8A75; }

.chart-bar-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* 2. Decisions & manager visual */
.manager-visual {
    position: relative;
    overflow: visible !important;
}

.manager-bg-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.75;
}

.manager-bg-orbit svg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.manager-bg-card {
    position: absolute;
    width: 140px;
    height: 85px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
    transform: translateY(12px) scale(0.95);
    opacity: 0.7;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.decisions-badge {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    z-index: 2;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-icon-yellow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #FEF3C7;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. Legal stack */
.legal-stack {
    position: relative;
    width: 120px;
    height: 100px;
}

.legal-doc {
    position: absolute;
    width: 80px;
    height: 100px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 6px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-line {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.doc-line.short { width: 60%; }
.doc-line.primary { background: var(--primary-light); }

.legal-doc:nth-child(1) {
    transform: rotate(-10deg) translate(-15px, 0);
    z-index: 1;
}

.legal-doc:nth-child(2) {
    transform: rotate(5deg) translate(10px, 5px);
    z-index: 2;
}

.legal-shield-badge {
    position: absolute;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. Employee roster & visual */
.employee-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
}

.employee-red-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) translate3d(0, 0, 0);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.red-badge-inner {
    width: 44px;
    height: 44px;
    background: #FEE2E2;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #FECACA;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.05);
}

.employee-card-list {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    width: 165px;
    height: 165px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.employee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.employee-card-header .see-all {
    font-size: 0.62rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.roster-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.employee-card-list .roster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #F1F5F9;
}

.employee-card-list .roster-row:last-child {
    border-bottom: none;
}

.employee-card-list .roster-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.employee-card-list .roster-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
}

.employee-card-list .roster-info {
    display: flex;
    flex-direction: column;
}

.employee-card-list .roster-name {
    font-size: 0.68rem;
    font-weight: 700;
}

.employee-card-list .roster-role {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.employee-chart-card {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translate3d(0, 0, 0);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px;
    width: 95px;
    height: 105px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-card-header {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

.chart-card-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 50px;
}

.participation-bar-bg {
    width: 14px;
    height: 100%;
    background: #F3E8FF;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.participation-bar-fill {
    width: 100%;
    background: #8B5CF6;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 1s ease;
}

.participation-val {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8B5CF6;
}

/* 5. Teams & employees ring widget */
.teams-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
}

.teams-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teams-center-circle {
    position: absolute;
    width: 52px;
    height: 52px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.03);
    z-index: 3;
}

.teams-avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-avatar {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    background: white;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ring-avatar-1 { transform: rotate(0deg) translate(64px) rotate(0deg); }
.ring-avatar-2 { transform: rotate(45deg) translate(64px) rotate(-45deg); }
.ring-avatar-3 { transform: rotate(90deg) translate(64px) rotate(-90deg); }
.ring-avatar-4 { transform: rotate(135deg) translate(64px) rotate(-135deg); }
.ring-avatar-5 { transform: rotate(180deg) translate(64px) rotate(-180deg); }
.ring-avatar-6 { transform: rotate(225deg) translate(64px) rotate(-225deg); }
.ring-avatar-7 { transform: rotate(270deg) translate(64px) rotate(-270deg); }
.ring-avatar-8 { transform: rotate(315deg) translate(64px) rotate(-315deg); }

/* Hover effects for all feature-cards */
.feature-card:hover .attendance-bg-card.left {
    transform: translate(-55px, -5px) scale(0.85) rotate(-6deg);
}

.feature-card:hover .attendance-bg-card.right {
    transform: translate(55px, -5px) scale(0.85) rotate(6deg);
}

.feature-card:hover .attendance-chart {
    transform: scale(1.03);
}

.feature-card:hover .manager-bg-orbit svg {
    transform: rotate(25deg);
}

.feature-card:hover .manager-bg-card {
    transform: translateY(22px) scale(0.9);
}

.feature-card:hover .decisions-badge {
    transform: translateY(-8px) scale(1.05);
}

.feature-card:hover .legal-doc:nth-child(1) {
    transform: rotate(-18deg) translate(-28px, -5px);
}

.feature-card:hover .legal-doc:nth-child(2) {
    transform: rotate(12deg) translate(20px, 2px);
}

.feature-card:hover .legal-shield-badge {
    transform: translate(-50%, -50%) scale(1.15) rotate(12deg);
}

.feature-card:hover .employee-red-badge {
    transform: translateY(-50%) translate3d(-18px, -5px, 0) scale(0.9);
}

.feature-card:hover .employee-chart-card {
    transform: translateY(-50%) translate3d(18px, -5px, 0) scale(1.05);
}

.feature-card:hover .employee-card-list {
    transform: scale(1.02);
}

.feature-card:hover .teams-avatar-ring {
    transform: rotate(45deg);
}

/* Counters internal ring avatar tilt to keep them upright */
.feature-card:hover .ring-avatar-1 { transform: rotate(0deg) translate(64px) rotate(-45deg); }
.feature-card:hover .ring-avatar-2 { transform: rotate(45deg) translate(64px) rotate(-90deg); }
.feature-card:hover .ring-avatar-3 { transform: rotate(90deg) translate(64px) rotate(-135deg); }
.feature-card:hover .ring-avatar-4 { transform: rotate(135deg) translate(64px) rotate(-180deg); }
.feature-card:hover .ring-avatar-5 { transform: rotate(180deg) translate(64px) rotate(-225deg); }
.feature-card:hover .ring-avatar-6 { transform: rotate(225deg) translate(64px) rotate(-270deg); }
.feature-card:hover .ring-avatar-7 { transform: rotate(270deg) translate(64px) rotate(-315deg); }
.feature-card:hover .ring-avatar-8 { transform: rotate(315deg) translate(64px) rotate(-360deg); }

/* Integrations Section */
.integrations {
    background: #FCFDFE;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 90px 0 60px 0;
    overflow: hidden;
    position: relative;
}

.integrations-badge-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.integrations-badge-icon .badge-icon-inner {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.carousel-viewport {
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 30px;
}

.carousel-container {
    width: 100%;
    max-width: 900px;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    position: absolute;
    width: 130px;
    height: 130px;
    background: #F8FAFC;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, border-color 0.4s ease, background-color 0.4s ease;
    z-index: 1;
}

.carousel-item.active {
    background: white;
    border-color: rgba(226, 232, 240, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.carousel-item svg {
    width: 55px;
    height: 55px;
    transition: transform 0.4s ease;
}

.carousel-item:hover svg {
    transform: scale(1.08);
}

.integration-detail {
    text-align: center;
    margin-top: 20px;
    height: 60px;
    transition: opacity 0.3s ease;
}

.integration-detail h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.integration-detail p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-main);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 10px;
    margin: 0 auto;
}

.testimonials-slider-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 10px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
}

.testimonials-slider-track:active {
    cursor: grabbing;
}

/* Premium Glassmorphic Testimonial Card */
.testimonial-card {
    width: 380px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    background: var(--bg-main);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-meta h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.author-meta p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-yellow);
}

.rating-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Nav Controls */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.2);
}

.nav-arrow:hover svg {
    fill: white;
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--text-main);
    transition: fill 0.3s ease;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .testimonial-card {
        width: 310px;
        padding: 24px;
    }
    .testimonial-quote {
        font-size: 0.9rem;
    }
}

/* Footer Section */
footer {
    background: white;
    padding: 80px 24px 40px 24px;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    grid-column: span 2;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.social-icon:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bg-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -10px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .col-3 { grid-column: span 2; }
    .col-4 { grid-column: span 2; }
    .col-2 { grid-column: span 2; }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    header {
        width: 95%;
    }
    header nav {
        display: none;
    }
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .col-3, .col-2, .col-4, .col-6 {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 32px;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bg-text {
        font-size: 8rem;
        bottom: -20px;
    }
}

/* ----------------------------------------------------------------
   Core Solutions Section (Section 2) Styling
---------------------------------------------------------------- */
.core-solutions {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

.core-visual-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.core-center-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
    margin-bottom: 24px;
    z-index: 3;
}

.core-center-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.core-text-block {
    text-align: center;
    max-width: 550px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.core-text-block h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: black;
}

.core-text-block p {
    font-size: 1.15rem;
    color: #7F8A9C;
    max-width: 480px;
    margin: 0 auto 24px auto;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .core-solutions {
        min-height: auto;
        padding: 80px 24px;
    }
    .core-text-block h1 {
        font-size: 2.4rem;
    }
    .core-text-block p {
        font-size: 1rem;
    }
    .core-visual-container {
        height: 500px;
        gap: 20px;
    }
}

