/* ==============================================================================
   AMETIST VEKTOR IOT PLATFORM — star.css
   Main Landing Page Styled Identically to ametist-tech.ru
   ============================================================================== */

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 110px 20px 50px;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    overflow: visible;
}

.hero-glow-bg {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 100vw;
    height: 480px;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 28px;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(90deg, #a78bfa, #7c3aed, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin: 0 auto 38px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
    color: #ffffff;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Stats Row --- */
.stats-section {
    max-width: 1280px;
    margin: 10px auto 70px;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #c4b5fd, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* --- Section Formatting with Tag Line --- */
.section {
    max-width: 1280px;
    margin: 0 auto 75px;
    padding: 0 20px;
}

.section-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tag-line {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, #7c3aed, transparent);
    display: inline-block;
}

.tag-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #a78bfa;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 34px;
}

/* --- Features Grid --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 28px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature:hover {
    border-color: rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(124, 58, 237, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    line-height: 1;
    margin-bottom: 16px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.45));
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.08);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.35;
}

.feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* --- Devices Grid --- */
.devices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.device {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    transition: all 0.3s ease;
}

.device:hover {
    border-color: rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(124, 58, 237, 0.15);
}

.device-icon,
.devices .device-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 14px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.device:hover .device-icon {
    transform: scale(1.08);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.device h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.device p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
}

/* --- CTA Section --- */
.cta {
    max-width: 1280px;
    margin: 0 auto 90px;
    padding: 0 20px;
}

.cta-inner {
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.16) 0%, rgba(14, 10, 36, 0.6) 100%);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 24px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.45);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7);
    color: #ffffff;
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .features, .devices {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 90px 16px 40px;
    }
    .features, .devices {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions, .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn-primary, .hero-btn-secondary, .cta-button, .cta-button-secondary {
        width: 100%;
    }
}
