/* Plan page — modern "light tech" theme */

.plan-tech {
    --tech-bg-top: #dbeafe;
    --tech-bg-mid: #eef2ff;
    --tech-bg-bottom: #fff7ed;
    --tech-surface: #ffffff;
    --tech-border: #e6ecf5;
    --tech-border-hover: rgba(59, 130, 246, 0.45);
    --tech-cyan: #06b6d4;
    --tech-blue: #2563eb;
    --tech-indigo: #6366f1;
    --tech-orange: #f97316;
    --tech-text: #475569;
    --tech-heading: #0f172a;
    --tech-muted: #64748b;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, var(--tech-bg-top) 0%, var(--tech-bg-mid) 50%, var(--tech-bg-bottom) 100%);
    color: var(--tech-text);
}

/* ===== Decorative background ===== */
.plan-tech-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.plan-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.plan-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.plan-glow-1 {
    top: -120px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
}

.plan-glow-2 {
    top: 120px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 70%);
}

/* ===== Hero ===== */
.plan-hero {
    margin-bottom: 3rem;
}

.plan-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--tech-border);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-eyebrow i {
    color: var(--tech-cyan);
}

.plan-title {
    margin-bottom: 1.1rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--tech-heading);
}

.plan-title-grad {
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-blue) 55%, var(--tech-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.plan-subtitle {
    max-width: 680px;
    color: var(--tech-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ===== Filters ===== */
.plan-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--tech-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tech-muted);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover:not(.active) {
    color: var(--tech-blue);
    border-color: var(--tech-border-hover);
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

/* ===== Product cards ===== */
.tech-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--tech-border);
    border-radius: 20px;
    background: var(--tech-surface);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* gradient top accent line */
.tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-blue), var(--tech-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: var(--tech-border-hover);
    box-shadow: 0 26px 50px rgba(37, 99, 235, 0.15);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tech-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.08) rotate(-3deg);
}

.tech-icon-blue {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.tech-icon-indigo {
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-indigo));
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.tech-icon-slate {
    background: linear-gradient(135deg, var(--tech-orange), #fb7185);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.tech-category {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--tech-border);
    border-radius: 8px;
    background: #f1f6ff;
    color: #1d4ed8;
    font-family: "Courier New", ui-monospace, monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
}

.tech-card-title {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tech-heading);
}

.tech-card-desc {
    margin-bottom: 1.25rem;
    color: var(--tech-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.tech-feature-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--tech-border);
}

.tech-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.tech-feature-list li:last-child {
    margin-bottom: 0;
}

.tech-feature-list i {
    color: var(--tech-blue);
    font-size: 1rem;
    flex: 0 0 auto;
}

/* ===== Buttons ===== */
.tech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tech-btn i {
    transition: transform 0.2s ease;
}

.tech-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
    color: #ffffff;
}

.tech-btn:hover i {
    transform: translateX(4px);
}

/* ===== CTA ===== */
.plan-cta {
    position: relative;
    margin-top: 4.5rem;
    padding: 1px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(37, 99, 235, 0.25) 45%, rgba(249, 115, 22, 0.5));
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

.plan-cta-inner {
    border-radius: 27px;
    padding: 3rem 2rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.07), transparent 60%),
        #ffffff;
}

.plan-cta-icon {
    margin: 0 auto 1.25rem;
}

.plan-cta-title {
    margin-bottom: 0.85rem;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: var(--tech-heading);
}

.plan-cta-desc {
    max-width: 520px;
    margin-bottom: 1.75rem;
    color: var(--tech-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tech-btn-cta {
    width: auto;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(135deg, var(--tech-orange), #fb7185);
    color: #fff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.3);
}

.tech-btn-cta:hover {
    color: #fff;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.4);
}

/* ===== Footer ===== */
.plan-footer {
    margin-top: 3rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ===== Entrance animation ===== */
.fade-in {
    animation: planFadeIn 0.5s ease both;
}

@keyframes planFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
    }

    .tech-card,
    .tech-icon,
    .tech-btn,
    .filter-btn {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .plan-tech {
        padding: 3rem 0 4rem;
    }

    .tech-card {
        padding: 1.4rem;
    }

    .plan-cta-inner {
        padding: 2.25rem 1.25rem;
    }
}
