/* Design Tokens */
:root {
    /* Colors */

    --color-desert-storm: #F8F8F7;
    --color-laser: #C8B568;
    --color-chambray: #3B568B;
    --color-tuatara: #363737;
    --color-woodsmoke: #0C0D0F;
    --color-soft-blue: #E8F1FC;
    --color-accent-blue: #0066FF;

    /* Semantic Colors */
    --bg-primary: var(--color-desert-storm);
    --bg-secondary: var(--color-tuatara);
    --text-primary: var(--color-woodsmoke);
    --text-on-dark: var(--color-desert-storm);
    --accent-primary: var(--color-chambray);
    --accent-secondary: var(--color-laser);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
}

html {
    width: 100%;
    overflow-x: hidden;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

.container {
    width: min(90%, 80rem);
    margin-inline: auto;
}

/* Typography Rules (Clamp) */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
}

p {
    font-size: clamp(1rem, 1vw + 1rem, 1.25rem);
}

/* Base Styles */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-tuatara);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 86, 139, 0.2);
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    color: var(--text-primary);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Hero V2 - SaaS Inspired */
.hero-v2 {
    padding: clamp(6rem, 12vh, 10rem) 0;
    position: relative;
    background-color: #f0f7ff;
    /* Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(220, 100%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(230, 100%, 90%, 1) 0, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
    overflow: hidden;
}

/* Grid Pattern Overlay */
.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, black 50%, transparent);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 42rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-woodsmoke);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.accent-underline {
    position: relative;
    display: inline-block;
}

.accent-underline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(59, 86, 139, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    color: #4a5568;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 35rem;
}

/* Hero Actions - Buttons */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    min-width: 220px;
}

.hero-tagline {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tagline i {
    width: 14px;
    height: 14px;
}

/* Floating Elements (Right Side) */
.hero-visuals {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-visual-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 8px solid #f8f9fa;
    z-index: 2;
}

.main-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: -5%;
    right: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 10%;
    left: -15%;
    animation-delay: 2s;
}

.badge-3 {
    bottom: -15%;
    right: 5%;
    animation-delay: 4s;
}

.badge-icon {
    width: 32px;
    height: 32px;
    background: var(--color-soft-blue);
    color: var(--color-accent-blue);
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-woodsmoke);
}

.badge-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-accent-blue);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-right {
    display: none;
    /* Hide old hero right */
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
    color: var(--color-laser);
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.trust-text {
    font-size: 0.9rem;
    color: #888;
}

.trust-text strong {
    color: var(--color-woodsmoke);
    margin-right: 0.4rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-woodsmoke);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666;
    max-width: 40rem;
    margin-inline: auto;
}

/* Services Overview */
.services-overview {
    padding: 8rem 0;
    background-color: var(--color-woodsmoke);
}

.services-overview .section-title {
    color: white;
}

.services-overview .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    height: 240px;
    overflow: hidden;
    background-color: #eee;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #ccc;
}

.image-placeholder i {
    width: 48px;
    height: 48px;
}

.card-content {
    padding: 2.5rem;
    position: relative;
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-soft-blue);
    color: var(--color-accent-blue);
    border-radius: 12px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -25px;
    left: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.1);
}

.card-icon i {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--color-woodsmoke);
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s ease;
}

.service-card:hover .card-link {
    gap: 0.8rem;
}

.card-link i {
    width: 18px;
    height: 18px;
}

/* Achievements */
.achievements {
    padding: 8rem 0;
    background-color: white;
}

/* Achievements Bento Style */
.achievements {
    padding: 8rem 0;
    background-color: #f8fafc;
}

.achievements-container {
    background-color: transparent;
    /* Remove old dark background */
    padding: 0;
    display: block;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.achievement-item {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
    color: inherit;
    opacity: 0.6;
}

/* Bento Sizing */
.achievement-item:nth-child(1) {
    grid-column: span 1;
    background-color: var(--color-woodsmoke);
    color: white;
}

.achievement-item:nth-child(2) {
    grid-column: span 1;
}

.achievement-item:nth-child(3) {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-chambray) 0%, #1e293b 100%);
    color: white;
}

.achievement-item:nth-child(4) {
    grid-column: span 4;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    background: white;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--color-soft-blue);
    color: var(--color-accent-blue);
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 2rem;
}

.achievement-item:nth-child(1) .achievement-icon,
.achievement-item:nth-child(3) .achievement-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-laser);
}

.achievement-info h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.achievement-info p {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .container {
        width: 92%;
    }

    .hero-v2 {
        padding: 4rem 0;
        /* Reduced padding for mobile */
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: left;
        gap: 3rem;
    }

    .hero-left {
        max-width: 100%;
        margin-inline: 0;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        text-align: left;
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
        margin-bottom: 2.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        min-width: unset;
        text-align: center;
    }

    .hero-trust {
        order: 2;
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 3.5rem;
        width: 100%;
    }

    .hero-visuals {
        order: 3;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
        margin-top: 0;
    }

    .main-visual-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0;
        border-radius: 20px;
    }

    .floating-badge {
        position: static;
        width: 100%;
        max-width: 320px;
        transform: none !important;
        animation: none !important;
        margin: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1.25rem;
        gap: 1.25rem;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .badge-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .badge-info {
        text-align: left;
    }

    /* Tablet State for Achievements */
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .achievement-item:nth-child(3) {
        grid-column: span 1;
        /* Reset from span 2 */
    }

    .achievement-item:nth-child(4) {
        grid-column: span 2;
        /* Full width for the last item on tablet */
    }
}

@media (max-width: 600px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-item,
    .achievement-item:nth-child(1),
    .achievement-item:nth-child(2),
    .achievement-item:nth-child(3),
    .achievement-item:nth-child(4) {
        grid-column: span 1 !important;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .achievement-item:nth-child(4) {
        gap: 1.5rem;
    }
}

/* CTA Banner */
.cta-banner {
    padding: 6rem 0;
    background-color: var(--color-chambray);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background-color: white;
    color: var(--color-chambray);
}

.cta-content .btn-primary:hover {
    background-color: var(--color-laser);
    color: var(--color-woodsmoke);
}

/* Animations (Intersection Observer) */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Footer (Base) */
.footer {
    background-color: var(--color-woodsmoke);
    color: var(--text-on-dark);
    padding: 3rem 0;
    text-align: center;
}

/* Brand Meaning Badge (Hero) */
.brand-meaning {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    background: white;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.meaning-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: var(--color-woodsmoke);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.meaning-icon i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.meaning-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-woodsmoke);
    padding-right: 0.75rem;
    letter-spacing: -0.01em;
}

.meaning-text .divider {
    color: #e2e8f0;
    margin: 0 0.4rem;
    font-weight: 300;
}

.meaning-text .italic {
    font-family: serif;
    /* Elegant contrast */
    font-style: italic;
    color: #64748b;
    font-weight: 500;
}

/* Lightbox Styling */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    place-items: center;
    cursor: zoom-out;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: grid;
    opacity: 1;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}