/* ============================================
   3W SOLUÇÕES INTERATIVAS — DESIGN SYSTEM
   Premium Dark Corporate Tech
   ============================================ */

:root {
    /* Colors */
    --color-bg-primary: #050B14;
    --color-bg-secondary: #0A1628;
    --color-bg-tertiary: #0F1D33;
    --color-bg-card: rgba(15, 29, 51, 0.6);
    --color-bg-card-hover: rgba(20, 38, 66, 0.8);
    --color-border: #1E3A5F;
    --color-border-light: rgba(30, 58, 95, 0.5);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0AEC0;
    --color-text-muted: #718096;
    --color-accent: #0066FF;
    --color-accent-hover: #3385FF;
    --color-accent-glow: rgba(0, 102, 255, 0.15);
    --color-orange: #FF6B35;
    --color-orange-glow: rgba(255, 107, 53, 0.15);
    --color-success: #00D4AA;
    --color-success-glow: rgba(0, 212, 170, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index */
    --z-header: 100;
    --z-mobile-menu: 99;
    --z-back-to-top: 90;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    padding: 4px 12px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section__text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), #0052CC);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

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

.btn--secondary:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn--header {
    padding: 10px 20px;
    font-size: 0.8125rem;
}

.btn--mobile {
    width: 100%;
    margin-top: var(--space-md);
}

.btn__icon {
    transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 0;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, var(--color-accent), #0052CC);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
}

.header.scrolled {
    padding: 0;
    background: linear-gradient(135deg, var(--color-accent), #0052CC);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-img {
    height: 80px;
    width: auto;
    transition: transform var(--transition-base);
}

.header__logo:hover .header__logo-img {
    transform: scale(1.02);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.header__nav-link:hover {
    color: var(--color-text-primary);
}

.header__nav-link:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: var(--z-header);
}

.header__mobile-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.header__mobile-toggle.active .header__mobile-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__mobile-toggle.active .header__mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle.active .header__mobile-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-bg-secondary);
    z-index: var(--z-mobile-menu);
    transition: right var(--transition-base);
    padding: 100px var(--space-lg) var(--space-lg);
    border-left: 1px solid var(--color-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-menu__link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: color var(--transition-base), padding-left var(--transition-base);
}

.mobile-menu__link:hover {
    color: var(--color-accent);
    padding-left: var(--space-sm);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 var(--space-3xl);
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero__grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero__title-highlight {
    background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Terminal */
.hero__terminal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal {
    width: 100%;
    max-width: 560px;
    background: #0D1117;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 102, 255, 0.1);
    font-family: var(--font-mono);
}

.terminal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #161B22;
    border-bottom: 1px solid var(--color-border);
}

.terminal__controls {
    display: flex;
    gap: 8px;
}

.terminal__control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal__control--close { background: #FF5F56; }
.terminal__control--minimize { background: #FFBD2E; }
.terminal__control--maximize { background: #27C93F; }

.terminal__title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.terminal__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    color: var(--color-success);
}

.terminal__status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.terminal__body {
    padding: 20px;
    min-height: 320px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.8125rem;
    line-height: 1.8;
}

.terminal__output {
    margin-bottom: 8px;
}

.terminal__line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal__line--command { color: #58A6FF; }
.terminal__line--output { color: #8B949E; }
.terminal__line--success { color: #3FB950; }
.terminal__line--error { color: #F85149; }
.terminal__line--warning { color: #D29922; }
.terminal__line--info { color: #58A6FF; }
.terminal__line--highlight { color: #FF6B35; }

.terminal__prompt {
    color: var(--color-success);
    margin-right: 8px;
    font-weight: 600;
}

.terminal__path {
    color: #58A6FF;
    margin-right: 8px;
}

.terminal__cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--color-text-primary);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 2;
}

.hero__scroll-text {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   CREDIBILITY SECTION
   ============================================ */

.credibility {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.credibility__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.credibility__visual {
    display: grid;
    gap: var(--space-md);
}

.credibility__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.credibility__card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.credibility__card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.credibility__card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.credibility__card-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   SOLUTIONS SECTION
   ============================================ */

.solutions {
    background: var(--color-bg-primary);
}

.solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.solution-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.solution-card--image-bg {
    padding: 0;
}

.solution-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform var(--transition-base);
}

.solution-card:hover .solution-card__bg {
    transform: scale(1.05);
}

.solution-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.solution-card__content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg) var(--space-lg) var(--space-sm) var(--space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.solution-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.solution-card__icon {
    width: 72px;
    height: 72px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
    position: relative;
    transition: all var(--transition-base);
}

.solution-card:hover .solution-card__icon {
    background: var(--color-accent-glow);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.solution-card__icon-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.solution-card:hover .solution-card__icon-glow {
    opacity: 0.2;
}

.solution-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.solution-card__description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.solution-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-base), color var(--transition-base);
    opacity: 0.8;
}

.solution-card:hover .solution-card__link {
    opacity: 1;
}

.solution-card__link:hover {
    color: var(--color-accent-hover);
    gap: var(--space-sm);
}

/* Micro animations */
.solution-card__animation {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.solution-card:hover .solution-card__animation {
    opacity: 0.15;
}

/* Cloud Animation */
.cloud-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.cloud-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.cloud-node--1 { bottom: 20px; right: 80px; animation: float 3s ease-in-out infinite; }
.cloud-node--2 { bottom: 40px; right: 40px; animation: float 3s ease-in-out infinite 0.5s; }
.cloud-node--3 { bottom: 60px; right: 60px; animation: float 3s ease-in-out infinite 1s; }

.cloud-pulse {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: cloudPulse 2s ease-out infinite;
}

@keyframes cloudPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

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

/* Server Animation */
.server-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.server-rack {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-unit {
    width: 60px;
    height: 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.server-unit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    width: 4px;
    height: 4px;
    background: var(--color-success);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: serverBlink 2s ease-in-out infinite;
}

.server-unit--1::after { animation-delay: 0s; }
.server-unit--2::after { animation-delay: 0.3s; }
.server-unit--3::after { animation-delay: 0.6s; }

@keyframes serverBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Security Animation */
.security-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.security-shield {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 60px;
    border: 2px solid var(--color-accent);
    border-radius: 4px 4px 20px 20px;
    animation: shieldGlow 3s ease-in-out infinite;
}

@keyframes shieldGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 102, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 102, 255, 0.6); }
}

.security-packets {
    position: absolute;
    bottom: 40px;
    right: 90px;
}

.packet {
    width: 6px;
    height: 6px;
    background: var(--color-orange);
    border-radius: 50%;
    margin-bottom: 8px;
    animation: packetMove 2s linear infinite;
}

.packet--1 { animation-delay: 0s; }
.packet--2 { animation-delay: 0.5s; }
.packet--3 { animation-delay: 1s; }

@keyframes packetMove {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(50px); opacity: 0; }
}

/* WiFi Animation */
.wifi-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.wifi-router {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 30px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.wifi-wave {
    position: absolute;
    bottom: 60px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
    animation: wifiWave 2s ease-out infinite;
}

.wifi-wave--1 { animation-delay: 0s; }
.wifi-wave--2 { animation-delay: 0.3s; }
.wifi-wave--3 { animation-delay: 0.6s; }

@keyframes wifiWave {
    0% { transform: rotate(-45deg) scale(0.5); opacity: 1; }
    100% { transform: rotate(-45deg) scale(1.5); opacity: 0; }
}

/* Software Animation */
.software-animation {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.code-line {
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    margin-bottom: 8px;
    opacity: 0.3;
}

.code-line--1 { width: 60%; animation: codeType 3s ease-in-out infinite; }
.code-line--2 { width: 80%; animation: codeType 3s ease-in-out infinite 0.5s; }
.code-line--3 { width: 40%; animation: codeType 3s ease-in-out infinite 1s; }

@keyframes codeType {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Hosting Animation */
.hosting-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.hosting-server {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.hosting-request {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 50%;
}

.hosting-request--1 {
    bottom: 50px;
    right: 100px;
    animation: requestMove 2s linear infinite;
}

.hosting-request--2 {
    bottom: 40px;
    right: 100px;
    animation: requestMove 2s linear infinite 0.5s;
}

.hosting-response {
    position: absolute;
    bottom: 45px;
    right: 30px;
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: responseMove 2s linear infinite 1s;
}

@keyframes requestMove {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(60px); opacity: 0; }
}

@keyframes responseMove {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-60px); opacity: 0; }
}

/* ============================================
   TECH EXPERIENCE SECTION
   ============================================ */

.tech-experience {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.tech-experience__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.tech-diagram {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.tech-diagram__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.2);
    z-index: 2;
}

.tech-diagram__node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.tech-diagram__node--1 { top: 10%; left: 10%; }
.tech-diagram__node--2 { top: 10%; right: 10%; }
.tech-diagram__node--3 { bottom: 10%; left: 10%; }
.tech-diagram__node--4 { bottom: 10%; right: 10%; }

.tech-diagram__node-dot {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
    animation: nodePulse 3s ease-in-out infinite;
}

.tech-diagram__node--1 .tech-diagram__node-dot { animation-delay: 0s; }
.tech-diagram__node--2 .tech-diagram__node-dot { animation-delay: 0.5s; }
.tech-diagram__node--3 .tech-diagram__node-dot { animation-delay: 1s; }
.tech-diagram__node--4 .tech-diagram__node-dot { animation-delay: 1.5s; }

@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.8); }
}

.tech-diagram__node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-diagram__connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-diagram__line {
    stroke: var(--color-border);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    animation: lineFlow 20s linear infinite;
}

@keyframes lineFlow {
    to { stroke-dashoffset: -100; }
}

.tech-diagram__pulse {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% { r: 8; opacity: 1; }
    50% { r: 20; opacity: 0; }
}

.tech-experience__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.tech-experience__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.tech-experience__item svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */

.clients {
    background: var(--color-bg-primary);
    overflow: hidden;
}

.clients__marquee {
    width: 100%;
    overflow: hidden;
    padding: var(--space-xl) 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.clients__marquee::before,
.clients__marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients__marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg-primary), transparent);
}

.clients__marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg-primary), transparent);
}

.clients__track {
    display: flex;
    gap: var(--space-2xl);
    width: 100%;
    justify-content: center;
}

.clients__group {
    display: flex;
    gap: var(--space-2xl);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* In case screen is too small */
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #F4F7FB;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    width: 260px;
    height: 140px;
}

.client-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all var(--transition-base);
}

.client-logo:hover {
    background: #FFFFFF;
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about__visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.about__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.about__card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.about__card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.about__card-role {
    font-size: 0.875rem;
    color: var(--color-orange);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about__card-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.about__timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-border);
}

.about__timeline-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    position: relative;
}

.about__timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-lg) - 5px);
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.about__timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 60px;
}

.about__timeline-event {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: var(--color-bg-primary);
    padding: var(--space-3xl) 0;
}

.cta__card {
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.cta__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
    pointer-events: none;
}

.cta__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta__text {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.cta__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.cta__info-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.cta__info-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta__info-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cta__info-item p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cta__info-item a {
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.cta__info-item a:hover {
    color: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0 var(--space-sm);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    height: 80px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 250px;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.footer__links-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer__links-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links-list a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.footer__links-list a:hover {
    color: var(--color-accent);
}

.footer__address {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.footer__address a {
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.footer__address a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.footer__copyright,
.footer__credit {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-back-to-top);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero__content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .solutions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .credibility__grid,
    .tech-experience__grid,
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .cta__card {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav,
    .btn--header {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero__stat-divider {
        display: none;
    }
    
    .solutions__grid {
        grid-template-columns: 1fr;
    }
    
    .clients__marquee::before,
    .clients__marquee::after {
        width: 60px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .cta__card {
        padding: var(--space-xl);
    }
    
    .terminal__body {
        min-height: 280px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }
    
    .btn--large {
        width: 100%;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .client-logo {
        min-width: 140px;
        height: 80px;
    }
    
    .client-logo img {
        max-width: 120px;
        max-height: 60px;
    }
}

/* ============================================
   AI WIDGET
   ============================================ */

.ai-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d97706; /* Fallback */
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.ai-widget-btn:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
}

.ai-widget-panel {
    width: 320px;
    background: #d97706;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ai-widget-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-widget-header {
    padding: 24px 24px 16px;
    color: white;
}

.ai-widget-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-widget-header p {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.95;
    margin: 0;
}

.ai-chat-body {
    padding: 0;
    height: 350px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    display: flex;
    max-width: 85%;
}

.ai-message-bot {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
}

.ai-message-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ai-message-bot .ai-message-content {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 2px;
    border: 1px solid #f3f4f6;
}

.ai-message-user .ai-message-content {
    background: #d97706;
    color: white;
    border-bottom-right-radius: 2px;
}

.ai-chat-footer {
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-footer input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chat-footer input:focus {
    border-color: #d97706;
}

.ai-chat-send {
    background: #d97706;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ai-chat-send:hover {
    background: #b45309;
    transform: scale(1.05);
}

.ai-chat-send:active {
    transform: scale(0.95);
}

.ai-typing {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.ai-typing span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: ai-typing 1.4s infinite both;
}

.ai-typing span:nth-child(1) { animation-delay: 0s; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .clients__track {
        animation: none;
    }
    
    .hero__canvas {
        display: none;
    }
}

/* ============================================
   RESPONSIVE (MOBILE & TABLET)
   ============================================ */

@media (max-width: 992px) {
    .solutions__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .section { padding: var(--space-xl) 0; }
    .hero { padding-top: 100px; min-height: auto; }
    .hero__container,
    .credibility__grid,
    .about__grid,
    .tech-experience__grid { grid-template-columns: 1fr; }
    .solutions__grid,
    .footer__grid { grid-template-columns: 1fr; }
    .hero__title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; }
    .header__nav-list { display: none; }
    .header__mobile-toggle { display: flex; }
    .btn--header { display: none; }
    
    /* Fix AI Chat Widget on small screens */
    .ai-widget-container {
        right: 15px;
        bottom: 15px;
        z-index: 1000;
    }
    .ai-widget-panel {
        position: fixed;
        right: 10px !important;
        bottom: 75px !important;
        width: calc(100vw - 20px) !important;
        max-width: 360px !important;
        height: 60vh !important;
        max-height: 500px !important;
    }
    .ai-chat-messages {
        max-height: 100%;
    }
    .cta__actions {
        flex-direction: column;
        width: 100%;
    }
    .cta__actions .btn {
        width: 100%;
    }
    .terminal {
        margin-top: var(--space-lg);
    }
}
