/* ==========================================================================
   HilanX Technologies - Titanium Grade Design Engine
   Integrated with Bootstrap 5.3 Grid and Utilities
   ========================================================================== */

:root {
    --primary-color: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #eff6ff;
    --accent-cyan: #0ea5e9;
    --accent-purple: #7c3aed;
    --accent-teal: #0d9488;
    --accent-orange: #ea580c;
    --accent-green: #16a34a;

    --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    --gradient-cta: linear-gradient(135deg, #0a1f44 0%, #0052cc 50%, #00b8d9 100%);
    --gradient-contact: linear-gradient(135deg, #0d3880 0%, #0052cc 60%, #0099ff 100%);

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-pill: 9999px;
    --radius-card: 20px;
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 20px 40px rgba(29, 78, 216, 0.12);
}

body {
    font-family: var(--font-body);
    color: #334155;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    color: #0f172a;
    letter-spacing: -0.03em;
}

.fw-extrabold {
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.max-w-400 { max-width: 400px; }
.max-w-700 { max-width: 700px; }

/* Top Announcement */
.top-announcement-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.8125rem;
    padding: 8px 0;
}

.top-announcement-bar a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.top-announcement-bar a:hover {
    color: #ffffff;
}

.badge-new {
    background: var(--gradient-brand);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-right: 6px;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

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

.logo-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.logo-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtext {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #64748b;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569 !important;
    position: relative;
    padding: 6px 0 !important;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Custom Buttons */
.btn-pill {
    border-radius: var(--radius-pill) !important;
    padding: 10px 24px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--gradient-brand) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.38) !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-secondary:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
}

.mobile-drawer {
    display: none;
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.mobile-drawer.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    color: #0f172a;
    text-decoration: none;
}

/* 1. Hero Section */
.hero-section {
    padding: 80px 0 100px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #64748b;
}

.eyebrow-dot {
    color: var(--accent-cyan);
}

.hero-visual-card {
    position: relative;
    z-index: 1;
}

.hero-media-wrapper {
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.16);
    background: #ffffff;
    transition: transform 0.4s ease;
    position: relative;
}

.hero-img-badge-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.early-access-box {
    box-shadow: var(--shadow-sm);
}

.hero-media-wrapper:hover {
    transform: translateY(-4px);
}

.hero-layout-img {
    display: block;
    object-fit: cover;
}

.ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.glow-cyan {
    top: -40px;
    right: -40px;
    background: #38bdf8;
}

.glow-purple {
    bottom: -40px;
    left: -40px;
    background: #c084fc;
}

/* 2. About & Ribbon */
.about-section {
    background: #f8fafc;
}

.section-badge {
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
}

.about-quote-card {
    border-left: 4px solid var(--primary-color) !important;
}

.process-ribbon-card {
    border: 1px solid #e2e8f0;
}

.ribbon-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ribbon-step-item:hover .ribbon-icon-circle {
    transform: translateY(-4px) scale(1.05);
}

.ribbon-divider {
    font-size: 1.25rem;
}

/* 3. Services Cards */
.bg-card-blue { background: #f0f7ff; }
.bg-card-purple { background: #fbf7ff; }
.bg-card-teal { background: #f0fdf9; }
.bg-card-indigo { background: #f5f7ff; }
.bg-card-green { background: #f0fdf4; }
.bg-card-orange { background: #fff7ed; }

.text-purple { color: #7c3aed; }
.text-teal { color: #0d9488; }
.text-indigo { color: #4338ca; }

.service-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

/* 4. Platform Browser Frame */
.browser-dots {
    display: flex;
    align-items: center;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

/* 5. Process Steps */
.process-step-box {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color) !important;
}

/* 6. Products Section */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(29, 78, 216, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

/* 7. Why HilanX Pillars */
.pillar-icon {
    width: 64px;
    height: 64px;
}

.bg-purple-subtle { background: #f3e8ff !important; }

.why-pillar-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
}

/* 8. Full-Width CTA Banner (Layout 1 Match) */
.cta-gradient-card {
    background: var(--gradient-cta);
}

.cta-gradient-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
    border-radius: 50%;
}

/* 9. Contact Card (Layout 2 Match) */
.contact-info-panel {
    background: var(--gradient-contact);
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.15);
}

.contact-card-box {
    border: 1px solid #e2e8f0;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.extra-small {
    font-size: 0.75rem;
}

/* Floating Return to Top */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    display: flex;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.45);
}
