/* === Software Page Styles === */

/* Software Hero */
.software-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(20, 18, 24, 0.9)), url('../hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 0 4rem;
    text-align: center;
    margin: 1rem;
    border-radius: var(--md-sys-shape-corner-large);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.software-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(197, 157, 95, 0.05) 0%, transparent 50%);
    animation: heroShimmer 15s ease-in-out infinite;
}

@keyframes heroShimmer {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-5%, -5%);
    }
}

.software-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--md-sys-color-primary);
    position: relative;
    z-index: 1;
}

.software-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Software Showcase */
.software-showcase {
    background-color: var(--md-sys-color-surface);
    padding: 4rem 0;
    margin: 1rem;
    border-radius: var(--md-sys-shape-corner-large);
}

.app-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

@media (max-width: 900px) {
    .app-showcase-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* App Header */
.app-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 2px solid var(--md-sys-color-primary);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
    object-fit: cover;
}

.app-name {
    font-size: 1.75rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.app-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--md-sys-color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-platform-badge svg {
    width: 14px;
    height: 14px;
}

/* App Description */
.app-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface);
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* Features List */
.app-features h3 {
    font-size: 1.25rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--md-sys-color-background);
    border-radius: 12px;
    border: 1px solid rgba(147, 143, 153, 0.2);
    transition: all 0.2s ease;
}

.feature-list li:hover {
    border-color: var(--md-sys-color-primary);
    background: rgba(255, 215, 0, 0.03);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-list li span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

/* Download Section */
.app-download-section {
    margin-top: 2.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--md-sys-color-primary), #FFC107);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.35);
}

.download-icon {
    width: 28px;
    height: 28px;
}

.download-btn small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 2px;
}

.download-btn span {
    display: flex;
    flex-direction: column;
}

.download-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--md-sys-color-outline);
    font-style: italic;
}

/* Phone Mockup */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    z-index: 1;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #0f0f1a;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #141218 0%, #1c1a24 50%, #141218 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mockup-screenshot {
    width: 60%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.15));
}

.mockup-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Why Go Digital Section */
.software-why {
    background-color: var(--md-sys-color-surface);
    padding: 4rem 0;
    margin: 1rem;
    border-radius: var(--md-sys-shape-corner-large);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.why-card {
    background: var(--md-sys-color-background);
    padding: 2rem;
    border-radius: var(--md-sys-shape-corner-medium);
    border: 1px solid rgba(147, 143, 153, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.25rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-info {
    animation: fadeInUp 0.6s ease-out;
}

.app-mockup {
    animation: fadeInUp 0.8s ease-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }

    .app-showcase-grid {
        padding: 0 1rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .why-grid {
        padding: 0 1rem;
    }
}

/* -----------------------------
   MAGIC UI COMPONENTS (Vanilla)
   ----------------------------- */

/* Retro Grid Background Pattern */
.retro-grid-bg {
    position: relative;
    overflow: hidden;
    background-color: var(--md-sys-color-surface);
}

.retro-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(200px);
    animation: grid-move 15s linear infinite;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black, transparent);
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 40px;
    }
}

.front-z {
    position: relative;
    z-index: 10;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Shiny Button (Animated gradient sweep) */
.shiny-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(110deg, #1c1a24 40%, rgba(255, 215, 0, 0.15) 50%, #1c1a24 60%);
    background-size: 200% 100%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    animation: shiny-sweep 3s linear infinite;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shiny-button:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
    color: var(--md-sys-color-primary);
}

.shiny-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shiny-button:hover .shiny-icon {
    transform: translateX(6px);
}

@keyframes shiny-sweep {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Border Beam (Animated border gradient for App Showcase) */
.border-beam-container {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.border-beam-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 20%, var(--md-sys-color-primary) 80%, 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;
    z-index: 0;
    animation: border-beam-spin 4s linear infinite;
    opacity: 0.8;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-beam-spin {
    to {
        --border-angle: 360deg;
    }
}

.pt-action {
    margin-top: 2rem;
}

/* -----------------------------
   CORE FEATURES SPLIT LAYOUT
   ----------------------------- */
.software-features-split {
    background-color: var(--md-sys-color-surface);
    padding: 5rem 0;
    margin: 1rem;
    border-radius: var(--md-sys-shape-corner-large);
}

.container-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
    padding: 0 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .container-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.split-left {
    position: sticky;
    top: 120px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1c1a24, #0f0f1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
}

.video-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-primary);
}

.split-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.feature-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: #1c1a24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, 0.2);
    background: #1f1d28;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon-wrapper {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.driver-icon {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.2), transparent);
    color: #FFD700;
}

.owner-icon {
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.2), transparent);
    color: #4a90e2;
}

.company-icon {
    background: radial-gradient(circle at center, rgba(80, 227, 194, 0.2), transparent);
    color: #50e3c2;
}

.all-icon {
    background: radial-gradient(circle at center, rgba(233, 78, 119, 0.2), transparent);
    color: #e94e77;
}

.card-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem 0;
}

.card-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 600px) {
    .feature-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
}