@font-face {
    font-family: 'Iransans';
    src: url('../font/Iransans.ttf') format('truetype'), url('../font/Iransans.woff') format('woff');
}

* {
    font-family: 'Vazirmatn', 'Iransans';
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary-rgb: 249, 115, 22;
    --color-primary: #f97316;
    --color-primary-dark: #9a3412;
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-primary-r: 249;
    --color-primary-g: 115;
    --color-primary-b: 22;
}

html,
body {
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: #f0f0f0;
}

/* ========| Glow Utilities |======== */
.glow-sm {
    box-shadow: 0 0px 20px rgba(var(--color-primary-rgb), 0.25), 0 0px 40px rgba(0, 0, 0, 0.8);
}

.glow-md {
    box-shadow: 0 0px 40px rgba(var(--color-primary-rgb), 0.3), 0 0px 60px rgba(0, 0, 0, 0.9);
}

.glow-lg {
    box-shadow: 0 0px 60px rgba(var(--color-primary-rgb), 0.35), 0 0px 80px rgba(0, 0, 0, 1);
}

/* ========| Scrollbar |======== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ========| Hero Section |======== */
.hero-section {
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.grid-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--color-primary-rgb), 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
    pointer-events: none;
}

/* ========| Animations |======== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0px 20px rgba(var(--color-primary-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0px 40px rgba(var(--color-primary-rgb), 0.7);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

/* ========| Buttons |======== */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transition: all 0.3s;
    animation: pulse-glow 3s infinite;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* ========| Glow Card |======== */
.glow-card {
    box-shadow: 0 0px 0px rgba(var(--color-primary-rgb), 0);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 0px 30px rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-4px);
}

.card-border {
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    transition: border-color 0.3s ease;
}

.card-border:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* ========| Billing Period Toggle |======== */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.35rem;
}

.billing-toggle button {
    position: relative;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease;
}

.billing-toggle button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 0 16px rgba(var(--color-primary-rgb), 0.35);
}

.billing-toggle button .save-badge {
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #052e28;
    background: #5eead4;
    border-radius: 9999px;
    padding: 0.05rem 0.4rem;
}

/* ========| Plan Cards |======== */
/* Cards also carry [data-reveal] (scroll-in animation) and .glow-card, both
   of which set their own `transition` shorthand at the same specificity -
   whichever stylesheet loads last (public.css, after this file) wins the
   whole property, which drops box-shadow from the list entirely and made
   the hover shadow snap instead of animate. !important forces this card's
   own transition/hover values to win regardless of load order. */
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important, box-shadow 0.35s ease !important, border-color 0.3s ease !important;
}

.plan-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 48px -14px var(--plan-shadow-color, rgba(45, 212, 191, 0.4)) !important;
}

.plan-card.featured {
    border-color: rgba(var(--color-primary-rgb), 0.45);
    background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.07), rgb(var(--color-surface)) 40%);
}

.plan-badge {
    position: absolute;
    top: -0.85rem;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 0 16px rgba(var(--color-primary-rgb), 0.4);
    white-space: nowrap;
}

.plan-spec {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.65);
}

.plan-spec svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ========| Spec Chip |======== */
.spec-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-chip .spec-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ========| Data Center Map |======== */
.region-dot {
    position: relative;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background: var(--color-primary);
    box-shadow: 0 0 10px 2px rgba(var(--color-primary-rgb), 0.7);
}

.region-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 9999px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.5);
    animation: pulse-ring 2.4s ease-out infinite;
}
