/* ================================================
   Product Page Styles - Colocation & Dedicated Servers
   AxisNetworks Design System
   ================================================ */

/* ----------------------------------------
   Product Hero Section
   ---------------------------------------- */
.AN-product-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    background-size: 200% 200%;
    animation: AN-hero-gradient 15s ease infinite;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.AN-product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(0, 102, 204, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes AN-hero-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.AN-product-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.AN-product-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.AN-product-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 500;
}

.AN-product-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.AN-product-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.AN-product-hero-actions .AN-btn {
    min-width: 180px;
}

/* ----------------------------------------
   USPs Section
   ---------------------------------------- */
.AN-usps-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.AN-usps-section .AN-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.AN-usps-section .AN-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.AN-usps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.AN-usp-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.AN-usp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.AN-usp-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #0066cc;
}

.AN-usp-icon svg {
    width: 28px;
    height: 28px;
}

.AN-usp-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.AN-usp-card p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

/* ----------------------------------------
   Pricing Section
   ---------------------------------------- */
.AN-pricing-section {
    padding: 80px 0;
    background: #ffffff;
}

.AN-pricing-section .AN-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.AN-pricing-section .AN-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.AN-pricing-section .AN-section-header p {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.AN-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.AN-pricing-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.AN-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.AN-pricing-card.AN-pricing-popular {
    border-top: 3px solid #0066cc;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.AN-pricing-card.AN-pricing-popular:hover {
    box-shadow: 0 8px 28px rgba(0, 102, 204, 0.2);
}

.AN-pricing-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: #0066cc;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.AN-pricing-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.AN-pricing-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.AN-pricing-price .AN-price-from {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.AN-pricing-price .AN-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.AN-pricing-price .AN-price-period {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

.AN-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.AN-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.AN-pricing-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.AN-pricing-card .AN-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Custom pricing card */
.AN-pricing-card-custom {
    background: #f8f9fa;
    border: 1px dashed #ccc;
}

.AN-pricing-card-custom .AN-pricing-custom-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ----------------------------------------
   Add-ons Table
   ---------------------------------------- */
.AN-addons-section {
    margin-top: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.AN-addons-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.AN-addons-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.AN-addons-table th,
.AN-addons-table td {
    padding: 16px 24px;
    text-align: left;
    font-size: 0.95rem;
}

.AN-addons-table th {
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.AN-addons-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.AN-addons-table tr:nth-child(odd) td {
    background: #ffffff;
}

.AN-addons-table td {
    color: #555;
    border-bottom: 1px solid #eee;
}

.AN-addons-table td:last-child {
    font-weight: 600;
    color: #1a1a1a;
}

/* ----------------------------------------
   Features / Datacenter Details Section
   ---------------------------------------- */
.AN-product-features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.AN-product-features-section .AN-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.AN-product-features-section .AN-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.AN-product-features-section .AN-section-header p {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.AN-product-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.AN-product-feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.AN-product-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.AN-product-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: rgba(0, 102, 204, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
}

.AN-product-feature-icon svg {
    width: 24px;
    height: 24px;
}

.AN-product-feature-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.AN-product-feature-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ----------------------------------------
   FAQ Accordion Section
   ---------------------------------------- */
.AN-product-faq {
    padding: 80px 0;
    background: #ffffff;
}

.AN-product-faq .AN-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.AN-product-faq .AN-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.AN-product-faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.AN-product-faq-item {
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.AN-product-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 16px;
}

.AN-product-faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    flex: 1;
}

.AN-product-faq-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.AN-product-faq-item.active .AN-product-faq-toggle {
    background: #0066cc;
    color: #ffffff;
    transform: rotate(45deg);
}

.AN-product-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.AN-product-faq-item.active .AN-product-faq-answer {
    max-height: 500px;
}

.AN-product-faq-answer p {
    padding: 0 0 20px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* ----------------------------------------
   Server Toggle (Managed / Unmanaged)
   ---------------------------------------- */
.AN-server-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.AN-server-toggle-btn {
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.AN-server-toggle-btn:first-child {
    border-radius: 50px 0 0 50px;
    border-right: 1px solid #e0e0e0;
}

.AN-server-toggle-btn:last-child {
    border-radius: 0 50px 50px 0;
    border-left: 1px solid #e0e0e0;
}

.AN-server-toggle-btn.active {
    background: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.AN-server-toggle-btn:hover:not(.active) {
    background: #f0f4ff;
    border-color: #0066cc;
    color: #0066cc;
}

/* Pricing panels for toggle */
.AN-pricing-panel {
    display: none;
}

.AN-pricing-panel.active {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ----------------------------------------
   Comparison Table
   ---------------------------------------- */
.AN-comparison-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.AN-comparison-section .AN-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.AN-comparison-section .AN-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.AN-comparison-section .AN-section-header p {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.AN-comparison-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.AN-comparison-table th,
.AN-comparison-table td {
    padding: 16px 24px;
    text-align: center;
    font-size: 0.95rem;
}

.AN-comparison-table th {
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.AN-comparison-table th:first-child,
.AN-comparison-table td:first-child {
    text-align: left;
}

.AN-comparison-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.AN-comparison-table tr:nth-child(odd) td {
    background: #ffffff;
}

.AN-comparison-table td {
    color: #555;
    border-bottom: 1px solid #eee;
}

.AN-comparison-check {
    color: #0066cc;
    font-weight: 700;
    font-size: 1.2rem;
}

.AN-comparison-cross {
    color: #ccc;
    font-weight: 400;
    font-size: 1.2rem;
}

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .AN-product-hero {
        min-height: 420px;
        padding: 100px 0 60px;
    }

    .AN-product-hero-content h1 {
        font-size: 2.5rem;
    }

    .AN-usps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .AN-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .AN-pricing-panel.active {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Small - 768px */
@media (max-width: 768px) {
    .AN-product-hero {
        min-height: 380px;
        padding: 100px 0 50px;
    }

    .AN-product-hero-content h1 {
        font-size: 2rem;
    }

    .AN-product-hero-subtitle {
        font-size: 1.1rem;
    }

    .AN-product-hero-desc {
        font-size: 0.95rem;
    }

    .AN-product-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .AN-product-hero-actions .AN-btn {
        width: 100%;
        max-width: 300px;
    }

    .AN-usps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .AN-pricing-grid,
    .AN-pricing-panel.active {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .AN-product-features-grid {
        grid-template-columns: 1fr;
    }

    .AN-product-feature-card {
        flex-direction: column;
        text-align: center;
    }

    .AN-product-feature-icon {
        margin: 0 auto;
    }

    .AN-comparison-table {
        font-size: 0.85rem;
    }

    .AN-comparison-table th,
    .AN-comparison-table td {
        padding: 12px 14px;
    }

    .AN-addons-table th,
    .AN-addons-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .AN-usps-section,
    .AN-pricing-section,
    .AN-product-features-section,
    .AN-product-faq,
    .AN-comparison-section {
        padding: 60px 0;
    }

    .AN-server-toggle-btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .AN-product-hero {
        min-height: 340px;
        padding: 90px 0 40px;
    }

    .AN-product-hero-content h1 {
        font-size: 1.65rem;
    }

    .AN-product-hero-subtitle {
        font-size: 1rem;
    }

    .AN-usps-grid {
        grid-template-columns: 1fr;
    }

    .AN-usp-card {
        padding: 24px;
    }

    .AN-pricing-card {
        padding: 24px;
    }

    .AN-pricing-price .AN-price-amount {
        font-size: 2rem;
    }

    .AN-product-faq-question h3 {
        font-size: 0.925rem;
    }

    .AN-addons-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .AN-comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .AN-server-toggle-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

/* ----------------------------------------
   Pricing Cards
   ---------------------------------------- */
.AN-pc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.AN-pc-card {
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.AN-pc-card--featured {
    border-color: #0066cc;
    box-shadow: 0 0 0 1px #0066cc;
}

.AN-pc-card--custom {
    background: #f9fafb;
    border-style: dashed;
}

/* Head */
.AN-pc-head {
    padding: 24px 24px 20px;
    border-bottom: 1px solid #eef0f3;
}

.AN-pc-card--custom .AN-pc-head {
    border-bottom: none;
}

.AN-pc-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.AN-pc-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0066cc;
    background: #e8f0ff;
    padding: 2px 7px;
    border-radius: 4px;
}

.AN-pc-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.AN-pc-price > span {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.03em;
    line-height: 1;
}

.AN-pc-price small {
    font-size: 0.82rem;
    color: #999;
    font-weight: 400;
}

.AN-pc-sub {
    font-size: 0.75rem;
    color: #bbb;
    margin: 0;
}

.AN-pc-custom-desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 8px 0 0;
}

/* Specs */
.AN-pc-specs {
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.AN-pc-specs > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid #f4f5f7;
    gap: 12px;
}

.AN-pc-specs > div:last-child {
    border-bottom: none;
}

.AN-pc-specs dt {
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    flex-shrink: 0;
}

.AN-pc-specs dd {
    font-size: 0.82rem;
    color: #222;
    font-weight: 600;
    text-align: right;
    margin: 0;
}

/* Includes */
.AN-pc-includes {
    list-style: none;
    padding: 16px 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.AN-pc-includes li {
    font-size: 0.8rem;
    color: #666;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.AN-pc-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ccc;
    font-size: 0.7rem;
    top: 1px;
}

.AN-pc-includes li.AN-managed-feature {
    color: #333;
}

.AN-pc-includes li.AN-managed-feature::before {
    color: #0066cc;
}

.AN-pc-includes--custom li::before {
    content: '→';
    color: #bbb;
}

/* Unmanaged state */
.AN-unmanaged-active .AN-managed-feature {
    color: #bbb;
    text-decoration: line-through;
    text-decoration-color: #ddd;
}
.AN-unmanaged-active .AN-managed-feature::before {
    color: #ddd !important;
}

/* Button */
.AN-pc-btn {
    display: block;
    margin: 0 24px 24px;
    padding: 11px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1.5px solid #d4d8de;
    background: #fff;
    transition: border-color 0.15s, color 0.15s;
}

.AN-pc-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.AN-pc-btn--primary {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.AN-pc-btn--primary:hover {
    background: #0052a3;
    border-color: #0052a3;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .AN-pc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .AN-pc-grid {
        grid-template-columns: 1fr;
    }
}
