/* ============================================
   azure-whale-331977.hostingersite.com — Professional Homepage
   ============================================ */

:root {
    --primary: #0F52BA;
    --primary-light: #3B7DD8;
    --primary-dark: #0A3D8F;
    --accent: #FF6B35;
    --accent-light: #FF8F65;
    --bg: #F7F9FC;
    --bg-white: #FFFFFF;
    --bg-dark: #0B1D3A;
    --text: #1A2B4A;
    --text-light: #5A6B8A;
    --text-lighter: #8A96AD;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(15,82,186,0.06);
    --shadow-md: 0 4px 16px rgba(15,82,186,0.08);
    --shadow-lg: 0 8px 32px rgba(15,82,186,0.12);
    --shadow-xl: 0 16px 48px rgba(15,82,186,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.aip-body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ---- NAVBAR ---- */
.aip-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 0 0;
    transition: box-shadow 0.3s;
}
.aip-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.aip-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #1a2b4a !important;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700 !important;
    background: none !important;
}
.aip-logo:hover { color: #0F52BA !important; }
.aip-logo-icon { font-size: 1.5rem; }
.aip-logo-text { color: #1a2b4a !important; font-weight: 700 !important; background: none !important; }
.aip-logo-text strong { color: #0F52BA !important; }

.aip-nav-links {
    display: flex;
    gap: 32px;
}
.aip-nav-links a {
    text-decoration: none !important;
    color: #1a2b4a !important;
    font-size: 0.92rem;
    font-weight: 600 !important;
    transition: color 0.2s;
    font-family: var(--font);
    background: none !important;
    border: none !important;
    padding: 4px 2px;
}
.aip-nav-links a:hover { color: #0F52BA !important; background: none !important; }

.aip-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.aip-menu-btn span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ---- HERO ---- */
.aip-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(160deg, #F0F5FF 0%, #FFFFFF 40%, #FFF5F0 100%);
}
.aip-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.aip-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.aip-hero-shape-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #0F52BA33, transparent);
    top: -100px; right: -100px;
}
.aip-hero-shape-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #FF6B3522, transparent);
    bottom: -50px; left: -100px;
}
.aip-hero-shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #0F52BA1A, transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.aip-hero-content {
    position: relative;
    text-align: center;
}

.aip-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.6s ease;
}

.aip-hero-title {
    font-family: var(--font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto 20px;
    animation: fadeInDown 0.6s ease 0.1s both;
}

.aip-gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aip-hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInDown 0.6s ease 0.2s both;
}

/* ---- SEARCH BOX ---- */
.aip-search-box {
    max-width: 640px;
    margin: 0 auto 48px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    animation: fadeInUp 0.6s ease 0.3s both;
    border: 1px solid var(--border);
}

.aip-search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.aip-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s;
}
.aip-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15,82,186,0.3);
}
.aip-tab:hover:not(.active) {
    background: var(--bg);
}

.aip-search-panel {
    display: none;
    padding: 8px;
}
.aip-search-panel.active { display: block; }

.aip-search-input-wrap {
    display: flex;
    gap: 8px;
}

.aip-search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
}
.aip-search-input:focus {
    border-color: var(--primary);
}
.aip-search-input::placeholder {
    color: var(--text-lighter);
}

.aip-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.aip-search-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(15,82,186,0.3);
    transform: translateY(-1px);
}

.aip-search-hint {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 8px;
    padding-left: 4px;
}

/* Results */
.aip-results {
    padding: 0 8px;
}
.aip-results:not(:empty) {
    padding: 16px 8px 8px;
}
.aip-result-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
}
.aip-result-card h4 {
    font-family: var(--font);
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary);
}
.aip-result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.aip-result-row:last-child { border-bottom: none; }
.aip-result-label { color: var(--text-light); font-weight: 500; }
.aip-result-value { color: var(--text); font-weight: 600; }

.aip-result-error {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    padding: 16px;
}
.aip-result-loading {
    text-align: center;
    color: var(--text-light);
    padding: 16px;
}

/* ---- STATS ---- */
.aip-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.aip-stat { text-align: center; }
.aip-stat-num {
    display: block;
    font-family: var(--font);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}
.aip-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}
.aip-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ---- SECTIONS ---- */
.aip-section {
    padding: 80px 0;
}
.aip-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.aip-section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(15,82,186,0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.aip-section-title {
    font-family: var(--font);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.aip-section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ---- TOOLS GRID ---- */
.aip-tools-section { background: var(--bg-white); }

.aip-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aip-tool-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    padding: 32px 28px;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--radius-lg);
    text-decoration: none !important;
    color: #1a2b4a !important;
    transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
}
.aip-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: height 0.3s;
}
.aip-tool-pdf::before  { background: #E74C3C; }
.aip-tool-csv::before  { background: #27AE60; }
.aip-tool-excel::before { background: #217346; }
.aip-tool-img::before  { background: #9B59B6; }
.aip-tool-json::before { background: #F39C12; }
.aip-tool-text::before { background: #0F52BA; }
.aip-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15,82,186,0.12);
    border-color: #0F52BA !important;
}
.aip-tool-card:hover::before { height: 6px; }
.aip-tool-icon { font-size: 2rem; margin-bottom: 16px; }
.aip-tool-card h3 {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a2b4a !important;
    background: none !important;
}
.aip-tool-card p {
    font-size: 0.88rem;
    color: #5a6b8a !important;
    flex: 1;
    line-height: 1.5;
    background: none !important;
}
.aip-tool-arrow {
    margin-top: 16px;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.2s;
}
.aip-tool-card:hover .aip-tool-arrow { transform: translateX(4px); }

/* ---- FEATURES ---- */
.aip-features-section {
    background: linear-gradient(160deg, #F0F5FF 0%, #F7F9FC 100%);
}
.aip-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.aip-feature {
    padding: 32px 28px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.aip-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.aip-feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.aip-feature h3 {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.aip-feature p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.aip-how-section { background: var(--bg-white); }

.aip-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.aip-step {
    text-align: center;
    padding: 32px 28px;
    flex: 1;
    max-width: 280px;
}
.aip-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15,82,186,0.25);
}
.aip-step h3 {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.aip-step p {
    font-size: 0.88rem;
    color: var(--text-light);
}
.aip-step-arrow {
    font-size: 1.5rem;
    color: var(--text-lighter);
    font-weight: 300;
}

/* ---- POPULAR ---- */
.aip-popular-section {
    background: linear-gradient(160deg, #FFF5F0 0%, #F7F9FC 100%);
}
.aip-popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.aip-popular-tag {
    display: inline-block !important;
    padding: 10px 20px;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 100px;
    text-decoration: none !important;
    color: #1a2b4a !important;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}
.aip-popular-tag:hover {
    background: #0F52BA !important;
    color: #fff !important;
    border-color: #0F52BA !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,82,186,0.2);
}

/* ---- FOOTER ---- */
.aip-footer {
    background: #f1f5f9 !important;
    color: #1a3a5c;
    padding: 64px 0 0;
    border-top: 2px solid #e2e8f0;
}
.aip-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}
.aip-footer-links h4 {
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a3a5c !important;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.aip-footer-links a {
    display: block;
    color: #444e5e !important;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.aip-footer-links a:hover { color: #0d5c8a !important; }
.aip-footer-brand p {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #444e5e !important;
}

.aip-footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: #475569 !important;
    border-top: 1px solid #e2e8f0;
}
.aip-footer-bottom strong { color: #1a3a5c !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .aip-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .aip-features-grid { grid-template-columns: repeat(2, 1fr); }
    .aip-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
    .aip-nav-links { display: none; }
    .aip-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #fff;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .aip-menu-btn { display: flex; }
    
    .aip-hero { padding: 100px 0 60px; }
    .aip-hero-title { font-size: 1.8rem; }
    
    .aip-search-input-wrap { flex-direction: column; }
    .aip-search-btn { justify-content: center; }
    
    .aip-stats { gap: 16px; }
    .aip-stat-num { font-size: 1.4rem; }
    .aip-stat-divider { display: none; }
    
    .aip-tools-grid { grid-template-columns: 1fr; }
    .aip-features-grid { grid-template-columns: 1fr; }
    
    .aip-steps { flex-direction: column; gap: 8px; }
    .aip-step-arrow { transform: rotate(90deg); }
    
    .aip-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .aip-section { padding: 56px 0; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
