/* Guzco AI - Landing Page Styles */
/* Production-ready CSS for cloud deployment */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 162, 255, 0.02) 0%, transparent 50%);
    z-index: -2;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: subtleMove 30s ease-in-out infinite;
}

@keyframes subtleMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #888;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    animation: pulse 2s infinite;
}

.status-dot.status-live {
    background: #00ff88;
}

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

/* Main Content */
main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 100px;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #00ff88;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.3s forwards;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #00ff88 60%, #00a2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #aaa;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.9s forwards;
}

/* API Demo Section */
.api-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.2s forwards;
}

.api-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.api-content p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

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

.api-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #ddd;
    font-size: 0.95rem;
}

.api-features li::before {
    content: '✓';
    color: #00ff88;
    font-weight: bold;
    font-size: 1rem;
}

.code-block {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
    animation: scan 4s infinite;
}

@keyframes scan {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #00ff88;
    font-weight: 500;
}

.response-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
}

.code-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ddd;
}

.json-key {
    color: #00a2ff;
}

.json-string {
    color: #00ff88;
}

.json-number {
    color: #ff6b35;
}

.json-boolean {
    color: #a855f7;
}

/* GUZCO Meaning Section */
.guzco-meaning {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.4s forwards;
}

.meaning-content {
    max-width: 800px;
    margin: 0 auto;
}

.meaning-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.meaning-letter {
    color: #00ff88;
    font-weight: 600;
}

.tagline {
    font-style: italic;
    color: #aaa;
    font-size: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.5s forwards;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.6), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #bbb;
    line-height: 1.7;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: all 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: translateY(0) scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.popup-content {
    padding: 1rem 2rem 2rem;
}

.popup-content p {
    color: #aaa;
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact Form in Popup */
.popup-content .contact-form {
    max-width: none;
    margin: 0;
}

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

.popup-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.popup-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-weight: 500;
    font-size: 0.9rem;
}

.popup-content .form-group input,
.popup-content .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.popup-content .form-group input:focus,
.popup-content .form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

.popup-content .form-submit {
    text-align: center;
}

.popup-content #recaptcha-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.popup-content .submit-btn {
    background: linear-gradient(135deg, #00ff88, #00a2ff);
    color: #000;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-content .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.popup-content .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #666;
}

.popup-content .form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.popup-content .form-status.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.popup-content .form-status.error {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

/* CTA Section */
.cta-section {
    text-align: center;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.8s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88, #00a2ff);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-secondary {
    background: transparent;
    color: #ffffff;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-company {
    margin-bottom: 1.5rem;
}

.footer-company h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-address {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    color: #888;
    font-size: 0.85rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }
}

@media (max-width: 992px) {
    .api-demo {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .nav-status {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .hero {
        margin-bottom: 4rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .api-demo {
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .api-content h3 {
        font-size: 1.5rem;
    }
    
    .api-content p {
        font-size: 1rem;
    }
    
    .code-block {
        padding: 1.5rem;
    }
    
    .code-content {
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 4rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .guzco-meaning {
        margin-bottom: 4rem;
    }
    
    .meaning-text {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .contact-section h3 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
        text-align: center;
    }
    
    footer {
        padding: 2rem 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .api-content {
        text-align: center;
    }
    
    .code-block {
        padding: 1rem;
    }
    
    .code-content {
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .meaning-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
}

/* Landscape tablet adjustments */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        margin-bottom: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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