@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

:root {
    --bg-color: #0d0e12;
    --text-color: #ffffff;
    --accent-color: #6366f1;
    /* Indigo */
    --accent-glow: #818cf8;
    --secondary-bg: #15171e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to bottom, #4ade80, #15803d);
    /* Glossy Green Gradient */
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle metallic rim */
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    /* Top highlight for gloss */
    cursor: pointer;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.6);
    background: linear-gradient(to bottom, #5ce590, #16a34a);
    /* Slightly brighter on hover */
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduction Graph Styles */
.reduction-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.reduction-header h3 {
    font-size: 1.2rem;
    background: #FFD700;
    /* Goldish yellow background like reference */
    color: #000;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 700;
}

.reduction-main-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.reduction-sub-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.highlight-text {
    color: #ef4444;
    /* Red for emphasis on reduction/numbers */
    background: linear-gradient(transparent 70%, rgba(239, 68, 68, 0.2) 70%);
}

.graph-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 350px;
    /* Increased height for labels */
    margin: 40px auto 20px;
    max-width: 650px;
    position: relative;
    padding-left: 60px;
    /* Space for Y-axis */
    padding-top: 40px;
    /* Space for top labels */
}

/* Adjusted Graph Styles */
.graph-bars {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    /* Removed padding-bottom so border aligns with bottom of bars */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Horizontal Grid Lines - Adjusted to match valid area */
.graph-bars::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* Full height */
    background: repeating-linear-gradient(to top,
            transparent 0,
            transparent 19%,
            rgba(255, 255, 255, 0.05) 20%);
    z-index: 0;
    pointer-events: none;
}

.graph-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    position: relative;
    z-index: 1;
    height: 100%;
    justify-content: flex-end;
}

.bar-pair {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100%;
    /* Full height of the chart area */
    width: 100%;
    justify-content: center;
    padding-top: 10px;
    /* Slight buffer from top border */
}

.bar-label {
    position: absolute;
    bottom: -30px;
    /* Position below the border */
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.graph-y-axis {
    position: absolute;
    left: 0;
    /* Extend top/bottom to center labels on the grid lines */
    top: -10px;
    bottom: -10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    height: auto;
}

.bar {
    width: 40px;
    /* Fixed width for better look */
    background: var(--text-color);
    border-radius: 4px 4px 0 0;
    position: relative;
    height: 0;
    transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animate height when parent (.fade-up) becomes visible */
.fade-up.visible .bar {
    height: var(--height);
}

.bar.before {
    background: #4a4a4a;
    /* Distinct grey */
}

.bar.after {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    /* Glow effect */
}

.bar span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.5s ease 1s;
    white-space: nowrap;
}

.fade-up.visible .bar span {
    opacity: 1;
}

.bar-label {
    margin-top: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Legend */
.graph-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.reduction-desc {
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    line-height: 1.8;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 14, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, var(--accent-glow));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

nav a:hover {
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* margin-left: 15px; Removed in favor of flex gap */
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* Offset for fixed header */
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(13, 14, 18, 0) 70%);
    opacity: 0.4;
    filter: blur(80px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5 0%, rgba(13, 14, 18, 0) 70%);
    opacity: 0.3;
    filter: blur(80px);
    z-index: -1;
    animation: pulse 15s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.hero-content {
    width: 100%;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--accent-glow);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 480px;
}

/* Visual Placeholder for Hero using CSS */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 0;
}

.circle-glow {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle-glow::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent);
    animation: spin 4s linear infinite;
    mask: radial-gradient(transparent 60%, black 61%);
    -webkit-mask: radial-gradient(transparent 60%, black 61%);
}

.circle-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Feature Flow Illustration */
.feature-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.flow-step {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
}

.flow-icon {
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--accent-color);
    animation: flowPulse 2s infinite;
    margin-top: 30px;
}

@keyframes flowPulse {
    0% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0.5;
    }
}

.flow-label {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #fff;
}

.flow-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    line-height: 1.4;
    font-weight: 400;
}

.phone-scan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: scanLine 2s infinite linear;
}

/* Feature Demo Visuals */

.visual-demo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.demo-before {
    font-size: 1.2rem;
    /* Slightly larger for handwriting legibility */
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    font-family: 'Zen Kurenaido', sans-serif;
    /* Handwritten font */
    letter-spacing: 0.05em;
}

.strike-double {
    text-decoration: line-through double;
    text-decoration-color: #333;
    color: #555;
}

.seal-target {
    position: relative;
    display: inline-block;
    color: #555;
}

.seal-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    color: #e74c3c;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    writing-mode: horizontal-tb;
    /* Ensure text is horizontal */
}

.multi-line-text {
    line-height: 1.4;
    text-align: left;
    display: inline-block;
}

.demo-arrow {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 5px 0;
}

.demo-after {
    border: 1px solid #333;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    background: #fff;
    display: inline-block;
    min-width: 150px;
}

.feature-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 10px;
}

@keyframes scanLine {
    0% {
        top: 10%;
        opacity: 1;
    }

    90% {
        top: 90%;
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .feature-flow {
        flex-direction: row;
        gap: 5px;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .flow-step {
        max-width: 100px;
    }

    .flow-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .flow-arrow {
        transform: none;
        margin-top: 20px;
        /* Align with icon center roughly */
        font-size: 1rem;
        margin-left: -5px;
        margin-right: -5px;
    }

    .flow-label {
        font-size: 0.75rem;
        margin-top: 5px;
        line-height: 1.2;
    }

    .flow-sub {
        font-size: 0.6rem;
        line-height: 1.2;
        margin-top: 2px;
    }
}



.cloud-ai {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Feature Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition-speed);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--accent-glow);
}

/* Merits Section */
.alt-bg {
    background: var(--secondary-bg);
}

.merit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.merit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.merit-icon {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merit-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.merit-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Comparison Section */
.comparison-container {
    margin-top: 60px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
    color: rgba(255, 255, 255, 0.8);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
    font-weight: 600;
    border-color: var(--accent-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Competitor Comparison Section */
.competitor-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
    /* Ensure readability */
}

.competitor-table th,
.competitor-table td {
    padding: 25px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.competitor-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

/* News/Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #2a2a2a;
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.loader {
    text-align: center;
    width: 100%;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* Operating Company Section */
.company-info {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 30%;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.company-table a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.company-table a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer & Copyright */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050505;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* AI NAVI Column Highlight */
.competitor-table .highlight-col {
    background: rgba(99, 102, 241, 0.1);
    border-left: 1px solid var(--accent-color);
    border-right: 1px solid var(--accent-color);
    position: relative;
}

.competitor-table th.highlight-col {
    background: var(--accent-color);
    color: #fff;
    border-top: 1px solid var(--accent-color);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 20px rgba(99, 102, 241, 0.3);
}

.competitor-table tr:last-child .highlight-col {
    border-bottom: 1px solid var(--accent-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

.competitor-table .price-highlight {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-glow);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.competitor-table .text-highlight {
    font-weight: 700;
    color: #fff;
}

/* Plans Section */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-speed);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.05);
}

.plan-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-weight: 700;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 3.4em;
    /* Align titles */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.plan-detail-row {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.detail-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    color: #fff;
    font-size: 1.1rem;
}

.plan-price-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-main,
.price-sub {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.price-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-glow);
}

.price-val-sub {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.price-unit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.price-plus {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 5px 0;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.plan-features-list {
    text-align: left;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}

.plan-features-list li {
    position: relative;
    padding-left: 15px;
}

.plan-features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.plan-support {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 700;
    color: #FFD700;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #aaa);
    background-clip: text;
    /* standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to bottom, #4ade80, #15803d);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
    z-index: 999;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.6);
    background: linear-gradient(to bottom, #5ce590, #16a34a);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 14, 18, 0.98);
        /* Slightly darker for better contrast */
        backdrop-filter: blur(20px);
        display: flex;
        /* Ensure flex is active */
        flex-direction: column;
        justify-content: center;
        /* Center vertically */
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 60px;
        /* Force some space from top just in case */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    /* Animate Hamburger */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Vision Section */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.vision-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-speed);
}

.vision-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.vision-role {
    font-size: 1.5rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, var(--accent-glow));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-transformation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
}

.vision-before,
.vision-after {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.v-time {
    font-size: 1.2rem;
    font-weight: bold;
}

.highlight-time {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.vision-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.vision-arrow span {
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.vision-impact .impact-text {
    line-height: 1.8;
    color: #fff;
}

.highlight-text-sm {
    color: var(--accent-glow);
    font-weight: bold;
}

@media (max-width: 600px) {
    .vision-transformation {
        gap: 10px;
        padding: 15px;
    }
}

/* Monthly Impact Block */
.monthly-impact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.impact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.impact-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.impact-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.highlight-cost {
    background: linear-gradient(to right, #facc15, #ca8a04);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

.impact-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 5px;
}

.impact-header {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 600;
}

.impact-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.highlight-cost-lg {
    background: linear-gradient(to right, #facc15, #ca8a04);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Impact Animation */
.impact-anim {
    position: relative;
    overflow: hidden;
    /* Ensure content is readable */
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    animation: impactPulse 3s infinite;
}

@keyframes impactPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.2);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        transform: scale(1);
    }
}

/* Time Impact Animation */
.highlight-time-anim {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-block;
    animation: textGlowPulse 2s infinite alternate;
}

@keyframes textGlowPulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }

    100% {
        text-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-color);
        transform: scale(1.1);
        color: #fff;
    }
}

/* Shimmer Animation for Text */
@keyframes shimmer-text {
    0% {
        background-position: -200% center;
    }

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

.text-shimmer {
    font-weight: 800;
    font-size: 1.3em;
    background: linear-gradient(to right,
            #818cf8 20%,
            #ffffff 50%,
            #818cf8 80%);
    background-size: 200% auto;
    color: #818cf8;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 3s linear infinite;
    display: inline-block;
}

/* Hero Title Animation */
@keyframes title-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes title-shine {
    0% {
        background-position: -200% center;
    }

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

.hero-title-anim {
    font-size: 3rem;
    /* Increased size for impact */
    font-weight: 800;
    line-height: 1.2;
    /* Tighter line height */
    margin-bottom: 30px;
    letter-spacing: -0.05em;
    background: linear-gradient(45deg,
            #ffffff 0%,
            #e0e7ff 20%,
            /* Light indigo tint */
            #fbbf24 40%,
            /* Amber/Gold */
            #ffffff 60%,
            #e0e7ff 80%,
            #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        title-reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        title-shine 4s linear infinite;
    /* Continuous shine */
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    /* Glow from indigo accent */
}

/* Responsive adjustment for the big title */
@media (max-width: 768px) {
    .hero-title-anim {
        font-size: 2.2rem;
    }
}

/* Capability List */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.capability-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 50px;
    /* Pill shape */
    text-align: center;
    font-weight: 600;
    transition: var(--transition-speed);
    cursor: default;
    color: rgba(255, 255, 255, 0.9);
}

.capability-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

/* Workflow Cards */
.workflow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.workflow-card {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-speed);
}

.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-glow);
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.workflow-icon {
    font-size: 2.5rem;
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.workflow-title h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.workflow-title p {
    font-size: 0.9rem;
    color: var(--accent-glow);
    font-weight: bold;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w-step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
}

.step-num {
    background: var(--text-color);
    color: var(--bg-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.w-arrow {
    text-align: center;
    color: var(--accent-glow);
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (min-width: 1024px) {
    /* Optional: Make flows horizontal on large screens implies a different structure, 
       but vertical flows within a card works well for responsiveness. 
       Keeping vertical flow inside card for consistency. */
}

/* Interactive Capability Items */
.capability-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.capability-item.active {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    border-color: var(--accent-glow);
    color: #fff;
    transform: scale(1.05);
}

/* Workflow Display Container */
#workflow-display {
    min-height: 400px;
    /* Prevent layout shift */
    display: flex;
    justify-content: center;
}

/* Ensure dynamic content fades in nicely */
.workflow-card.anim-enter {
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Expandable Capability Cards */
.capability-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Slightly wider for content */
    align-items: start;
    /* Align to top so expansion doesn't break row layout weirdly */
}

.capability-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Reset padding, will use inner containers */
    overflow: hidden;
    /* Hide the steps */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    /* Card shape */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.capability-summary {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
}

.capability-icon {
    margin-right: 10px;
    font-size: 1.5rem;
}

.capability-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.capability-item.active {
    background: var(--secondary-bg);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    grid-row: span 2;
    /* Attempt to take more space if grid allows, but auto-fill makes this tricky. Sticking to flow */
}

.capability-item.active .capability-toggle-icon {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent-color);
}

.capability-details {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.capability-item.active .capability-details {
    max-height: 800px;
    /* Enough for content */
    opacity: 1;
    padding-bottom: 20px;
}

/* Inner Steps Styling for Card */
.card-steps {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.c-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.c-step-num {
    background: var(--accent-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.c-step-arrow {
    text-align: center;
    color: var(--accent-glow);
    font-size: 0.8rem;
    opacity: 0.5;
    margin: -5px 0 -5px 10px;
    /* Adjust spacing */
}

/* Mobile Optimization (420px - 480px range) */
@media (max-width: 480px) {
    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Stack Icon and Text Vertical */
    .capability-summary {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 8px;
        justify-content: center;
    }

    .capability-summary>div {
        flex-direction: column;
        /* Icon above Text */
        gap: 8px;
    }

    .capability-icon {
        margin: 0;
        font-size: 2rem;
    }

    .capability-toggle-icon {
        margin-top: 5px;
        font-size: 1rem;
    }

    /* Expand to Full Width when Active */
    .capability-item.active {
        grid-column: 1 / -1;
        width: 100%;
        z-index: 10;
        margin-bottom: 5px;
        /* Add a little space */
    }

    /* Ensure content is readable on mobile */
    .capability-details {
        padding: 0 5px;
    }

    .c-step {
        font-size: 0.85rem;
    }
}

/* Center Workflow Steps */
.card-steps {
    align-items: center;
    /* Center children horizontally in column */
}

.c-step {
    justify-content: center;
    /* Center content of each step */
    width: 100%;
    /* Ensure it takes full width so centering works */
}

.c-step-arrow {
    margin: -5px auto -5px auto;
    /* Center arrow with auto margins */
}

/* Align Text Start Position: Fixed width for step container */
.c-step {
    width: 250px;
    /* Fixed width to center-align the block but left-align content */
    max-width: 100%;
    margin: 0 auto;
    justify-content: flex-start;
    /* Force content to start (left) */
    text-align: left;
}

/* Ensure arrows are also centered relative to this block flow */
.c-step-arrow {
    width: 250px;
    /* Match width so arrow is essentially centered in this block if we flex it, or rely on margin */
    margin: -5px auto;
    text-align: center;
}

/* Profit Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.impact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-speed);
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.impact-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.impact-body {
    padding: 25px;
}

.impact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.impact-box {
    text-align: center;
}

.impact-sublabel {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.impact-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.impact-box.after .impact-amount {
    color: var(--accent-color);
}

.impact-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.impact-result {
    background: rgba(250, 204, 21, 0.1);
    /* Gold tint */
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.impact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-glow);
    margin-bottom: 5px;
    font-weight: bold;
}

.impact-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.impact-unit {
    font-size: 1rem;
    margin-left: 5px;
}

/* Profit Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.impact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-speed);
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.impact-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.impact-body {
    padding: 25px;
}

.impact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.impact-box {
    text-align: center;
}

.impact-sublabel {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.impact-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.impact-box.after .impact-amount {
    color: var(--accent-color);
}

.impact-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.impact-result {
    background: rgba(250, 204, 21, 0.1);
    /* Gold tint */
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.impact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-glow);
    margin-bottom: 5px;
    font-weight: bold;
}

.impact-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.impact-unit {
    font-size: 1rem;
    margin-left: 5px;
}

/* Impact Promo Badge */
.impact-promo-badge {
    background: #ef4444;
    /* Strong red */
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Fix Vision Impact Layout on Mobile */
@media (max-width: 480px) {

    /* Scope specifically to vision-impact to avoid affecting Profit Impact section */
    .vision-impact .impact-row {
        flex-wrap: nowrap;
        /* Force single line */
        gap: 5px;
        /* Reduce gap to fit content */
        justify-content: space-between;
    }

    .vision-impact .impact-label {
        font-size: 0.8rem;
        /* Scale down label */
        white-space: nowrap;
    }

    .vision-impact .impact-value {
        font-size: 0.95rem;
        /* Scale down value */
        white-space: nowrap;
    }
}

/* Retry Fix Vision Impact Layout on Mobile: Stronger adjustments */
@media (max-width: 420px) {

    /* Reduce container padding to give more width */
    .monthly-impact {
        padding: 15px 10px;
        /* Reduced from default */
    }

    /* Force row to use all space */
    .vision-impact .impact-row {
        gap: 2px;
        margin-bottom: 8px;
    }

    /* Significantly reduce font size to ensure single line */
    .vision-impact .impact-label {
        font-size: 0.7rem;
        /* Smaller */
        flex-shrink: 0;
        /* Prevent shrinking too much, but allow if needed */
    }

    .vision-impact .impact-value {
        font-size: 0.85rem;
        /* Smaller */
        white-space: nowrap;
    }
}

/* Specific Font Size Reduction for Costs on Mobile to prevent wrapping */
@media (max-width: 420px) {

    .vision-impact .highlight-cost,
    .vision-impact .highlight-cost-lg {
        font-size: 0.8rem !important;
        /* Force smaller size for currency */
    }
}

/* FINAL DEFINITIVE FIX for Vision Impact Layout on Mobile (Force Single Line) */
@media (max-width: 420px) {

    /* Maximize width by reducing container padding */
    .vision-impact .monthly-impact {
        padding: 15px 5px !important;
    }

    /* Force row elements to stay on one line with no gap if necessary */
    .vision-impact .impact-row {
        flex-wrap: nowrap !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
        justify-content: space-between !important;
        align-items: baseline !important;
    }

    /* Shrink label text significantly and tighten spacing */
    .vision-impact .impact-label {
        font-size: 11px !important;
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
        /* Never shrink the label below content width */
    }

    /* Shrink value text and ensure it fits */
    .vision-impact .impact-value,
    .vision-impact .highlight-cost,
    .vision-impact .highlight-cost-lg,
    .vision-impact .highlight-time-anim {
        font-size: 13px !important;
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
    }
}

/* ABSOLUTE FINAL FIX: Broaden to 600px to cover large phones */
@media (max-width: 600px) {
    .vision-impact .monthly-impact {
        padding: 15px 5px !important;
    }

    .vision-impact .impact-row {
        flex-wrap: nowrap !important;
        gap: 2px !important;
        /* Minimal gap */
        margin-bottom: 5px !important;
        justify-content: space-between !important;
    }

    .vision-impact .impact-label {
        font-size: 11px !important;
        /* Small label */
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .vision-impact .impact-value,
    .vision-impact .highlight-cost,
    .vision-impact .highlight-cost-lg,
    .vision-impact .highlight-time-anim {
        font-size: 13px !important;
        /* Small value */
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
    }
}

/* REAL FIXED SELECTOR: The previous attempts used .vision-impact which is a SIBLING, not parent.
   The correct parent class is .monthly-impact. */
@media (max-width: 600px) {
    .monthly-impact {
        padding: 15px 5px !important;
    }

    .monthly-impact .impact-row {
        flex-wrap: nowrap !important;
        gap: 2px !important;
        margin-bottom: 6px !important;
        justify-content: space-between !important;
        align-items: baseline !important;
    }

    .monthly-impact .impact-label {
        font-size: 11px !important;
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        flex-shrink: 0;
    }

    .monthly-impact .impact-value,
    .monthly-impact .highlight-cost,
    .monthly-impact .highlight-cost-lg,
    .monthly-impact .highlight-time-anim {
        font-size: 13px !important;
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
    }
}

/* ADJUSTED FIX: Larger fonts for better impact, while safe-guarding layout */
@media (max-width: 600px) {
    .monthly-impact .impact-label {
        font-size: 12px !important;
        /* Increased from 11px */
        letter-spacing: 0 !important;
        /* Normal spacing for readability */
    }

    .monthly-impact .impact-value,
    .monthly-impact .highlight-cost,
    .monthly-impact .highlight-cost-lg,
    .monthly-impact .highlight-time-anim {
        font-size: 17px !important;
        /* Increased from 13px to ~1.1rem for impact */
        letter-spacing: -0.02em !important;
        /* Slight tight tracking */
    }
}

/* MAXIMIZED FONT SIZE: Pushing larger sizes while keeping single-line layout */
@media (max-width: 600px) {
    .monthly-impact .impact-label {
        font-size: 13px !important;
        /* Larger label */
    }

    .monthly-impact .impact-value,
    .monthly-impact .highlight-cost,
    .monthly-impact .highlight-cost-lg,
    .monthly-impact .highlight-time-anim {
        font-size: 20px !important;
        /* Much larger value for max impact */
    }
}

/* Onboarding Page Styles */

.onboarding-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-num {
    background: var(--accent-color);
    color: #0f172a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.form-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.selection-card {
    cursor: pointer;
    position: relative;
}

.selection-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Checked State */
.selection-card input:checked+.card-content {
    background: rgba(250, 204, 21, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-color);
    background: rgba(250, 204, 21, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.browse-link {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.file-list {
    margin-bottom: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-name {
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-file {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"] {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group select {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    padding-right: 45px;
}

.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.input-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.input-group input[type="text"]::placeholder,
.input-group input[type="email"]::placeholder,
.input-group input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.input-group input[type="text"]:hover,
.input-group input[type="email"]:hover,
.input-group input[type="tel"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.input-group select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.input-group select {
    cursor: pointer;
}

.input-group select option {
    background: var(--bg-color);
    color: #fff;
    padding: 10px;
}

.input-group textarea {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 100px;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.input-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Disabled state for submit button */
.btn:disabled,
.btn[disabled],
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover,
.btn-submit:disabled:hover {
    background: linear-gradient(to bottom, #4ade80, #15803d);
}

/* Success Message Overlay (Hidden by default) */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Glossy Blue Gradient Text */
.text-glossy-blue {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
    font-weight: 700;
}

/* Glossy Red Gradient Text */
.text-glossy-red {
    background: linear-gradient(120deg, #ff9a9e 0%, #fecfef 50%, #fe6b8b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 139, 0.3);
    font-weight: 700;
    font-size: 1.1em;
    /* Slightly larger as requested */
}

/* --- Simple Solution Section --- */
.solution-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 15px;
    /* Reduced gap for mobile */
    flex-wrap: nowrap;
    /* Force horizontal even on mobile */
    overflow-x: auto;
    /* Safety scroll if extremely small */
    padding-bottom: 10px;
}

.solution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    /* Slightly smaller radius */
    padding: 20px 10px;
    /* Compact padding */
    flex: 1;
    min-width: 140px;
    /* Minimum width to fit side-by-side on 320px+ */
    width: auto;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card.problem {
    border-color: rgba(239, 68, 68, 0.2);
}

.solution-card.solution {
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.card-icon {
    font-size: 2rem;
    /* Smaller icon */
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-size: 1rem;
    /* Compact font size */
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    /* Smaller text */
    line-height: 1.4;
    margin-bottom: 20px;
}

.solution-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    /* Smaller arrow circle */
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-weight: 800;
    font-style: italic;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    margin-top: auto;
    /* Center vertically relative to cards */
    margin-bottom: auto;
}

/* --- Visuals: Complex UI --- */
.ui-mock-complex {
    opacity: 0.8;
    padding: 5px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
    position: relative;
    height: 100px;
    overflow: hidden;
}

.complex-header {
    height: 10px;
    background: #444;
    margin-bottom: 4px;
    border-radius: 2px;
}

.complex-sidebar {
    width: 20%;
    height: 80px;
    background: #333;
    float: left;
    margin-right: 4px;
    border-radius: 2px;
}

.complex-content {
    float: left;
    width: 75%;
}

.c-row {
    display: flex;
    gap: 2px;
    margin-bottom: 3px;
}

.c-row span {
    height: 8px;
    background: #3a3a3a;
    flex: 1;
    border-radius: 1px;
}

.pop-up-error {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: shake 0.5s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

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

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

/* --- Visuals: Simple UI --- */
.ui-mock-simple {
    padding: 10px;
    display: flex;
    justify-content: center;
    position: relative;
    height: 100px;
    align-items: center;
}

.simple-window {
    width: 100%;
}

.simple-btn-container {
    display: flex;
    justify-content: center;
}

.simple-btn-mock {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Circle button */
    background: linear-gradient(135deg, var(--accent-color), var(--accent-glow));
    border: none;
    color: white;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    animation: pulseBtn 2s infinite;
}

.cursor-hand {
    position: absolute;
    bottom: 10px;
    right: 20%;
    font-size: 1.5rem;
    animation: clickAnim 1.5s infinite;
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
}

@keyframes clickAnim {

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

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

@media (min-width: 768px) {

    /* Adjustments for Desktop to make it look good there too */
    .solution-grid {
        gap: 40px;
    }

    .solution-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .card-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .card-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .solution-arrow {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .simple-btn-mock {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }
}

@media (max-width: 420px) {

    /* Optimizations specifically for small screens */
    .container {
        padding: 0 15px;
        /* Ensure space strictly for content */
    }

    .card-title {
        font-size: 0.9rem;
    }

    .solution-arrow {
        margin: 0 5px;
        /* Minimize margin on very small screens */
    }
}

/* --- FAQ Section --- */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-glow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

.faq-question:hover {
    color: #fff;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-glow));
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-glow);
    transition: transform 0.3s ease;
}

.faq-item[open] .toggle-icon {
    transform: rotate(45deg);
    color: #fff;
}

.faq-answer {
    padding: 0 25px 25px 70px;
    /* Indent to align with text */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 600px) {
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
        /* Less indentation on mobile */
    }

    .q-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* --- Demo Video Section --- */
.demo-video-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}


.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Styles */
.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
}

.video-wrapper:hover .video-overlay {
    background: radial-gradient(circle at center, rgba(31, 41, 55, 0.7), rgba(17, 24, 39, 0.9));
}

.video-wrapper.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding-left: 5px;
    /* Visual center adjustment */
}

.video-wrapper:hover .play-button {
    transform: scale(1.1);
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.video-overlay p {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}