/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-teal: #7de2d1;
    --dark-bg: #131515;
    --secondary-teal: #339989;
    --white: #ffffff;
    --black: #000000;
    --text-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --hero-teal: #3cb4ac;
}

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

body {
    min-height: 100vh;
    background: #0d1815;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===========================
   Hero Wrapper
   =========================== */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    background: #0a0c0c;
    min-height: 100vh;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 24, 21, 0.3);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

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

/* ===========================
   Floating Lines Canvas
   =========================== */
#floating-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100%;
    max-width: none;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: fadeInCanvas 1.5s ease-out forwards;
}

@keyframes fadeInCanvas {
    to {
        opacity: 1;
    }
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(13, 24, 21, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(125, 226, 209, 0.1);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.875rem 4rem;
    background: rgba(13, 24, 21, 0.95);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo-text {
    font-size: 1.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
    outline: none;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.nav-links a:focus {
    outline: none;
}

.navbar.scrolled .nav-links a {
    font-size: 0.85rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3cb4ac;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #3cb4ac;
    color: #0d1815;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-primary:focus {
    outline: none;
}

.navbar.scrolled .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(60, 180, 172, 0.4);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 48px 120px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    min-height: 70vh;
    overflow: visible;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 62px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-hero-primary {
    background: #3cb4ac;
    color: #0d1815;
    border: none;
    padding: 16px 32px;
    border-radius: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn-hero-primary:focus {
    outline: none;
}

.btn-hero-primary:hover {
    background: #4ecdc4;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px 32px;
    border-radius: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn-secondary:focus {
    outline: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3cb4ac;
    color: #3cb4ac;
}

/* ===========================
   Hero Section with Video Text
   =========================== */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #0a0c0c;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(125, 226, 209, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.video-text-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-text {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 300px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(125, 226, 209, 0.05) 0%, transparent 70%);
    border-radius: 20px;
}

.video-text video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: url('applexium.svg');
    -webkit-mask-image: url('applexium.svg');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-position: center;
    -webkit-mask-position: center;
    filter: brightness(1.5) contrast(1.4) saturate(1.6);
    animation: fadeInVideo 1.2s ease-out;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-text:hover video {
    transform: scale(1.02);
    filter: brightness(1.6) contrast(1.5) saturate(1.7);
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ===========================
   Products Section
   =========================== */
.products-section {
    padding: 80px 40px;
    background: #131515;
    transition: background 0.5s ease;
}

.products-section .container {
    max-width: 1300px;
    margin: 0 auto;
}

.products-section .header {
    text-align: left;
    margin-bottom: 50px;
}

.products-section .header h1 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.products-section .header p {
    color: #a0aec0;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: rgba(51, 153, 137, 0.1);
    border: 1px solid rgba(51, 153, 137, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(125, 226, 209, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(125, 226, 209, 0.3) 40%,
        rgba(125, 226, 209, 0.5) 50%,
        rgba(125, 226, 209, 0.3) 60%,
        transparent 80%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(51, 153, 137, 0.3),
        0 0 0 1px rgba(125, 226, 209, 0.3),
        inset 0 0 0 1px rgba(125, 226, 209, 0.1);
    border-color: rgba(125, 226, 209, 0.6);
}

.product-card > * {
    position: relative;
    z-index: 3;
}

.product-image {
    width: 100%;
    height: 210px;
    background: #000000;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

/* Neural Network Pattern for Legalia */
.product-image.neural {
    background: #000;
    position: relative;
}

.product-image.neural::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(51, 153, 137, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(125, 226, 209, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(51, 153, 137, 0.3) 0%, transparent 30%);
}

.product-image.neural::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(90deg, transparent 48%, rgba(125, 226, 209, 0.5) 49%, rgba(125, 226, 209, 0.5) 51%, transparent 52%),
        linear-gradient(180deg, transparent 48%, rgba(51, 153, 137, 0.4) 49%, rgba(51, 153, 137, 0.4) 51%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.5;
    animation: flow 3s linear infinite;
}

.product-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: auto;
    z-index: 10;
    border-radius: 20px;
    filter: drop-shadow(0 0 20px rgba(125, 226, 209, 0.4));
}

/* Lock/Security Pattern for Privire */
.product-image.security {
    background: linear-gradient(180deg, #131515 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image.security::before {
    content: '🔒';
    font-size: 80px;
    position: absolute;
    opacity: 0.7;
    filter: drop-shadow(0 0 30px rgba(51, 153, 137, 0.8));
}

.product-image.security::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(125, 226, 209, 0.4);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Communication Pattern for VoxCivica */
.product-image.communication {
    background: linear-gradient(135deg, #131515 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.product-image.communication::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(51, 153, 137, 0.5) 0%, transparent 70%);
    border-radius: 50%;
}

.product-image.communication::after {
    content: '💬';
    position: absolute;
    font-size: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(125, 226, 209, 0.6));
}

@keyframes flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

.product-title {
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-description {
    color: #a0aec0;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 22px;
    min-height: 44px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.view-details-btn {
    background: #339989;
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
}

.view-details-btn:focus {
    outline: none;
}

.view-details-btn:hover {
    background: #7de2d1;
    color: #131515;
    transform: translateY(-2px);
}

/* ===========================
   Capabilities Section
   =========================== */
.capabilities-section {
    padding: 100px 20px;
    background-color: var(--dark-bg);
    transition: background-color 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.section-header p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.capability-card {
    background: rgba(125, 226, 209, 0.05);
    border: 1px solid rgba(125, 226, 209, 0.1);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-teal));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover {
    transform: translateY(-10px);
    border-color: rgba(125, 226, 209, 0.3);
    background: rgba(125, 226, 209, 0.08);
    box-shadow: 0 20px 60px rgba(125, 226, 209, 0.15);
}

.capability-card:hover::before {
    transform: scaleX(1);
}

.capability-card:nth-child(2) {
    animation-delay: 0.1s;
}

.capability-card:nth-child(3) {
    animation-delay: 0.2s;
}

.capability-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 20px;
    transition: all 0.4s ease;
}

.capability-card:hover .capability-icon {
    transform: rotateY(360deg) scale(1.1);
}

.capability-icon i {
    font-size: 36px;
    color: var(--dark-bg);
}

.capability-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.capability-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #0a0c0c 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(125, 226, 209, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .video-text-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.cta-section .video-text {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(125, 226, 209, 0.05) 0%, transparent 70%);
    border-radius: 20px;
}

.cta-section .video-text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(80px, 15vw, 220px);
    text-transform: lowercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    position: relative;
    z-index: 2;
    text-align: center;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 1.5s ease-out 0.8s forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-section .video-text video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 120%;
    min-height: 120%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    filter: brightness(1.3) contrast(1.2) saturate(1.3);
    pointer-events: none;
    mix-blend-mode: lighten;
    animation: fadeInVideo 2s ease-out 0.5s forwards;
}

@keyframes fadeInVideo {
    to {
        opacity: 0.15;
    }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease-out 1.2s forwards;
}

.cta-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 20px rgba(125, 226, 209, 0.3));
}

.hero-video {
    position: relative !important;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    background: var(--dark-bg);
}

.hero-video .video-text {
    height: 400px;
    max-width: 1400px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.hero-video .video-text video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: url('applexium.svg');
    -webkit-mask-image: url('applexium.svg');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-position: center;
    -webkit-mask-position: center;
    filter: brightness(2.5) contrast(2.0) saturate(2.2);
}

.cta-content h2 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 20px rgba(125, 226, 209, 0.3);
    line-height: 1.2;
}

.cta-content p {
    font-size: clamp(17px, 2.5vw, 20px);
    color: var(--text-light);
    margin-bottom: 48px;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

.cta-button {
    display: inline-block;
    padding: 20px 56px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    color: var(--dark-bg);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(125, 226, 209, 0.4);
    font-family: 'Poppins', sans-serif;
    outline: none;
    border: none;
    cursor: pointer;
}

.cta-button:focus {
    outline: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(125, 226, 209, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* ===========================
   Team Section
   =========================== */
.team-section {
    min-height: 100vh;
    padding: 140px 20px 80px;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
}

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

.team-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.team-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.team-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-card {
    background: rgba(125, 226, 209, 0.03);
    border: 1px solid rgba(125, 226, 209, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(125, 226, 209, 0.3);
    background: rgba(125, 226, 209, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.team-avatar i {
    font-size: 50px;
    color: var(--dark-bg);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
}

.team-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.team-role {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-teal);
    background: rgba(125, 226, 209, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.team-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(125, 226, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 18px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-teal);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.team-card-link {
    text-decoration: none;
    display: block;
}

.team-card-link .team-card {
    cursor: pointer;
}

.view-profile {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-profile i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.team-card-link:hover .view-profile {
    color: var(--white);
}

.team-card-link:hover .view-profile i {
    transform: translateX(5px);
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 60px 20px 40px;
    background-color: #0a0c0c;
    border-top: 1px solid rgba(125, 226, 209, 0.1);
    transition: background-color 0.5s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.footer-brand i {
    font-size: 28px;
    color: var(--primary-teal);
}

.footer-brand .brand-dark {
    color: var(--text-gray);
}

.footer-brand .brand-teal {
    color: var(--primary-teal);
}

.footer-brand .brand-secondary {
    color: var(--secondary-teal);
}

.footer-info p {
    color: var(--text-gray);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.footer-social {
    display: flex;
    gap: 30px;
}

.footer-social a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.footer-social a:hover {
    color: var(--primary-teal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Responsive Design
   =========================== */

/* Large Desktop - 1440px+ */
@media (min-width: 1440px) {
    .navbar {
        padding: 1.5rem 5rem;
    }
    
    .navbar.scrolled {
        padding: 1rem 5rem;
    }
}

/* Desktop - 1200px to 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .navbar {
        padding: 1.25rem 3rem;
    }
    
    .navbar.scrolled {
        padding: 1rem 3rem;
    }
}

/* Laptop - 1024px to 1199px */
@media (max-width: 1199px) {
    .navbar {
        padding: 1.25rem 2rem;
    }
    
    .navbar.scrolled {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
}

/* Tablet - 768px to 1023px */
@media (max-width: 1023px) {
    .navbar {
        padding: 1.25rem 2rem;
    }
    
    .navbar.scrolled {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Products Grid */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Mobile Navigation - 768px and below */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 1.5rem;
        border-radius: 0 0 20px 20px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .navbar.scrolled .logo-text {
        font-size: 1.125rem;
    }
}

@media (max-width: 968px) {
    .cta-section {
        min-height: 50vh;
        padding: 40px 20px;
    }

    .video-text {
        height: 200px;
    }

    .hero-video .video-text {
        height: 300px;
    }

    .capabilities-section {
        padding: 60px 20px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Small Mobile - 480px to 767px */
@media (max-width: 767px) {
    .navbar {
        padding: 1rem 1rem;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 1rem;
        border-radius: 0 0 16px 16px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .navbar.scrolled .logo-text {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(13, 24, 21, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(125, 226, 209, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.125rem;
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(125, 226, 209, 0.1);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 0.75rem;
        justify-content: center;
    }

    .hero {
        padding: 40px 24px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .products-section {
        padding: 40px 20px;
    }

    .products-section .header h1 {
        font-size: 1.875rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile - 320px to 479px */
@media (max-width: 479px) {
    .navbar {
        padding: 1rem 1rem;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 1rem;
        border-radius: 0 0 12px 12px;
    }

    .logo-text {
        font-size: 1rem;
    }
    
    .navbar.scrolled .logo-text {
        font-size: 0.925rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }

    .nav-links {
        width: 100%;
        padding: 70px 20px 20px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-video .video-text {
        height: 150px;
    }

    .hero-video {
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .video-text {
        height: 150px;
    }

    .hero-video .video-text {
        height: 200px;
    }

    .hero-video {
        margin-bottom: 40px;
    }

    .capability-card {
        padding: 40px 30px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .cta-button {
        padding: 16px 40px;
        font-size: 17px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: clamp(32px, 8vw, 48px);
    }
}

/* ===========================
   Accessibility & Performance
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility - removed outline */
a:focus,
button:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===========================
   AOS Animation Overrides
   =========================== */
/* Убираем конфликты transition для AOS элементов */
[data-aos] {
    pointer-events: auto;
}

[data-aos].product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Явно определяем начальное состояние для анимаций */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-200px);
    transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(200px);
    transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(200px);
    transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Состояние после анимации */
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Дополнительная плавность для opacity */
[data-aos][data-aos-easing="ease-in-out-quart"] {
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Плавное появление для product cards */
.product-card[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 100px 20px;
    background: var(--background-dark);
    position: relative;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: rgba(51, 153, 137, 0.08);
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 226, 209, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(125, 226, 209, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 226, 209, 0.2);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(125, 226, 209, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.contact-icon i {
    font-size: 24px;
    color: var(--primary-teal);
}

.contact-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.contact-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* Contact Content (Form + Map) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(51, 153, 137, 0.08);
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-wrapper h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group .optional {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(20, 40, 45, 0.6);
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: rgba(20, 40, 45, 0.8);
    box-shadow: 0 0 0 3px rgba(125, 226, 209, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: var(--primary-teal);
    color: var(--background-dark);
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
}

.submit-btn:focus {
    outline: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover {
    background: var(--secondary-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 226, 209, 0.3);
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Contact Map */
.contact-map {
    background: linear-gradient(135deg, #d4f1e8 0%, #b8e6d5 100%);
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    filter: grayscale(0.2) contrast(1.1);
    transition: all 0.3s ease;
}

.contact-map:hover iframe {
    filter: grayscale(0) contrast(1.2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 200px;
    background:
        linear-gradient(90deg, rgba(125, 226, 209, 0.3) 1px, transparent 1px) 0 0,
        linear-gradient(0deg, rgba(125, 226, 209, 0.3) 1px, transparent 1px) 0 0;
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg);
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(51, 153, 137, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.map-pin {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: var(--primary-teal);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 15px 30px rgba(51, 153, 137, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.8);
    animation: pinBounce 2s ease-in-out infinite;
}

.map-pin i {
    font-size: 28px;
    color: white;
    transform: rotate(45deg);
}

@keyframes pinBounce {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-15px);
    }
}

/* Responsive Design for Contact Section */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-header h1 {
        font-size: 32px;
    }

    .contact-header p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-map {
        min-height: 400px;
    }
}

/* ===========================
   LEGALIA PAGE STYLES
   =========================== */

/* Legalia Hero Section */
.legalia-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    background: #0a0c0c;
    position: relative;
    overflow: hidden;
}

.legalia-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(125, 226, 209, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.legalia-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.legalia-hero .hero-content {
    text-align: center;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(125, 226, 209, 0.15);
    border: 1px solid rgba(125, 226, 209, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--primary-teal);
    font-weight: 500;
}

.product-badge i {
    font-size: 16px;
}

.legalia-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(56px, 8vw, 80px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(20px, 3vw, 26px);
    color: var(--primary-teal);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background: var(--dark-bg);
}

.about-section .container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.about-content p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.about-content .highlight {
    color: var(--primary-teal);
    font-weight: 600;
}

.learning-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cycle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cycle-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(125, 226, 209, 0.3);
    transition: all 0.3s ease;
}

.cycle-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 32px rgba(125, 226, 209, 0.5);
}

.cycle-icon i {
    font-size: 32px;
    color: var(--dark-bg);
}

.cycle-item span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.cycle-arrow {
    font-size: 24px;
    color: var(--primary-teal);
    opacity: 0.6;
}

/* Audience Section */
.audience-section {
    padding: 100px 20px;
    background: #0a0c0c;
}

.audience-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.audience-card {
    background: rgba(51, 153, 137, 0.08);
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 226, 209, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.audience-card:hover {
    transform: translateY(-10px);
    border-color: rgba(125, 226, 209, 0.5);
    box-shadow: 0 20px 40px rgba(125, 226, 209, 0.2);
}

.audience-card:hover::before {
    opacity: 1;
}

.audience-icon {
    width: 90px;
    height: 90px;
    background: rgba(125, 226, 209, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.audience-card:hover .audience-icon {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    transform: scale(1.1) rotate(5deg);
}

.audience-icon i {
    font-size: 40px;
    color: var(--primary-teal);
    transition: color 0.4s ease;
}

.audience-card:hover .audience-icon i {
    color: var(--dark-bg);
}

.audience-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.audience-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: var(--dark-bg);
}

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

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(51, 153, 137, 0.08);
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 16px;
    padding: 35px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(125, 226, 209, 0.2) 40%,
        rgba(125, 226, 209, 0.4) 50%,
        rgba(125, 226, 209, 0.2) 60%,
        transparent 80%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(125, 226, 209, 0.5);
    box-shadow: 0 15px 35px rgba(125, 226, 209, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(125, 226, 209, 0.2), rgba(51, 153, 137, 0.3));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 32px;
    color: var(--primary-teal);
    transition: color 0.4s ease;
}

.feature-card:hover .feature-icon i {
    color: var(--dark-bg);
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 20px;
    background: #0a0c0c;
}

.benefits-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(51, 153, 137, 0.1) 0%, rgba(125, 226, 209, 0.05) 100%);
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-teal), var(--secondary-teal));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.benefit-card:hover::before {
    transform: scaleY(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(125, 226, 209, 0.5);
    box-shadow: 0 20px 45px rgba(125, 226, 209, 0.25);
}

.benefit-number {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: rgba(125, 226, 209, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.benefit-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.benefit-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    color: rgba(125, 226, 209, 0.1);
    transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    color: rgba(125, 226, 209, 0.3);
    transform: scale(1.2) rotate(10deg);
}

/* Core Features Section */
.core-features-section {
    padding: 100px 20px;
    background: var(--dark-bg);
}

.core-features-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.core-features-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.features-list li:hover {
    color: #ffffff;
    transform: translateX(8px);
}

.features-list i {
    font-size: 24px;
    color: var(--primary-teal);
    flex-shrink: 0;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, rgba(125, 226, 209, 0.1), rgba(51, 153, 137, 0.2));
    border: 12px solid rgba(125, 226, 209, 0.3);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.phone-mockup:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 40px 80px rgba(125, 226, 209, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #131515;
    border-radius: 28px;
    padding: 20px;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mockup-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 50%;
}

.mockup-info {
    flex: 1;
}

.mockup-name {
    width: 120px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 8px;
}

.mockup-progress {
    width: 80px;
    height: 8px;
    background: rgba(125, 226, 209, 0.3);
    border-radius: 4px;
}

.mockup-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-card {
    height: 100px;
    background: linear-gradient(135deg, rgba(51, 153, 137, 0.2), rgba(125, 226, 209, 0.1));
    border: 1px solid rgba(125, 226, 209, 0.2);
    border-radius: 16px;
    animation: cardPulse 2s ease-in-out infinite;
}

.mockup-card:nth-child(2) {
    animation-delay: 0.3s;
}

.mockup-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes cardPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Mission Section */
.mission-section {
    padding: 120px 20px;
    background: #0a0c0c;
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(125, 226, 209, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

.mission-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 20px 50px rgba(125, 226, 209, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.mission-icon i {
    font-size: 48px;
    color: var(--dark-bg);
}

.mission-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.mission-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.mission-content .highlight {
    color: var(--primary-teal);
    font-weight: 600;
}

/* Responsive Design for Legalia Page */
@media (max-width: 1024px) {
    .about-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .learning-cycle {
        gap: 15px;
    }

    .core-features-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 768px) {
    .legalia-hero {
        padding: 120px 20px 60px;
        min-height: 60vh;
    }

    .about-section,
    .audience-section,
    .features-section,
    .benefits-section,
    .core-features-section,
    .mission-section {
        padding: 60px 20px;
    }

    .audience-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .learning-cycle {
        flex-direction: column;
    }

    .cycle-arrow {
        transform: rotate(90deg);
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
    }
}

@media (max-width: 480px) {
    .cycle-icon {
        width: 60px;
        height: 60px;
    }

    .cycle-icon i {
        font-size: 24px;
    }

    .benefit-number {
        font-size: 42px;
    }

    .mission-icon {
        width: 80px;
        height: 80px;
    }

    .mission-icon i {
        font-size: 36px;
    }
}