/* Pegasi AI Solutions — AAIRC-inspired tile design */

/* =============================================
   AAIRC-Style Product Tiles
   Sharp corners, dark cards, accent-fill hover
   ============================================= */

.ai-tile-grid {
    display: grid;
    gap: 24px;
}
.ai-tile-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ai-tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ai-tile-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .ai-tile-grid-3, .ai-tile-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ai-tile-grid-2, .ai-tile-grid-3, .ai-tile-grid-4 { grid-template-columns: 1fr; }
}

/* Core tile */
.ai-tile {
    background: #141414;
    border: 1px solid #3a3a3a;
    border-radius: 0;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.ai-tile:hover {
    border-color: #67bd4a;
    background: #67bd4a;
    transform: translateY(-4px);
    text-decoration: none;
}

.ai-tile .tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: rgba(103, 189, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #67bd4a;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.ai-tile:hover .tile-icon {
    background: #000;
    color: #67bd4a !important;
}

a.ai-tile,
a.ai-tile:hover,
a.ai-tile:focus {
    color: #fff;
    text-decoration: none;
}

a.ai-tile h3,
.ai-tile h3 {
    font-size: 1.25rem;
    color: #fff !important;
    margin-bottom: 12px;
    font-weight: 700;
}

a.ai-tile p,
.ai-tile p {
    color: #999 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

a.ai-tile:hover h3,
a.ai-tile:hover p {
    color: #000 !important;
}

.ai-tile .tile-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(103, 189, 74, 0.1);
    color: #67bd4a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.3s;
}

.ai-tile:hover .tile-tag {
    background: rgba(0,0,0,0.2);
    color: #000 !important;
}

/* =============================================
   AI Dark Section (used by index.html homepage tile grid)
   ============================================= */

.ai-dark-section {
    background: #0a0a0a;
    padding: 60px 0;
}

.ai-dark-section .sec-title,
.ai-dark-section h2 { color: #fff; }
.ai-dark-section .sub-title { color: #67bd4a; }

/* =============================================
   Pegasi AI Solutions landing — light, brand-aligned
   Single viewport-fit hero + 2x2 product grid + CTA
   ============================================= */

.pegasi-hero-section {
    background: #ffffff;
    padding: 110px 0 50px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle ambient brand glows so the white isn't flat */
.pegasi-hero-section::before {
    content: '';
    position: absolute;
    top: -240px;
    right: -240px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 189, 74, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.pegasi-hero-section::after {
    content: '';
    position: absolute;
    bottom: -240px;
    left: -240px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 189, 74, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.pegasi-hero-section .container {
    position: relative;
    z-index: 1;
}

.pegasi-hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    color: #141D38;
    margin: 0 0 18px;
    line-height: 1.15;
    text-transform: capitalize;
}

.pegasi-tagline {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: #737887;
    max-width: 680px;
    margin: 0 auto 42px;
    line-height: 1.7;
}

.pegasi-product-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.pegasi-product-card {
    display: flex !important;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #E2E8FA;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 2px 10px rgba(20, 29, 56, 0.04);
}

.pegasi-product-card:hover,
.pegasi-product-card:focus {
    border-color: #67bd4a;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(103, 189, 74, 0.18);
    text-decoration: none !important;
}

.pegasi-product-card .pp-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #67bd4a, #4ea332);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(103, 189, 74, 0.28);
}

.pegasi-product-card:hover .pp-icon {
    transform: scale(1.08) rotate(-4deg);
}

.pegasi-product-card .pp-content {
    flex: 1;
    min-width: 0;
}

.pegasi-product-card .pp-content h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #141D38 !important;
    margin: 0 0 4px;
    line-height: 1.3;
}

.pegasi-product-card .pp-content p {
    font-size: 0.88rem;
    color: #737887 !important;
    margin: 0;
    line-height: 1.55;
}

.pegasi-product-card .pp-arrow {
    flex-shrink: 0;
    color: #67bd4a;
    font-size: 13px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(103, 189, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pegasi-product-card:hover .pp-arrow {
    background: #67bd4a;
    color: #ffffff;
    transform: translateX(4px);
}

.pegasi-cta-row {
    margin-top: 44px;
    text-align: center;
}

@media (max-width: 1199px) {
    .pegasi-hero-section {
        min-height: auto;
        padding: 50px 0;
    }
}

@media (max-width: 575px) {
    .pegasi-hero-section { padding: 40px 0; }
    .pegasi-tagline { margin-bottom: 30px; }
    .pegasi-product-card { padding: 18px 16px; gap: 14px; }
    .pegasi-product-card .pp-icon { width: 48px; height: 48px; font-size: 19px; }
    .pegasi-product-card .pp-content h3 { font-size: 1.05rem; }
    .pegasi-product-card .pp-content p { font-size: 0.82rem; }
    .pegasi-cta-row { margin-top: 32px; }
}

/* =============================================
   AAIRC Badge — pill-shaped, subtle
   ============================================= */

.aairc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 100px;
    border: 1px solid rgba(103, 189, 74, 0.3);
    background: rgba(103, 189, 74, 0.06);
    color: #67bd4a;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.aairc-badge i { font-size: 0.75rem; }

/* On dark backgrounds */
.ai-dark-section .aairc-badge {
    border-color: rgba(103, 189, 74, 0.3);
    background: rgba(103, 189, 74, 0.08);
}

/* =============================================
   Feature grid cards (product sub-pages)
   ============================================= */

.feature-grid-card {
    background: #fff;
    border-radius: 0;
    padding: 28px 24px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.feature-grid-card:hover {
    border-color: #67bd4a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.feature-grid-card .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #67bd4a;
    margin-bottom: 16px;
    background: rgba(103, 189, 74, 0.1);
}

.feature-grid-card h4 { color: #141D38; font-size: 18px; margin-bottom: 10px; }
.feature-grid-card p { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 0; }

/* =============================================
   Pricing cards
   ============================================= */

.pricing-card {
    background: #fff;
    border-radius: 0;
    padding: 35px 25px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #67bd4a;
}

.pricing-card.featured {
    border-color: #67bd4a;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #67bd4a;
    color: #fff;
    padding: 4px 20px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card .price { font-size: 42px; font-weight: 800; color: #141D38; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: #888; }

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 20px 0;
}

.pricing-card ul li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.pricing-card ul li i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.pricing-card ul li .fa-check { color: #67bd4a; }
.pricing-card ul li .fa-times { color: #ccc; }

/* =============================================
   Stats row (dark, accented numbers)
   ============================================= */

.ai-stats-row {
    background: #0a0a0a;
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
    padding: 40px 0;
}

.ai-stats-row .stat-number {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #67bd4a;
}

.ai-stats-row .stat-label {
    color: #999;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* =============================================
   Hero "Pegasi AI Solutions" callout
   Flat text by default, glow on hover
   ============================================= */
.pegasi-ai-callout {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: inline-block;
    padding: 22px 40px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #0d1a0d 100%);
    border: 1.5px solid rgba(103, 189, 74, 0.45);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pegasi-ai-callout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: #67bd4a;
    opacity: 0.18;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    pointer-events: none;
}
.pegasi-ai-callout__pegasi {
    background: linear-gradient(135deg, #1de9d6 0%, #40e0d0 25%, #00ced1 50%, #48d1cc 75%, #7fffd4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: filter 0.3s ease;
}
.pegasi-ai-callout__rest {
    color: #ffffff;
    transition: text-shadow 0.3s ease;
}
.pegasi-ai-callout:hover {
    transform: translateX(-50%) scale(1.04);
    border-color: rgba(127, 255, 212, 0.85);
    box-shadow: 0 12px 28px rgba(103, 189, 74, 0.45);
}
.pegasi-ai-callout:hover .pegasi-ai-callout__pegasi {
    filter: drop-shadow(0 0 8px rgba(127, 255, 212, 0.85)) drop-shadow(0 0 16px rgba(64, 224, 208, 0.55));
}
.pegasi-ai-callout:hover .pegasi-ai-callout__rest {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.85), 0 0 20px rgba(103, 189, 74, 0.55);
}
