/* ============================================================
   Qiyun OTA — Kamino Technology
   Main Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0d3b66;
    --primary-dark: #091f35;
    --accent: #00d4aa;
    --accent-dark: #00a887;
    --accent-rgb: 0, 212, 170;
    --dark: #0a1628;
    --dark-2: #111d32;
    --light: #f5f7fb;
    --white: #ffffff;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #0d3b66 0%, #1a5f8a 50%, #0a1628 100%);
    --gradient-2: linear-gradient(135deg, #091f35 0%, #0d3b66 50%, #162d50 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #00b8d4 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    transition: var(--transition);
}

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: var(--dark);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
    color: var(--dark);
}

/* ---- Section Commons ---- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    background: rgba(var(--accent-rgb), 0.1);
    padding: 5px 16px;
    border-radius: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#mainNav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    padding: 8px 0;
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white) !important;
}

.brand-icon {
    color: var(--accent);
    margin-right: 6px;
}

.brand-text {
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
    background: rgba(var(--accent-rgb), 0.08);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.hero-section .swiper {
    width: 100%;
    height: 100%;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.7) 50%, rgba(10,22,40,0.9) 100%);
    z-index: 1;
}

/* Slide Backgrounds */
.slide-1 { background: var(--gradient-1); }
.slide-2 { background: var(--gradient-2); }
.slide-3 { background: linear-gradient(135deg, #0a1628 0%, #1a3a4a 50%, #0d3b66 100%); }

.slide-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
}

.hero-buttons .btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: var(--dark);
}
.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--accent-rgb), 0.4);
}
.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
}
.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Hero Graphic */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    border: 3px solid rgba(var(--accent-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
    box-shadow: 0 0 100px rgba(var(--accent-rgb), 0.2);
}

/* Hero Stats */
.stat-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.stat-box:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-3px);
}
.stat-box .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-box small {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Hero Icons Grid */
.hero-icons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hero-icons-grid .icon-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
}
.hero-icons-grid .icon-item:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-3px);
}
.hero-icons-grid .icon-item i {
    font-size: 2rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

/* Swiper Customization */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--accent);
    width: 32px;
    border-radius: 6px;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent) !important;
    transition: var(--transition);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.15); }
    50% { transform: scale(1.05); box-shadow: 0 0 120px rgba(var(--accent-rgb), 0.3); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-image-wrapper {
    position: relative;
}

.about-image-placeholder {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0fdf6 100%);
    border-radius: var(--radius);
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed var(--border);
    transition: var(--transition);
}
.about-image-placeholder i {
    font-size: 4rem;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}
.about-image-placeholder span {
    color: var(--text-muted);
    font-weight: 600;
}

.about-item {
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.about-item:hover {
    background: var(--light);
    transform: translateX(6px);
}
.about-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-dark);
    margin-right: 18px;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--white);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================================
   TECH SECTION
   ============================================================ */
.bg-dark .section-title { color: var(--white); }

.tech-diagram {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 32px;
}

.tech-flow {
    position: relative;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.flow-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.flow-content h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.flow-content p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.flow-arrow {
    text-align: center;
    color: rgba(var(--accent-rgb), 0.5);
    font-size: 1.2rem;
    padding: 4px 0 4px 56px;
}

.tech-benefits h3 {
    color: var(--white);
    font-weight: 700;
}

.benefit-bar {
    margin-bottom: 4px;
}
.bar-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}
.bar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    overflow: hidden;
    height: 32px;
}
.bar-fill {
    height: 100%;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}
.bar-fill.full {
    background: linear-gradient(90deg, #4a5568, #718096);
}
.bar-fill.delta {
    background: var(--gradient-accent);
    color: var(--dark);
}

/* ============================================================
   DEPLOYMENT CARDS
   ============================================================ */
.deploy-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
}
.deploy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.deploy-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}
.deploy-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-accent);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.deploy-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
}
.deploy-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.deploy-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.deploy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.deploy-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text);
    font-size: 0.9rem;
}
.deploy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.stat-item:hover {
    background: rgba(255,255,255,0.06);
}
.stat-icon {
    font-size: 2rem;
    color: var(--accent);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industry-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    transition: all 0.3s ease;
}
.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.industry-icon {
    font-size: 2.2rem;
    color: var(--accent-dark);
    margin-bottom: 12px;
}
.industry-card h6 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-form-wrapper {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.contact-form .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}
.contact-form .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
    color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    padding: 60px 0 24px;
}

.footer-brand {
    font-size: 1.5rem;
    color: var(--white);
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 32px 0 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    .navbar-collapse {
        background: rgba(10, 22, 40, 0.98);
        border-radius: var(--radius-sm);
        padding: 16px;
        margin-top: 12px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .tech-diagram {
        margin-bottom: 32px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 56px 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-buttons .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .hero-buttons .btn-lg {
        padding: 10px 20px;
    }
    .stat-box .stat-number {
        font-size: 1.6rem;
    }
    .stat-value {
        font-size: 2rem;
    }
    .graphic-circle {
        width: 160px;
        height: 160px;
        font-size: 3.5rem;
    }
    .about-image-placeholder {
        padding: 50px 20px;
        margin-bottom: 32px;
    }
    .deploy-card.featured {
        margin-top: 12px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-icons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hero-icons-grid .icon-item {
        padding: 16px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .feature-card {
        padding: 24px 20px;
    }
}
