/*
Theme Name: Petal Pixel
Author: Custom
Version: 2.0 (High Fidelity)
*/

:root {
    --primary-color: #D4E831;
    /* Electric Lime */
    --primary-hover: #e2f542;
    --background-color: #050e0a;
    /* Deepest Green/Black */
    --surface-color: #0B1C15;
    /* Section Backgrounds */
    --surface-light: #132a20;
    /* Card Backgrounds */
    --text-color: #ffffff;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(212, 232, 49, 0.3);

    --font-primary: 'Inter', sans-serif;
    --spacing-container: 1200px;
    --spacing-section: 100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

.subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    padding: 14px 28px;
    border-radius: 4px;
    /* Slightly sharper corners */
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 232, 49, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Navigation --- */
header {
    background-color: rgba(5, 14, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #132a20 0%, var(--background-color) 60%);
    position: relative;
    overflow: hidden;
}

/* Checkered Pattern Background Overlay (pseudo) */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.logo-wall-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.logo-wall-mask {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Gradient mask for smooth fade in/out on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-wall-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.logo-set {
    display: flex;
    gap: 80px;
    /* Space between items */
    padding-right: 80px;
    /* Space between sets */
    align-items: center;
}

.logo-wall-track:hover {
    animation-play-state: paused;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.platform-item img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logos white */
    transition: filter 0.3s;
}

.platform-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

.platform-item:hover img {
    /* Keep logo white or change to primary color if desired? existing site keeps them white usually or primary. Let's try primary to match text */
    filter: sepia(100%) saturate(1000%) hue-rotate(40deg) brightness(1.2) contrast(1.2);
    /* Approximate lime green */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Section Title Wrapper --- */
.section-wrapper {
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- Cards & Grids --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* --- Pain Points Cloud (Falling Bubbles) --- */
.pain-points-cloud {
    position: relative;
    /* Styles handled inline for container dims */
}

.pain-bubble {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #17332D;
    padding: 12px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transform-origin: center;
}

/* Specific positioning to mimic "falling" layout */
.pain-bubble.b1 {
    top: 10%;
    left: 10%;
    transform: rotate(-5deg);
}

.pain-bubble.b2 {
    top: 15%;
    right: 15%;
    transform: rotate(3deg);
}

.pain-bubble.b3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, 0) rotate(-2deg);
    z-index: 2;
}

.pain-bubble.b4 {
    top: 50%;
    left: 15%;
    transform: rotate(4deg);
}

.pain-bubble.b5 {
    top: 60%;
    right: 10%;
    transform: rotate(-3deg);
}

/* --- Warning Banner --- */
.warning-banner {
    background-color: #D4E831;
    /* Electric Yellow */
    color: #17332D;
    padding: 40px 60px;
    text-align: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    /* Optional: Side stripes can be complex, keeping simple flat banner for now as per first iteration */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Decorative side bars if needed, using borders for simplicity */
.warning-banner::before,
.warning-banner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
}

.warning-banner::before {
    left: 20px;
}

.warning-banner::after {
    right: 20px;
}

.warning-banner h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.warning-banner p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- CTA Arrow Wrapper --- */
.cta-arrow-wrapper {
    position: absolute;
    bottom: -100px;
    /* Push out of banner */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashed-arrow {
    width: 60px;
    height: auto;
    margin-bottom: 16px;
    margin-left: -60px;
    /* Offset to align trail with banner center */
}

/* --- Community Reviews Section --- */
.community-grid {
    display: grid;
    grid-template-columns: 40% 55%;
    /* Split 40/60 roughly to give more space/match design */
    gap: 5%;
    align-items: flex-start;
}

.community-content-left {
    position: sticky;
    top: 40px;
    /* Stick when scrolling */
}

.community-reviews-wrapper {
    height: 600px;
    /* Visible height */
    overflow: hidden;
    position: relative;
    /* Fade mask at top and bottom */
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.community-reviews-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Animation */
    animation: vertical-scroll 30s linear infinite;
    /* Ensure mouse hover pauses it */
}

.community-reviews-track:hover {
    animation-play-state: paused;
}

@keyframes vertical-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }

    /* Scroll half (the duplicate set length) */
}

.review-card {
    background-color: #00408C;
    /* Darker blue card bg */
    border-radius: 8px;
    padding: 30px;
    color: #fff;
    /* Optional: might be slight transparency? Source says solid, sticking to solid for now */
}

.review-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.review-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted white */
    line-height: 1.5;
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.author-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.author-info strong {
    color: #fff;
}

.author-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-content-left {
        position: static;
        margin-bottom: 40px;
        text-align: center;
    }

    .community-content-left h2,
    .community-content-left p {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .community-reviews-wrapper {
        height: 500px;
    }
}



/* --- Case Study Cards --- */
.case-study-card {
    background-color: #FBF9F6;
    /* Light background as per screenshot sort of, or surface-light */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    /* Reset generic card styles if any conflict */
    border: none;
    padding: 0;
}

.case-study-card:hover {
    transform: translateY(-4px);
}

.case-study-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}

.case-study-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-stat-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-study-stat-badge .platform-icon-xs {
    height: 12px;
    width: auto;
    margin-bottom: 4px;
    opacity: 0.8;
}

.case-study-stat-badge span {
    font-weight: 800;
    color: #17332D;
    font-size: 1.1rem;
    line-height: 1;
}

.case-study-content {
    padding: 20px 0 0 0;
}

.case-study-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #17332D;
    line-height: 1.4;
    margin: 0;
}

/* --- Why Choose Us Section --- */
.section-why-us {
    background-color: #132A20;
    /* Deep Forest Green */
    color: #fff;
    position: relative;
    padding: 100px 0 120px;
    /* More vertical space */
    overflow: hidden;
}

/* Checkered Strip removed from this section */

.why-us-grid {
    padding-top: 0;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Add borders between columns */
    position: relative;
    z-index: 2;
}

.why-us-col {
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle vertical divider */
    text-align: left;
}

/* Remove border from last column */
.why-us-col:last-child {
    border-right: none;
}

.why-us-icon {
    width: 100px;
    /* Larger Icons */
    height: 100px;
    margin-bottom: 30px;
    /* Removed mix-blend-mode as icons are now transparent */
    border-radius: 12px;
}

.why-us-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Removed filters */
}

.why-us-col h4 {
    font-size: 1.8rem;
    /* BIGGER Heading */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.why-us-col p {
    font-size: 1rem;
    /* Clearer body text */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.why-us-cta-wrapper {
    margin-top: 50px;
    position: relative;
    z-index: 5;
}

.btn-yellow {
    background-color: #D4E831;
    color: #000;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 232, 49, 0.3);
}

/* Gradient Blobs */
.glow-blob-left,
.glow-blob-right {
    position: absolute;
    bottom: 0;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at bottom, rgba(212, 232, 49, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.glow-blob-left {
    left: 0;
}

.glow-blob-right {
    right: 0;
}

@media (max-width: 900px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-us-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 40px 0;
    }

    .why-us-col:last-child {
        border-bottom: none;
    }
}

/* --- Footer --- */
footer {
    background-color: #132A20;
    /* Deep Green from screenshot/theme */
    padding: 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Checkered Strip */
.footer-checkered-strip {
    width: 100%;
    height: 60px;
    /* Adjust height based on screenshot visual */
    background-image:
        linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
        linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    background-color: #132A20;
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    margin-bottom: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    /* Asymmetric grid */
    gap: 40px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Brand Section */
.footer-logo a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 20px 0;
    max-width: 300px;
}

.address-block h4 {
    margin-bottom: 8px;
    color: #fff;
}

.address-block p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Links */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: block;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #D4E831;
}

/* Subscribe */
.subscribe-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
}

.btn-subscribe {
    background-color: #D4E831;
    color: #000;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.2s;
}

.btn-subscribe:hover {
    opacity: 0.9;
}

/* Glow Effects */
.footer-bottom-glow-left,
.footer-bottom-glow-right {
    position: absolute;
    bottom: 0;
    width: 400px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 232, 49, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-bottom-glow-left {
    left: 0;
}

.footer-bottom-glow-right {
    right: 0;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
        /* Keep left alignment as per common mobile patterns or center if requested */
    }
}

/* --- Inner Page Specifics --- */

/* Sidebar Layout */
.layout-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    position: relative;
    padding: 60px 0;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-filters h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.sidebar-filters a {
    display: block;
    padding: 8px 0;
    color: #fff;
    border-bottom: 1px solid transparent;
}

.sidebar-filters a:hover {
    color: var(--primary-color);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--surface-light);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border-color);
    background-image: linear-gradient(45deg, #132a20 25%, transparent 25%, transparent 75%, #132a20 75%, #132a20),
        linear-gradient(45deg, #132a20 25%, transparent 25%, transparent 75%, #132a20 75%, #132a20);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}