/* ========================================
   TITANIUM - Premium Financial Technology
   Sophisticated, Global, Trustworthy
   ======================================== */

:root {
    /* Core Colors - Sophisticated Dark */
    --titanium-dark: #0c0f14;
    --titanium-darker: #080a0e;
    --titanium-navy: #101827;
    --titanium-light: #f7f8fa;
    --titanium-silver: #9ca3af;
    
    /* Premium Metallic Palette */
    --metal-titanium: #8b9dc3;
    --metal-silver: #c4cad4;
    --metal-platinum: #e5e7eb;
    --metal-steel: #6b7280;
    
    /* Accent Colors - Corporate & Trustworthy */
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --accent-gold: #d4af37;
    --accent-gold-muted: #b8972e;
    
    /* Gradients - Subtle & Premium */
    --gradient-titanium: linear-gradient(135deg, #4b5563 0%, #1f2937 50%, #374151 100%);
    --gradient-metal: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #9ca3af 100%);
    --gradient-accent: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5d77a 50%, #d4af37 100%);
    --gradient-premium: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dark: #111827;
    --text-dark-secondary: #4b5563;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;
    
    /* Border Radius - More refined */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--titanium-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Cursor Glow Effect - Subtle
   ======================================== */

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Container
   ======================================== */

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(12, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-metal);
    border-radius: var(--radius-md);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--titanium-dark);
}

.logo-icon-img {
    width: 40px;
    height: auto;
    transition: var(--transition-fast);
}

.logo:hover .logo-icon-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--metal-platinum);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text-primary);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: var(--transition-base);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--metal-steel);
    border-radius: var(--radius-sm);
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-cta:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.floating-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--metal-silver);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 25s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(30px);
        opacity: 0;
    }
}

.hero-content {
    max-width: 680px;
    text-align: left;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: clamp(42px, 7vw, 76px);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
    font-weight: 600;
}

.title-line {
    display: block;
    font-weight: 400;
    color: var(--text-secondary);
}

.title-highlight {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.titanium-text {
    background: var(--gradient-metal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 6px;
}

.element-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-metal);
    border-radius: var(--radius-sm);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--titanium-dark);
    position: relative;
    top: -8px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 0 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    line-height: 1.8;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 15px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: 'Sora', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-suffix {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--metal-silver), transparent);
    animation: scrollPulse 2.5s infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.mockup-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mockup-image {
    position: relative;
    max-width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.4));
    animation: floatMockup 6s ease-in-out infinite;
}

@keyframes floatMockup {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ========================================
   Section Common Styles
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark-secondary);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(34px, 4.5vw, 52px);
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 17px;
    color: var(--text-dark-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section CTA */
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

/* ========================================
   Connections Demo Section
   ======================================== */

.connections-demo {
    background: var(--titanium-dark);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.connections-demo .section-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.connections-demo .section-title {
    color: var(--text-primary);
}

.connections-visual {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
}

/* SVG Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

.connection-path {
    fill: none;
    stroke: rgba(59, 130, 246, 0.15);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-linecap: round;
}

.connections-demo.animate .connection-path {
    animation: drawLineToCenter 1.2s ease-out forwards;
}

.connections-demo.animate .connection-path:nth-of-type(1) { animation-delay: 0s; }
.connections-demo.animate .connection-path:nth-of-type(2) { animation-delay: 0.1s; }
.connections-demo.animate .connection-path:nth-of-type(3) { animation-delay: 0.2s; }
.connections-demo.animate .connection-path:nth-of-type(4) { animation-delay: 0.3s; }
.connections-demo.animate .connection-path:nth-of-type(5) { animation-delay: 0.4s; }
.connections-demo.animate .connection-path:nth-of-type(6) { animation-delay: 0.5s; }
.connections-demo.animate .connection-path:nth-of-type(7) { animation-delay: 0.6s; }
.connections-demo.animate .connection-path:nth-of-type(8) { animation-delay: 0.7s; }

@keyframes drawLineToCenter {
    to {
        stroke-dashoffset: 0;
        stroke: rgba(59, 130, 246, 0.4);
    }
}

/* Traveling dots */
.traveling-dot {
    fill: #60a5fa;
    opacity: 0;
}

.connections-demo.animate .traveling-dot {
    opacity: 1;
    animation: dotFadeIn 0.3s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes dotFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Center Node */
.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.center-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.center-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
}

.center-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.5);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.center-icon span {
    font-family: 'Sora', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.center-label {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Surrounding Nodes */
.node-wrapper {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.conn-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: scale(0.5);
}

.connections-demo.animate .conn-node {
    animation: nodeAppear 0.5s ease-out forwards;
}

.conn-node:nth-child(1) { animation-delay: 0.2s; }
.conn-node:nth-child(2) { animation-delay: 0.35s; }
.conn-node:nth-child(3) { animation-delay: 0.5s; }
.conn-node:nth-child(4) { animation-delay: 0.65s; }
.conn-node:nth-child(5) { animation-delay: 0.8s; }
.conn-node:nth-child(6) { animation-delay: 0.95s; }
.conn-node:nth-child(7) { animation-delay: 1.1s; }
.conn-node:nth-child(8) { animation-delay: 1.25s; }

@keyframes nodeAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.node-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.node-icon:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.node-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.node-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* Node Positions - Radial Layout (matching SVG viewBox 800x600) */
.node-1 { top: 10%; left: 10%; }
.node-2 { top: 10%; left: 50%; transform: translateX(-50%) scale(0.5); }
.node-3 { top: 10%; right: 10%; }
.node-4 { top: 50%; left: 3%; transform: translateY(-50%) scale(0.5); }
.node-5 { top: 50%; right: 3%; transform: translateY(-50%) scale(0.5); }
.node-6 { bottom: 10%; left: 10%; }
.node-7 { bottom: 10%; left: 50%; transform: translateX(-50%) scale(0.5); }
.node-8 { bottom: 10%; right: 10%; }

.connections-demo.animate .node-2 {
    animation: nodeAppear 0.5s ease-out forwards;
}
.connections-demo.animate .node-2,
.connections-demo.animate .node-7 {
    transform: translateX(-50%) scale(1);
}
.connections-demo.animate .node-4,
.connections-demo.animate .node-5 {
    transform: translateY(-50%) scale(1);
}

/* Data flow animation - dots traveling along paths */
.data-dot {
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 6px var(--accent-primary));
}

/* ========================================
   Pillars Section (Light)
   ======================================== */

.pillars {
    background: var(--titanium-light);
    padding: var(--section-padding) 0;
    position: relative;
}

.pillars .section-tag {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark-secondary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pillar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.pillar-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Sora', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pillar-icon svg {
    width: 56px;
    height: 56px;
    color: var(--accent-primary);
}

.pillar-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.pillar-description {
    font-size: 15px;
    color: var(--text-dark-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.pillar-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark-secondary);
}

.pillar-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Pillars Extra - Comunicação */
.pillars-extra {
    margin-top: 48px;
    padding: 32px 40px;
    background: var(--titanium-navy);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 24px;
}

.extra-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.extra-badge svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.extra-badge span {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.pillars-extra p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pillars-extra strong {
    color: var(--text-primary);
}

/* ========================================
   Features Section (Dark)
   ======================================== */

.features {
    background: var(--titanium-dark);
    padding: var(--section-padding) 0;
    position: relative;
}

.features .section-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.features .section-title {
    color: var(--text-primary);
}

.features .section-description {
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-base);
}

.feature-category:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
}

.category-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    position: relative;
}

.feature-check::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ========================================
   About Section (Light)
   ======================================== */

.about {
    background: var(--titanium-light);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about .section-tag {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark-secondary);
}

.about .section-title {
    color: var(--text-dark);
}

.about-text {
    font-size: 17px;
    color: var(--text-dark-secondary);
    margin-bottom: 44px;
    line-height: 1.85;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about .feature {
    display: flex;
    gap: 20px;
}

.about .feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.about .feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.about .feature-content h4 {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
}

.about .feature-content p {
    font-size: 14px;
    color: var(--text-dark-secondary);
    line-height: 1.6;
}

/* Titanium Element Visual */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.titanium-element {
    position: relative;
    width: 340px;
    height: 340px;
}

.element-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ring-1 {
    inset: 0;
    animation: ringRotate 30s linear infinite;
}

.ring-2 {
    inset: 40px;
    animation: ringRotate 20s linear infinite reverse;
    border-style: dashed;
    border-color: rgba(0, 0, 0, 0.06);
}

.ring-3 {
    inset: 80px;
    animation: ringRotate 35s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.element-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.element-core::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0.1;
    filter: blur(20px);
}

.atomic-number {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.element-symbol {
    font-family: 'Sora', sans-serif;
    font-size: 56px;
    font-weight: 700;
    background: var(--gradient-titanium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.element-name {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    color: var(--text-dark-secondary);
    font-weight: 500;
}

.atomic-mass {
    font-size: 11px;
    color: var(--metal-steel);
    margin-top: 4px;
}


/* ========================================
   CTA Section (Dark)
   ======================================== */

.cta-section {
    background: var(--titanium-darker);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(30px, 4.5vw, 44px);
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    transition: var(--transition-base);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--titanium-dark);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Checkbox for Terms */
.form-checkbox {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-text {
    color: var(--text-secondary);
}

.checkbox-text a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #60a5fa;
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-message-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-message button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition-fast);
    padding: 0 0 0 16px;
}

.form-message button:hover {
    opacity: 1;
}

.cta-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--titanium-darker);
    padding: 72px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 56px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-links h5 {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.footer-social a:hover svg {
    color: white;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-mockup {
        order: -1;
        margin-bottom: 20px;
    }
    
    .mockup-image {
        max-height: 400px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .pillars-extra {
        flex-direction: column;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .titanium-element {
        width: 280px;
        height: 280px;
    }
    
    .element-core {
        width: 140px;
        height: 140px;
    }
    
    .element-symbol {
        font-size: 44px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat {
        text-align: center;
    }
    
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .mockup-image {
        max-height: 320px;
    }
    
    .mockup-glow {
        width: 280px;
        height: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-category {
        padding: 24px;
    }
    
    .pillar-card {
        padding: 28px;
    }
    
    .pillar-number {
        font-size: 36px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
}

/* ========================================
   Animations & Effects
   ======================================== */

.pillar-card,
.feature-category,
.about .feature {
    opacity: 0;
    transform: translateY(24px);
}

.pillar-card.animate,
.feature-category.animate,
.about .feature.animate {
    animation: fadeInUp 0.5s ease-out forwards;
}

.pillar-card:nth-child(1) { animation-delay: 0s; }
.pillar-card:nth-child(2) { animation-delay: 0.08s; }
.pillar-card:nth-child(3) { animation-delay: 0.16s; }
.pillar-card:nth-child(4) { animation-delay: 0.24s; }

.feature-category:nth-child(1) { animation-delay: 0s; }
.feature-category:nth-child(2) { animation-delay: 0.05s; }
.feature-category:nth-child(3) { animation-delay: 0.1s; }
.feature-category:nth-child(4) { animation-delay: 0.15s; }
.feature-category:nth-child(5) { animation-delay: 0.2s; }
.feature-category:nth-child(6) { animation-delay: 0.25s; }
.feature-category:nth-child(7) { animation-delay: 0.3s; }
.feature-category:nth-child(8) { animation-delay: 0.35s; }

/* ========================================
   Cookie Consent Modal
   ======================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--titanium-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 40px;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cookie-text h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #60a5fa;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.btn-cookie-accept {
    background: var(--accent-primary);
    color: white;
}

.btn-cookie-accept:hover {
    background: var(--accent-secondary);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-reject:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
    }
}

/* ========================================
   Feature Cards em Fundo Claro (pillars)
   ======================================== */

.pillars .feature-category {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pillars .feature-category:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(0, 0, 0, 0.04);
}

.pillars .category-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pillars .category-title {
    color: var(--text-dark);
}

.pillars .category-icon {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #3b82f6;
}

.pillars .feature-list li {
    color: var(--text-dark-secondary);
}

.pillars .feature-check {
    background: rgba(59, 130, 246, 0.12);
}

.pillars .feature-check::before {
    color: var(--accent-primary);
}

.pillars .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .pillars .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pillars .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Pillar Cards em Fundo Escuro (features) */

.features .pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.features .pillar-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.features .pillar-number {
    color: rgba(59, 130, 246, 0.15);
}

.features .pillar-icon {
    color: var(--accent-primary);
}

.features .pillar-title {
    color: var(--text-primary);
}

.features .pillar-description {
    color: var(--text-secondary);
}

.features .pillar-features li {
    color: var(--text-secondary);
}

.features .pillar-features li::before {
    color: var(--accent-primary);
}

.features .pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .features .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features .pillars-grid {
        grid-template-columns: 1fr;
    }
}