/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --accent-orange: #ff8c42;
    --dark-blue: #0f172a;
    --light-blue: #3b82f6;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-accent {
    color: var(--accent-orange);
}

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

.nav-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    transition: all 0.3s;
}

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

.burger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ff8c42 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Highlighted keywords */
.highlight {
    background: linear-gradient(to right, rgba(255, 140, 66, 0) 0%, rgba(255, 140, 66, 0.3) 50%, rgba(255, 140, 66, 0) 100%);
    background-size: 200% auto;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    animation: highlightSweep 2s ease infinite;
}

.highlight.accent {
    color: #ff8c42;
    background: none;
    border-bottom: 2px solid #ff8c42;
    padding: 0 4px;
}

.highlight.pulse {
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease infinite;
    display: inline-block;
}

@keyframes highlightSweep {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 140, 66, 0.6);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    animation: pulseGlow 2s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.4);
}

/* Laptop Mockup */
.laptop-mockup {
    perspective: 1000px;
}

.laptop-screen {
    background: #1f2937;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.3s;
}

.laptop-mockup:hover .laptop-screen {
    transform: rotateX(0deg) rotateY(0deg);
}

.laptop-base {
    background: linear-gradient(to bottom, #94a3b8, #64748b);
    height: 20px;
    border-radius: 0 0 10px 10px;
    margin: 0 -50px;
}

.app-interface {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.app-header {
    background: #e5e7eb;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-dots {
    display: flex;
    gap: 6px;
}

.app-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
}

.app-title {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 200px;
}

.code-editor {
    background: #1e293b;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.code-line {
    color: #e2e8f0;
    margin-bottom: 5px;
}

.keyword {
    color: #c084fc;
}

.function {
    color: #60a5fa;
}

.method {
    color: #34d399;
}

.robot-preview {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

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

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 60px 0;
    color: white;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #ff8c42;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Problem & Solution */
.problem-solution {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.ps-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    transform-style: preserve-3d;
}

/* Hover handled by combined selector */

.ps-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.ps-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.ps-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.checkmark-list {
    list-style: none;
}

.checkmark-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
    font-weight: 500;
}

.checkmark-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Modes */
.modes {
    padding: 80px 0;
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mode-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 3px solid transparent;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.mode-card.highlighted {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, #fff5ed 0%, #ffffff 100%);
}

.mode-card:hover,
.tech-card:hover,
.ps-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.mode-features {
    list-style: none;
}

.mode-features li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
    color: var(--gray);
}

.mode-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Admin Panel */
.admin-panel {
    padding: 80px 0;
    background: var(--light-gray);
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.admin-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
}

.feature-icon {
    font-size: 2rem;
}

.admin-window {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.admin-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.admin-table {
    padding: 1.5rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-row.header {
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.status.active {
    background: #d1fae5;
    color: var(--success);
}

.export-btn {
    margin: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.export-btn:hover {
    background: #ff7722;
    transform: translateY(-2px);
}

/* Technologies */
.technologies {
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    transform-style: preserve-3d;
}

/* Hover handled by combined selector above */

.tech-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.tech-card p {
    color: var(--gray);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--light-gray);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(to right, var(--light-blue), var(--accent-orange));
    z-index: 0;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s ease-in-out;
}

.how-it-works.visible .steps::before {
    transform: scaleX(1);
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.3);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.step-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.logo-img-footer {
    height: 35px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    margin-top: 0.5rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contacts h4 {
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contacts p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    color: var(--white);
    opacity: 0;
    transform: translateY(100px);
    animation: slideInFromBottom 0.6s ease-out 1s forwards;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .steps::before {
        display: none;
    }
}

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

    .stat-number {
        font-size: 3rem;
    }

    .logo-img {
        height: 32px;
    }

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s;
        box-shadow: var(--shadow);
    }

    .nav.active {
        left: 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .ps-grid,
    .modes-grid,
    .admin-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-row span {
        padding: 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .ps-card,
    .mode-card,
    .tech-card {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}
