/* ==============================================
   AIQO.io Homepage Styles
   ============================================== */

/* CSS Variables */
:root {
    --color-navy: #1a2332;
    --color-navy-light: #2a3442;
    --color-navy-dark: #0f1923;
    --color-gold: #c9a961;
    --color-gold-light: #d4b876;
    --color-gold-dark: #b89750;
    --color-success: #4ade80;
    --color-warning: #fb923c;
    --color-error: #f87171;
    --color-white: #ffffff;
    --color-gray-100: #f7fafc;
    --color-gray-200: #edf2f7;
    --color-gray-300: #e2e8f0;
    --color-gray-400: #cbd5e0;
    --color-gray-500: #a0aec0;
    --color-gray-600: #718096;
    --color-gray-700: #4a5568;
    --color-gray-800: #2d3748;
    --color-gray-900: #1a202c;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    --container-width: 1200px;
    --border-radius: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    transition: all var(--transition-normal);
}

.header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(26, 35, 50, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    z-index: 1002;
}

.logo-aiqo {
    color: var(--color-gold);
}

.logo-io {
    color: var(--color-white);
}

/* Improved Mobile Navigation */
.nav-wrapper {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-normal);
}

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

.nav-links a:hover {
    color: var(--color-gold-light);
}

.nav-cta-item {
    margin-left: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

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

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

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

.cta-button {
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

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

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button.primary {
    background: var(--color-gold);
    color: var(--color-navy);
}

.cta-button.primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}

.cta-button.secondary:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.cta-button.nav-cta {
    background: var(--color-gold);
    color: var(--color-navy);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-navy-dark) 100%);
    padding: 8rem 0 5rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

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

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-gray-300);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

.hero-visual {
    animation: fadeInRight 1s ease 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

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

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.6;
}

.mockup-title {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.mockup-content {
    display: grid;
    gap: 1rem;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(201, 169, 97, 0.1);
    transition: all var(--transition-normal);
}

.mockup-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold);
}

.mockup-icon {
    color: var(--color-gold);
    width: 32px;
    height: 32px;
}

.mockup-label {
    color: var(--color-gray-400);
    font-size: 0.85rem;
}

.mockup-value {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.mockup-graph {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-gold), var(--color-gold-light));
    border-radius: 4px 4px 0 0;
    transition: all var(--transition-normal);
    animation: growUp 1s ease forwards;
}

@keyframes growUp {
    from {
        height: 0 !important;
    }
}

.graph-bar:hover {
    opacity: 0.8;
}

/* ==============================================
   FEATURES SECTION
   ============================================== */

.features {
    padding: 6rem 0;
    background: var(--color-white);
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-gray-600);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-gold);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.feature-description {
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* ==============================================
   HOW IT WORKS SECTION
   ============================================== */

.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--color-gray-100), var(--color-white));
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: center;
    position: relative;
}

.step {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-slow);
}

.step.visible {
    opacity: 1;
    transform: scale(1);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    font-family: var(--font-heading);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.step-description {
    color: var(--color-gray-600);
    line-height: 1.8;
}

.step-connector {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-gold), var(--color-gold-light), var(--color-gold));
    opacity: 0.3;
}

/* ==============================================
   CONTACT FORM SECTION
   ============================================== */

.contact-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

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

.footer {
    background: var(--color-navy-dark);
    color: var(--color-gray-300);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-gray-400);
}

.footer-heading {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-address {
    margin-top: 1.5rem;
    color: var(--color-gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    color: var(--color-gray-500);
}

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

@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }

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

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

    .contact-form {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-navy);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        padding-top: 5rem;
    }

    .nav-wrapper.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.25rem;
        color: var(--color-white);
    }

    .nav-cta-item {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Hero */
    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

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

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-connector {
        width: 3px;
        height: 50px;
        background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-light));
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

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

/* ==============================================
   ANIMATIONS & UTILITIES
   ============================================== */

.fade-in {
    animation: fadeIn 0.6s ease;
}

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

.slide-up {
    animation: slideUp 0.6s ease;
}

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

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: var(--color-success);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    z-index: 2000;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
*:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-section {
        display: none;
    }
}
