@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep: #020617;
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-card-highlight: rgba(30, 41, 59, 0.6);
    --accent-blue: #3b82f6;
    --accent-blue-bright: #60a5fa;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(59, 130, 246, 0.3);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --grid-size: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    background-color: #000;
}

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Tech Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-glass) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-position: center bottom;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.05), transparent);
    z-index: -1;
    animation: scan 8s linear infinite;
    pointer-events: none;
}

/* Vertical Ticker */
.vertical-ticker {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    z-index: 900;
    overflow: hidden;
    border-right: 1px solid var(--border-glass);
    background: rgba(2, 6, 23, 0.7);
    /* Deep bg with some transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vertical-ticker-inner {
    position: absolute;
    top: 100vh;
    left: 0;
    transform-origin: top left;
    transform: rotate(-90deg);
    width: 100vh;
    height: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.vertical-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll-left 25s linear infinite;
}

.ticker-group {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    /* match gap so it seamlessly joins */
    align-items: center;
}

.ticker-group .ticker-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 14px;
    line-height: 1;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.ticker-group .ticker-text .ches {
    color: #ffffff;
}

.ticker-group .ticker-text .ia {
    color: var(--accent-blue);
}

.ticker-group .dot {
    color: var(--accent-blue);
    font-size: 0.8rem;
    -webkit-text-stroke: 0;
    opacity: 0.5;
}

@keyframes ticker-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

h1,
h2,
h3,
.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.glass::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-glass), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    clip-path: inset(0);
    /* Necessary to clip the fixed children */
    z-index: 1;
}

.hero-fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #020617 100%);
}

.hero-content {
    max-width: 700px;
    transition: transform 0.1s linear, opacity 0.1s linear;
}

/* Ensure next sections slide over hero while maintaining the tech grid */
#servicios,
#hosting,
#proceso,
#historia,
#estudio-zona,
#seo-impact,
#portfolio,
#contacto {
    position: relative;
    z-index: 2;
    background-color: var(--bg-deep) !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px) !important;
    background-size: var(--grid-size) var(--grid-size) !important;
    background-position: center bottom !important;
    background-attachment: fixed !important;
}

footer {
    position: relative;
    z-index: 10;
    background: #000 !important;
    background-image: none !important;
    margin-top: 0;
    padding: 5rem 0 3rem 0;
}

.hero-tagline {
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* HUD Decorative Elements */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-blue);
    opacity: 0.4;
    pointer-events: none;
}

.hud-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.hud-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.hud-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    /* More standard rounded buttons */
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding: 6rem 1rem 8rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step {
        width: 100%;
        max-width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .vertical-ticker {
        display: none !important;
    }
}

@media (min-width: 993px) {

    /* Offset content by the width of the vertical ticker so it doesn't overlap */
    body {
        padding-left: 60px;
    }

    /* Fixed navbar needs to respect the new body padding */
    #navbar {
        width: calc(100% - 60px);
        left: 60px;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero-img {
        display: none;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

section.reveal {
    transition-delay: 0.2s;
}

.glass.reveal {
    transition-delay: 0.1s;
}

.radar-map.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* SEO Chart Animations */
.chart-container {
    overflow: hidden;
}

.seo-chart {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.1));
}

#chartPath {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s ease-in-out;
}

.active #chartPath {
    stroke-dashoffset: 0;
}

#chartArea {
    transition: opacity 1.5s ease-in-out 1.5s;
}

.active #chartArea {
    opacity: 1;
}

.chart-point {
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.active .chart-point {
    opacity: 1;
    transform: scale(1);
}

/* Stagger points */
.active .chart-point:nth-child(1) {
    transition-delay: 0.5s;
}

.active .chart-point:nth-child(2) {
    transition-delay: 1s;
}

.active .chart-point:nth-child(3) {
    transition-delay: 1.5s;
}

.active .chart-point:nth-child(4) {
    transition-delay: 2s;
}

.active .chart-point:nth-child(5) {
    transition-delay: 2.5s;
}

/* Red Line Animation */
#chartPathLow {
    stroke-dasharray: 8 8;
    /* Larger dashes for better visibility */
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 4s ease-in-out;
    opacity: 0.6;
}

.active #chartPathLow {
    stroke-dashoffset: 0;
}

/* Chart Labels */
.chart-label {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: monospace;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
}

.chart-label.highlight {
    fill: var(--accent-blue-bright);
    font-weight: bold;
    font-size: 12px;
}

.active .chart-label {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger labels */
.active .chart-point-group:nth-child(odd) .chart-label {
    transition-delay: 0.7s;
}

.active .chart-point-group:nth-child(even) .chart-label {
    transition-delay: 1.2s;
}

.active .chart-point-group:last-child .chart-label {
    transition-delay: 2.7s;
}

.chart-legend {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease-out 0.5s;
}

.active .chart-legend {
    opacity: 1;
    transform: translateX(0);
}

/* Radar Map Styles */
.radar-map {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(2, 6, 23, 0.9) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.radar-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.radar-ring.r-1 {
    width: 100px;
    height: 100px;
}

.radar-ring.r-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(59, 130, 246, 0.2);
}

.radar-ring.r-3 {
    width: 300px;
    height: 300px;
    border-color: rgba(59, 130, 246, 0.1);
    border-style: dashed;
}

.radar-scanner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    margin-top: -300px;
    /* offset by half of height */
    margin-left: -300px;
    /* offset by half of width */
    background: conic-gradient(from 0deg at 50% 50%, transparent 75%, rgba(59, 130, 246, 0.4) 99%, var(--accent-blue) 100%);
    border-radius: 50%;
    animation: radar-spin 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes radar-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.map-shop {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.map-shop.target-shop {
    top: 50%;
    left: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue);
}

.map-shop.competitor {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    opacity: 0;
}

.map-shop.competitor i {
    width: 18px;
    height: 18px;
}

.map-shop.competitor::after {
    content: '';
    position: absolute;
    top: 100%;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.1);
    height: 3px;
    width: 20px;
    border-radius: 2px;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    animation: pulse-out 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulse-out {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Competitor reveal animation */
.reveal-item.active .map-shop.competitor {
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.reveal-item.active .map-shop.competitor:nth-child(6) {
    animation-delay: 0.2s;
}

.reveal-item.active .map-shop.competitor:nth-child(7) {
    animation-delay: 0.6s;
}

.reveal-item.active .map-shop.competitor:nth-child(8) {
    animation-delay: 1.0s;
}

.reveal-item.active .map-shop.competitor:nth-child(9) {
    animation-delay: 1.4s;
}

.reveal-item.active .map-shop.competitor:nth-child(10) {
    animation-delay: 1.8s;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* SEO Section Refinements */
.seo-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
    /* Fallback */
    line-height: 1.2;
}

.seo-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 500px;
}

.seo-counter-box {
    padding: 2.5rem;
    display: inline-block;
    border: 1px solid var(--border-highlight);
    background: rgba(59, 130, 246, 0.05);
}

.seo-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.seo-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: white;
    background: linear-gradient(to bottom, #fff, var(--accent-blue-bright));
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.seo-sublabel {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

#seo-impact::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Portfolio Section */
.portfolio-carousel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: calc(33.333% - 1.333rem);
}

@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-mockup {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
    background: #0f172a;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) {
    background: #ef4444;
}

.browser-dots span:nth-child(2) {
    background: #eab308;
}

.browser-dots span:nth-child(3) {
    background: #22c55e;
}

a.browser-url {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.2rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-grow: 1;
    margin-right: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.browser-url:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.browser-content {
    height: 220px;
    background-size: cover;
    background-position: top center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0f172a;
    position: relative;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .browser-content {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    background: #0b0f19;
}

.portfolio-category {
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.portfolio-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.portfolio-link:hover {
    color: var(--accent-blue);
}

.portfolio-card.glass::after {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

@media (max-width: 768px) {
    .prev-btn {
        left: -5px;
    }

    .next-btn {
        right: -5px;
    }
}

textarea {
    resize: none !important;
}

/* Contact Form Enhancements */
.form-group-phone {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    color-scheme: dark;
    transition: var(--transition-smooth);
}

.country-select:focus {
    border-color: var(--accent-blue);
    outline: none;
    background-color: rgba(59, 130, 246, 0.1);
}

.country-select option {
    background: #0f172a;
    color: white;
}

.phone-number-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    transition: var(--transition-smooth);
}

.phone-number-input:focus {
    border-color: var(--accent-blue);
    outline: none;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Hosting & Server Illustration */
.hosting-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hosting-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: var(--bg-card-highlight);
}

.server-rack {
    width: 320px;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    padding: 20px 10px;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(59, 130, 246, 0.05);
    position: relative;
    transform: rotateY(-25deg) rotateX(10deg);
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.server-rack:hover {
    transform: rotateY(-15deg) rotateX(5deg);
}

.server-unit {
    height: 55px;
    background: linear-gradient(to right, #1e293b, #0f172a);
    margin-bottom: 10px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.server-unit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.server-unit.active {
    background: linear-gradient(to right, #24334d, #0f172a);
    border-color: rgba(59, 130, 246, 0.2);
}

/* New Server Details */
.rack-handle {
    position: absolute;
    width: 6px;
    height: 30px;
    background: #475569;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.5);
}

.rack-handle.left {
    left: 15px;
}

.rack-handle.right {
    right: 15px;
}

.rack-screw {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #334155;
    border-radius: 50%;
    box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.1);
}

.rack-screw.tl {
    top: 6px;
    left: 6px;
}

.rack-screw.tr {
    top: 6px;
    right: 6px;
}

.rack-screw.bl {
    bottom: 6px;
    left: 6px;
}

.rack-screw.br {
    bottom: 6px;
    right: 6px;
}

.server-status {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.6rem;
    color: var(--accent-blue-bright);
    text-shadow: 0 0 5px var(--accent-blue);
    letter-spacing: 0.5px;
}

.led-panel {
    display: flex;
    gap: 8px;
}

.led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #334155;
}

.led.green {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.led.blue {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.blink-fast {
    animation: led-blink 0.4s infinite;
}

.blink-slow {
    animation: led-blink 1.2s infinite;
}

@keyframes led-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.server-vents {
    display: flex;
    gap: 4px;
}

.server-vents span {
    width: 15px;
    height: 2px;
    background: #0f172a;
    border-radius: 1px;
}

@media (max-width: 992px) {
    .server-container {
        margin-top: 4rem;
    }
}

/* Hosting Checkout Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.checkout-modal-container {
    width: 90%;
    max-width: 500px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.checkout-modal-container.success-mode {
    overflow: hidden;
}

.checkout-modal-overlay.active .checkout-modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.checkout-modal-container h2 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    text-align: center;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.1);
    color: white;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#card-element.StripeElement--focus {
    border-color: var(--accent-blue) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.price-summary {
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

.price-row.total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

/* Success State Styles */
.checkout-success-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.checkout-success-container.active {
    display: flex;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4caf50;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
    content: "";
    height: 100px;
    position: absolute;
    background: transparent;
    transform: rotate(-45deg);
}

.icon-line {
    height: 5px;
    background-color: #4caf50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, 0.5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: transparent;
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}