/* Features / Standard Grid Styles */

.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 1rem 4rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    /* Bigger */
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 5rem;
    /* More space */
    font-size: 1.3rem;
}

.feature-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-left: auto;
    /* Push to right */
}

.bento-grid {
    display: grid;
    /* Responsive columns: fit as many 320px cards as possible */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.1s linear, box-shadow 0.3s ease;
    /* Fast transform for tilt */
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Spotlight Glow Effect using CSS Variables from JS */
.bento-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.1),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover::after {
    opacity: 1;
}

/* Border Glow */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.5),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    /* Content above glow */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(255, 255, 255, 0.25);
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.3rem;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit text lines to prevent overflow */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-mockup {
    margin-top: auto;
    width: 100%;
    height: 120px;
    /* Removed solid background for a cleaner "floating" look */
    background: transparent;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add subtle fade at the bottom */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* --- Specific Mockup Styles --- */

/* 1. Launcher Mockup */
.launcher-mockup {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1rem;
}

.app-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

/* 2. Monitor Mockup */
.monitor-mockup {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 1rem;
}

.monitor-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mon-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 30px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.mon-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.mon-bar {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px currentColor;
}

.mon-value {
    font-size: 0.75rem;
    color: white;
    width: 30px;
    text-align: right;
    opacity: 0.8;
}

/* 3. Radio Mockup */
.radio-mockup {
    gap: 8px;
    align-items: center;
}

.waveform-bar {
    width: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--accent-primary);
    animation: wageAnim 1.2s ease-in-out infinite;
}

/* Ensure explicit heights so they are visible */
.waveform-bar:nth-child(1) {
    height: 24px;
    animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
    height: 48px;
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
    height: 32px;
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
    height: 56px;
    animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
    height: 28px;
    animation-delay: 0.4s;
}

/* 4. Color Mockup */
.color-picker-mockup {
    gap: 1.5rem;
    align-items: center;
}

.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 15px currentColor;
}

/* 5. Weather Mockup */
.weather-mockup {
    flex-direction: column;
    gap: 0.5rem;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 6. Privacy Mockup */
/* 6. Privacy Mockup - Uses default .card-mockup styles */

.lock-icon-big {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.4));
    /* Greenish glow */
    animation: pulseLock 3s infinite ease-in-out;
}

@keyframes wageAnim {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.4);
        opacity: 1;
    }
}

@keyframes pulseLock {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 7. AI Mockup */
.ai-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-brain-pulse {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ec4899, #be185d);
    border-radius: 50%;
    box-shadow: 0 0 20px #ec4899;
    animation: pulseAI 2s infinite ease-in-out;
    position: relative;
}

.ai-brain-pulse::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 2px dashed rgba(236, 72, 153, 0.5);
    border-radius: 50%;
    animation: spinSlow 10s linear infinite;
}

/* 8. Zen Mockup */
.zen-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zen-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #fff;
    border-radius: 50%;
    animation: breathe 4s infinite ease-in-out;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
}

@keyframes pulseAI {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.8;
        box-shadow: 0 0 20px #ec4899;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 40px #ec4899;
    }
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(0.8);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        transform: scale(1.2);
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

/* 9. Widgets Mockup */
.widget-mockup {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.widget-item {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatWidget 3s infinite ease-in-out;
}

.widget-item:nth-child(1) {
    background: #3b82f6;
    animation-delay: 0s;
    transform: rotate(-5deg);
}

.widget-item:nth-child(2) {
    background: #10b981;
    animation-delay: 1s;
    transform: rotate(5deg);
    height: 50px;
}

.widget-item:nth-child(3) {
    background: #f59e0b;
    animation-delay: 0.5s;
    transform: rotate(-2deg);
}

@keyframes floatWidget {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Tech Stack Section (Non-Card) --- */
.tech-stack-section {
    margin-top: 6rem;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.tech-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    cursor: default;
}

.tech-tag:hover {
    background: white;
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.tech-tag.speed {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #f59e0b;
}

.tech-tag.speed:hover {
    background: #f59e0b;
    color: black;
    box-shadow: 0 0 20px #f59e0b;
}

/* --- Terminal Section (Non-Card) --- */
.terminal-section {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.terminal-container {
    width: 100%;
    max-width: 700px;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.red {
    background: #ff5f56;
}

.term-btn.yellow {
    background: #ffbd2e;
}

.term-btn.green {
    background: #27c93f;
}

.term-title {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 20px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.term-line {
    margin-bottom: 8px;
}

.term-prompt {
    color: #f472b6;
    margin-right: 10px;
    font-weight: bold;
}

.term-line.success {
    color: #4ade80;
}

.term-line.info {
    color: #60a5fa;
    margin-top: 15px;
    font-weight: bold;
}

/* Add simple blink cursor to last line */
.term-line.info::after {
    content: "_";
    animation: blinkCursor 1s infinite;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Architecture Section --- */
.architecture-section {
    margin-top: 5rem;
    text-align: center;
    padding: 2rem 0;
}

.arch-title {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.arch-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.node-icon {
    width: 60px;
    height: 60px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.node-icon.main {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    font-size: 2rem;
    border: none;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
    top: 0;
    left: 0;
    animation: ringPulse 2s infinite;
    z-index: -1;
}

/* Connectors */
.connector-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 10px;
}

.connector-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: flowLine 2s infinite linear;
}

.arch-node:hover .node-icon {
    transform: scale(1.1);
    border-color: white;
}

/* --- Mission Statement --- */
.mission-section {
    margin-top: 6rem;
    margin-bottom: 4rem;
    text-align: center;
}

.mission-text {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
}

.highlight {
    background: linear-gradient(to right, #f43f5e, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes flowLine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(250%);
    }
}

/* --- Use Cases Section --- */
.use-cases-section {
    margin-top: 6rem;
    padding: 2rem 1rem;
    text-align: center;
}

.uc-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 3rem;
}

.uc-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.uc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: left;
    transition: transform 0.3s;
}

.uc-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.uc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.uc-card h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.uc-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Privacy Promise Section --- */
.privacy-text-section {
    margin-top: 6rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.privacy-content {
    max-width: 800px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1), transparent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.privacy-content h3 {
    color: #34d399;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.privacy-content strong {
    color: white;
}

/* --- Metrics Deep Dive Section --- */
.metrics-section {
    margin-top: 8rem;
    text-align: center;
    padding: 0 1rem;
}

.section-title-small {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.section-subtitle-small {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.metrics-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.metric-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
    user-select: none;
    cursor: default;
}

.metric-chip span {
    font-size: 1.2rem;
}

.metric-chip:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: white;
    transform: scale(1.05);
}

/* --- Timeline Section --- */
.timeline-section {
    position: relative;
    max-width: 1000px;
    margin: 8rem auto;
    padding: 0 1rem;
}

.timeline-title {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 5rem;
    line-height: 1.2;
}

/* Timeline Central Line */
.timeline-container {
    position: relative;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Circles on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-primary);
    top: 25px;
    /* Adjusted alignment */
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Left side */
.left {
    left: 0;
}

/* Right side */
.right {
    left: 50%;
}

/* Fix circle for right side */
.right::after {
    left: -8px;
}

/* Content Box */
.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Time Badge */
.time-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.timeline-content h3 {
    margin: 0 0 1rem 0;
    color: white;
    font-size: 1.5rem;
}

.timeline-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile Responsiveness for Timeline */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px;
    }

    .left::after,
    .right::after {
        left: 23px;
    }

    .right {
        left: 0%;
    }
}
