/* =========================================
   1. FONTS & GLOBALS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --background: #f7f9f8;
    --foreground: #002936;
    --aw-blue: #0075af;
    --text-color: #002936;
    --bg-dark: #002936;
    --bg-card: #FFFFFF;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
    user-select: none;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: none;
    scroll-behavior: auto;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
    display: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Helper for locking scroll */
.no-scroll {
    overflow: hidden !important;
    height: 100svh;
}

a {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}

/* =========================================
   2. NAVIGATION & MENU
   ========================================= */
nav {
    position: absolute;
    width: 100vw;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    top: 0;
    left: 0;
}

.logo img {
    filter: brightness(0) invert(1);
    width: 40px;
}

.menu-toggle {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    z-index: 21;
}

.menu-toggle p {
    position: absolute;
    transform-origin: top left;
    will-change: transform, opacity;
    font-weight: 900;
    color: var(--background);
    letter-spacing: 1px;
}

#menu-close {
    opacity: 0;
    transform: translateX(-5px) translateY(10px) rotate(5deg);
    color: var(--aw-blue);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background-color: var(--background);
    z-index: 15;
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    pointer-events: none;
    /* Allow clicks through when closed */
}

/* When open, we need pointer events */
.menu-overlay.open {
    pointer-events: auto;
}

.menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: left bottom;
    will-change: transform, opacity;
    transform: translateX(-100px) translateY(-100px) scale(1.5) rotate(-15deg);
    opacity: 0.25;
}

.menu-items,
.menu-footer {
    width: 100%;
    padding: 2rem;
    display: flex;
    gap: 2.5em;
}

.menu-items .col-sm {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-links,
.menu-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link,
.social {
    padding-bottom: 6px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.link a,
.social a {
    display: inline-block;
    will-change: transform;
    transition: color 0.5s;
    transform: translateY(120%);
    opacity: 0.25;
    position: relative;
}

.link a {
    font-size: 3.5rem;
    letter-spacing: -0.02rem;
    font-weight: 500;
}

.social a {
    color: #8f8f8f;
}

.social a:hover {
    color: var(--text-color);
}

.menu-footer {
    position: absolute;
    bottom: 0;
}

/* Hover underlines for menu */
.link a::after,
.social a::after {
    position: absolute;
    content: "";
    top: 102.5%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.6, 0, 0.4, 1);
}

.link a.active::after,
.link a:hover::after,
.social a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   3. HOME PAGE - HERO
   ========================================= */
.page-content-wrapper {
    position: relative;
    width: 100%;
    z-index: 5;
    background-color: var(--background);
}

.hero {
    position: relative;
    height: 95svh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 5rem;
    overflow: hidden;
    margin: 1rem 2.5rem 2.5rem 2.5rem;
    gap: 2rem;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 2rem;
    overflow: hidden;

    /* FIX: Force Safari to respect border-radius on overflow content */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.gradient-canvas-container {
    width: 100%;
    height: 100%;
}

.hero-text-wrapper {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

/* Initially hidden for GSAP */
.hero-text-wrapper>* {
    opacity: 0;
    visibility: hidden;
}

.hero-title {
    color: var(--background);
    font-size: 3.5rem;
    line-height: 0.9;
    font-weight: 350;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-visual {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    padding-left: 2rem;
    perspective: 1500px;
    transform-style: preserve-3d;

    opacity: 0;
    visibility: hidden;
}

/* The actual image styling */
.iphone-mockup {
    width: auto;
    max-width: 100%;
    max-height: 55vh;
    /* Prevents it from being cut off on smaller laptops */
    object-fit: contain;
    /* Optional: Adds a subtle float animation or shadow */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.word-slider-wrapper {
    width: 100%;
    font-weight: 900;
    display: inline-block;
    vertical-align: top;
    height: 1.1em;
    overflow: hidden;
    position: relative;
}

.word-slider {
    position: absolute;
    left: 0;
    top: 0;
}

.word-slider span {
    display: flex;
    align-items: center;
    height: 1.1em;
    line-height: 1.1em;
    /* Ensure spans don't sit next to each other horizontally */
    display: block;
    white-space: nowrap;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 400;
}

.demo-button-wrapper {
    z-index: 2;
    mix-blend-mode: exclusion;
}

/* 1. REQUIRED: Define the custom property for smooth rotation */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* 1. Base Styles (Desktop / High Performance) */
.demo-button {
    position: relative;
    text-align: center;
    padding: 0.75em 1.25em;
    display: inline-block;
    border-radius: 0.75em;
    font-size: 1.2rem;
    color: #0c4a6e;
    text-decoration: none;
    border: 2px solid transparent;

    /* Fallback Color */
    background-color: var(--background);

    /* Complex Desktop Gradient */
    background-image:
        linear-gradient(var(--background), var(--background)),
        conic-gradient(from var(--gradient-angle),
            #f7f9f8 0%, #e0f2fe 30%, #38bdf8 50%, #e0f2fe 70%, #f7f9f8 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    animation: spin-gradient 2s linear infinite;

    /* Box Shadow & Glass */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* 2. MOBILE & TABLET FALLBACK (The Fix) */
@media (max-width: 1024px) {
    .demo-button {
        /* Remove the gradient image entirely */
        background-image: none !important;

        /* Ensure the solid color shows */
        background-color: var(--background);

        /* Set a visible border color since the gradient border is gone */
        border-color: #38bdf8;

        /* Kill the animation to save mobile CPU/Battery */
        animation: none !important;
    }

}

/* 3. The Animation Keyframes */
@keyframes spin-gradient {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

/* =========================================
   4. VALUE PROP SECTION
   ========================================= */
.value-section {
    margin-block: 5rem;
    padding: 1rem;
    color: var(--text-color);
    text-align: center;
    overflow: hidden;
}

.anim-on-load {
    opacity: 0;
    /* JS handles fade in */
}

.switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.switcher {
    display: inline-flex;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.5rem;
    position: relative;
}

.switcher-option {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.switcher-option.active {
    color: var(--background);
}

.switcher-indicator {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0;
    background-color: var(--aw-blue);
    border-radius: 999px;
    z-index: 1;
}

.switcher-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    transition: filter 0.3s ease;
}

.switcher-option.active .switcher-icon {
    filter: brightness(0) invert(1);
}

.icon-user {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3e%3ccircle cx='9' cy='7' r='4'/%3e%3cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3e%3cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3e%3c/svg%3e");
}

.icon-company {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3e%3cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3e%3c/svg%3e");
}

.section-header {
    margin-bottom: 0rem;
    min-height: 120px;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.2;
}

.columns-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    min-height: 700px;
}

.column {
    padding: 1rem;
    border-radius: calc(0.375em * 2);
    text-align: left;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

.column h5 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-color);
}



.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--aw-blue);
    color: var(--background);
    font-weight: 600;
    border-radius: calc(0.375em * 2);
    text-decoration: none;
    text-align: center;
    transition: background 0.25s ease;
    width: fit-content;
}

.cta-button:hover {
    background: var(--text-color);
}

/* =========================================
   5. CONTENT/FEATURES SECTION
   ========================================= */
.content-section {
    margin-block: 5rem;
    padding: 2.5rem;
    text-align: center;
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-purple,
.highlight {
    color: var(--background);
    font-weight: 800;
}

.content-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.feature-card {
    border-radius: calc(0.375em * 2);
    text-align: left;
    border: 2px solid rgba(255, 255, 255, 0.1);

    /* CHANGED: Switched from Flex to Grid to handle layout */
    display: grid;
    grid-template-columns: auto 1fr;
    /* Col 1: Icon, Col 2: Title */
    align-items: center;
    /* Vertically center the icon and title */
    gap: 1rem;
    /* Spacing between elements */
}


.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-bg-blue {
    background: linear-gradient(135deg, var(--background) 0%, var(--aw-blue) 100%);
}

.feature-card p {
    grid-column: 1 / -1;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* OPTIONAL: Remove default margin from H3 for perfect alignment */
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* =========================================
   6. HOW IT WORKS
   ========================================= */
.how-section {
    margin-block: 5rem;
    padding: 2.5rem;
    text-align: center;
}

.how-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.step-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: calc(0.375em * 2);
    flex: 1;
    min-width: 280px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002936 0%, var(--aw-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.step-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    min-height: 96px;
}

.arrow-icon {
    color: var(--text-color);
    font-size: 2rem;
}

/* =========================================
   7. STORIES SECTION
   ========================================= */
.stories-section {
    margin-block: 5rem;
    padding: 2.5rem;
    text-align: center;
}

.stories-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: calc(0.375em * 2);
    text-align: left;
    flex: 1;
    min-width: 280px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.quote-icon {
    color: var(--aw-blue);
    margin-bottom: 1.5rem;
    width: 48px;
    height: 48px;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* =========================================
   8. FAQ SECTION
   ========================================= */
.faq-section {
    margin-block: 5rem;
    padding: 2.5rem;
    text-align: center;
}

.faq-header {
    margin-bottom: 4rem;
}

.faq-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--aw-blue);
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    transition: transform 0.4s;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 100%;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s;
}

.faq-answer-wrapper.open {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    color: var(--text-color);
    line-height: 1.2;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--foreground);
}

.faq-answer-content {
    padding-bottom: 2rem;
    padding-right: 2rem;
}

/* =========================================
   9. ONBOARD SECTION
   ========================================= */
.onboard-section {
    margin: 7rem 2.5rem 7.5rem 2.5rem;
    padding: 2.5rem;
    color: var(--background);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background: var(--aw-blue);
}

.string-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above background */
    pointer-events: none;
    /* Let the Section handle the events */
}

.onboard-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.onboard-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 20%);
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    /* Above SVG */
    max-width: 800px;
    margin: 0 auto;

    /* Trick: Allow mouse to pass through text to detect string movement */
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-dark);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.onboard-header h2 {
    font-size: 3.5rem;
    font-weight: 350;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.onboard-header h2 .highlight {
    font-weight: 900;
}

.onboard-header p {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    color: var(--background);
    line-height: 1.2;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.content-wrapper .btn,
.content-wrapper a {
    pointer-events: auto;
}

.btn {
    padding: 1rem 2rem;
    border-radius: calc(0.375em * 2);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--background);
    color: var(--aw-blue);
}

.btn-primary:hover {
    background-color: var(--text-color);
}

/* =========================================
   10. FOOTER
   ========================================= */
#footer-wrapper {
    margin-bottom: 2rem;
}

.footer-logos-container {
    margin-block: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    padding: .75rem;
}

.footer-logos {
    opacity: .3;
    height: 50px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: .25s ease-in-out;
    filter: brightness(0);
}

.footer-logos:hover {
    opacity: 1;
}

.startuptribe {
    transform: translateY(17px);
}

.footer-container {
    margin: 2.5rem;
    padding-bottom: 0 !important;
    border-radius: 2rem;
    background-color: var(--aw-blue);
    color: #495057;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.footer-content {
    padding: 2em;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
}

.footer-links,
.social-icons {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
    flex-direction: column;
}

.footer-links a,
.social-icons a {
    color: var(--background);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover,
.social-icons a:hover {
    text-decoration: underline;
}

.footer-title-svg {
    margin-bottom: -2vw;
    opacity: 1;
    width: 100%;
    display: block;
    will-change: transform, opacity;
}

/* =========================================
   11. ABOUT PAGE SPECIFIC
   ========================================= */
.awwwards-section {
    position: relative;
    width: 100%;
    color: var(--text-color);
    overflow: hidden;
    padding-bottom: 10vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-text-about {
    padding-top: 15vh;
    padding-bottom: 10vh;
    border-bottom: 1px solid rgba(150, 150, 150, 0.2);
}

.big-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0;
    opacity: 1;
}

.content-grid {
    display: grid;
    gap: 4rem;
    padding-top: 5rem;
}

.sticky-label {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.label-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

div>strong {
    font-size: larger;
}

.label-text::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--aw-blue);
    border-radius: 50%;
}

.reveal-paragraph {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.word {
    position: relative;
    display: inline-block;
    will-change: opacity;
}

.sonder-definition {
    margin: 8rem 0;
    padding: 4rem;
    background: var(--aw-blue);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
}

.phonetic {
    font-family: monospace;
    opacity: 0.6;
    margin-bottom: 1rem;
    display: block;
}

.def-text {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 300;
    will-change: opacity, transform;
    color: var(--background);
}

/* =========================================
   12. 404 PAGE
   ========================================= */
.full-screen-section {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.gradient-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.not-found-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    gap: .5rem;
    z-index: 10;
}

.not-found-text {
    color: var(--text-color);
    text-align: center;
}

.fourzerofour {
    font-size: 2.5rem;
    font-weight: 800;
}

.back-home {
    margin-top: 1rem;
}

.home-button {
    display: inline-block;
    padding: 0.75rem 1.3rem;
    color: var(--text-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   13. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1000px) {

    .string-svg {
        display: none;
    }
}

/* Laptops */
@media (max-width: 1300px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
        margin: 1rem;
        height: auto;
        min-height: 95svh;
        justify-content: flex-start;
        gap: 3rem;
    }

    .hero-text-wrapper {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        margin-top: 5rem;
    }
}

/* Tablets/Mobile */
@media (max-width: 900px) {

    /* Hero */
    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
        margin: 1rem;
        height: auto;
        min-height: 95svh;
        justify-content: flex-start;
        gap: 3rem;
    }

    .hero-desc {

        max-width: 315px !important;

    }

    .hero-text-wrapper {
        order: 1;
        justify-content: start;
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        margin-top: 6rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        padding-left: 0;
        margin-top: -2rem;
        /* Pulls it closer to text if needed */
        justify-content: center;
    }

    .iphone-mockup {
        max-height: 50vh;
        /* Adjust size for mobile screens */
        width: auto;
    }



    /* Footer */
    .footer-container {
        margin: 0.75rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .social-icons {
        align-items: flex-end;
    }

    .footer-logos-container {
        flex-direction: column;
    }

    /* About */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .big-title {
        font-size: 18vw;
    }

    .sonder-definition {
        padding: 1.5rem;
        margin: 4rem 0;
    }

    /* Menu */
    .menu-items .col-lg {
        display: none;
    }

    .menu-footer .col-sm {
        display: none;
    }

    /* Hide specific desktop elements */
    nav {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {


    .onboard-header h2 {
        font-size: 2rem;
        font-weight: 350;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    /* Content sections padding */
    .onboard-section,
    .content-section,
    .how-section,
    .stories-section,
    .faq-section {
        margin: 3rem 0.75rem;
        padding: 2rem 0.75rem;
    }

    .feature-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .step-grid {
        flex-direction: column;
    }

    .arrow-icon {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .testimonial-card,
    .feature-card,
    .step-card {
        width: 100%;
    }

    /* FAQ Mobile Overrides */
    .faq-question {
        pointer-events: none;
        padding-bottom: 0.75rem;
    }

    .faq-icon {
        display: none;
    }

    .faq-answer-wrapper {
        grid-template-rows: 1fr !important;
    }
}

/* =========================================
   14. PAGE TRANSITIONS (View Transition API)
   ========================================= */

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 1.5s;
    /* Adjusted to match your slower, smoother vibe */
    mix-blend-mode: normal;
}

/* The exiting page moves up and fades out */
@keyframes move-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-35%);
    }
}

/* The entering page reveals itself via clip-path from bottom */
@keyframes move-in {
    from {
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    to {
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
    }
}

::view-transition-old(root) {
    animation: 1.5s cubic-bezier(0.87, 0, 0.13, 1) both move-out;
}

::view-transition-new(root) {
    animation: 1.5s cubic-bezier(0.87, 0, 0.13, 1) both move-in;
}

/* Ensure the wrapper doesn't jump during transition */
body {
    contain: paint;
}

/* =========================================
   15. INTRO LOADER
   ========================================= */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background-color: var(--bg-dark);
    z-index: 9999;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    /* Adjust based on your logo size */
}

/* SVG Styling for Animation */
.intro-logo {
    width: 100%;
    height: auto;
    max-width: 200px;
    /* Adjust size */
    margin-bottom: 2rem;
    overflow: visible;
}

.intro-logo path,
.intro-logo polygon,
.intro-logo rect,
.intro-logo circle {
    fill-opacity: 0;
    /* Start transparent for fill */
    stroke: var(--text-color);
    /* Your text color */
    stroke-width: 1px;
    /* Adjust thickness */
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    /* Keeps stroke consistent on resize */
}

/* Loading Bar */
.loader-bar-wrapper {
    width: 150px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0%;
    /* JS will animate this */
    height: 100%;
    background-color: var(--aw-blue);
    position: absolute;
    top: 0;
    left: 0;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

section .titlee {
    background: linear-gradient(to bottom, var(--foreground) 0%, var(--aw-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   STEPS GRID / PIPELINE SECTION
   ========================================= */

.modern-pipeline {
    display: flex;
    flex-direction: column;
    /* Vertical stack */
    gap: 0;
    max-width: 900px;
    margin: 4rem auto;
    position: relative;
}

/* The vertical glowing track */
.pipeline-track {
    position: absolute;
    left: 28px;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(0, 117, 175, 0) 0%,
            rgba(0, 117, 175, 0.5) 15%,
            rgba(0, 117, 175, 0.5) 85%,
            rgba(0, 117, 175, 0) 100%);
    z-index: 0;
}

.pipeline-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    group: transition;
}

/* Markers on the track */
.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.marker-dot {
    width: 12px;
    height: 12px;
    margin-right: 1px;
    background: var(--aw-blue);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-top: 1.5rem;
    /* Align with content top */
    transition: all 0.3s ease;
}

.pipeline-card:hover .marker-dot {
    background: var(--aw-blue);
    border-color: var(--aw-blue);
    box-shadow: 0 0 15px var(--aw-blue);
}

/* The Content Box */
.pipeline-content {
    flex: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid transparent;
    border-radius: 12px;
    padding-top: 1rem;
    padding-bottom: 2rem;
    padding-right: 2rem;
    padding-left: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.pipeline-card:hover .pipeline-content {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%);
    transform: translateX(10px);
}

/* Big Index Number */
.step-index {
    position: absolute;
    right: 2rem;
    top: 1rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.pipeline-card:hover .step-index {
    color: rgba(255, 255, 255, 0.05);
}

/* Visual Icon Box */
.step-visual {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--background) 0%, var(--aw-blue) 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--background);
}

.step-visual svg {
    width: 32px;
    height: 32px;
}

.step-text {
    text-align: left;
}

.step-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.step-text p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

/* Mobile Responsiveness for Pipeline */
@media (max-width: 768px) {
    .pipeline-track {
        display: none;
    }

    .step-marker {
        display: none;
    }

    .pipeline-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-visual {
        margin-bottom: 0.5rem;
    }

    .step-index {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Icon Base Styles */
.list-icon,
.title-icon {
    display: inline-block;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.title-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.list-icon {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    /* Aligns with first line of text */
    filter: invert(32%) sepia(85%) saturate(1838%) hue-rotate(178deg) brightness(95%) contrast(101%);
    /* Matches --aw-blue */
}

/* User Icons */
.icon-sparkles {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M3 5h4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E");
}

.icon-target {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}

.icon-users {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.icon-zap {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

.icon-trend {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E");
}

/* Company Icons */
.icon-briefcase {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

.icon-eye {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.icon-compass {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E");
}

.icon-layers {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

.icon-mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3C/svg%3E");
}

.icon-heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}

/* =========================================
   16. FLOATING UI HERO ANIMATION
   ========================================= */

/* Important: Apply perspective to the parent container */
.hero-visual {
    perspective: 1500px;
    /* Ensure the 3D tilt works */
    transform-style: preserve-3d;
}

.ui-container {
    width: 380px;
    height: 720px;
    position: relative;
    transform-style: preserve-3d;
    /* Scales the phone down slightly on smaller laptops if needed */
    transform: scale(0.9);
}

.interface-surface {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f8f9fbd1;
    /* Glass/Floating Effect */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateZ(0px);
}

.app-layout {
    padding: 40px 20px 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    /* ADDED: Prevent horizontal scrolling on the main container */
    overflow-x: hidden;
    scrollbar-width: none;
    width: 100%;
    /* Ensure it respects parent width */
}

.app-layout::-webkit-scrollbar {
    display: none;
}

/* Chat Components */
.chat-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.bubble {
    padding: 16px 22px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    opacity: 0;
    transform: translateY(10px);
}

.bubble.user {
    align-self: flex-end;
    background: #ffffff;
    border-radius: 24px 24px 4px 24px;
    color: #111;
    font-weight: 500;
}

.bubble.system {
    align-self: flex-start;
    background: #d0eefc;
    border-radius: 4px 24px 24px 24px;
    color: #1f2937;
    display: none;
}

/* Thinking State */
.thinking-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    opacity: 0;
    display: none;
    margin-left: 5px;
}

.thinking-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: spin 3s linear infinite;
}

.thinking-text {
    color: #4f6df5;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Cards Components */
.cards-container {
    display: flex;
    width: 100%;
    padding-bottom: 10px;
    overflow: hidden;
    /* Constrain width to parent */
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    /* Ensure it sits on top for touch events */
}

.cards-scroll {
    display: flex;
    gap: 15px;
    width: 100%;
    opacity: 0;

    /* ADDED: Horizontal Scroll Logic */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */

    /* Padding to prevent shadows from being cut off */
    padding: 10px 5px 20px 5px;

    /* Hide scrollbar for clean UI */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

/* Specific card class to avoid conflicts with feature-card */
.hero-visual .card {
    /* ADDED: Prevent cards from shrinking */
    flex-shrink: 0;
    width: 260px;
    /* Fixed width to force scrolling */

    background: #fff;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid transparent;

    /* REMOVED: transform: translateZ(30px); (Flattened for scroll) */
    /* You can keep translateZ if you remove overflow from parent, 
       but for reliable scrolling, flat is safer. */
    display: block;
}

.hero-visual .card.active {
    border-color: #0076b5;
    box-shadow: 0 0 0 1px #0076b5, 0 12px 30px rgba(0, 118, 181, 0.15);
}

.hero-visual .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    height: 70px;
    z-index: 5;
    transform: translateZ(15px);
    background: transparent;
    /* Override global badge style */
    padding: 0;
}

.badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.card-header {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: baseline;
    /* Center items horizontally */
    text-align: center;
    /* Center the text itself */
    gap: 10px;
    /* Spacing between image and text */
    margin-bottom: 20px;
    width: 100%;
}

.avatar-frame {
    width: 70px;
    /* Slightly larger for this layout */
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: white;
    border: 1px solid #e5e7eb;
    /* Ensure image doesn't squash */
    flex-shrink: 0;
}

.hero-visual .card.active .avatar-frame {
    border-color: #0076b5;
    box-shadow: 0 4px 12px rgba(0, 118, 181, 0.15);
    /* Add glow to active avatar */
}

/* Adjust text margins */
.user-name {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0 0 0;
    color: #111;
}

.user-role {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.user-role {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 12px 0 6px 0;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
}

.hero-visual .card.active .tag {
    background: #eef2ff;
    color: #1f2937;
}

.btn-connect {
    width: 100%;
    background: #0076b5;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-connect:active {
    transform: scale(0.98);
}

@media (max-width: 900px) {
    .ui-container {
        /* Scale down on mobile to fit */
        transform: scale(0.75);
    }

    .hero-visual .user-role,
    .hero-visual .section-title,
    .hero-visual .tag,
    .hero-visual .btn-connect,
    .hero-visual .user-name {
        /* HACK: Physically add pixel width to the font characters */
        -webkit-text-stroke: 0.25px currentcolor;

        /* HACK: Force text to render on its own GPU layer, preventing "flattening" */
        transform: translateZ(1px);
        -webkit-transform: translateZ(1px);

        /* HACK: Ensure opacity is absolute */
        opacity: 1 !important;

        /* Ensure font smoothing is standard, not "thin" */
        -webkit-font-smoothing: antialiased !important;
    }

    /* 2. Specific Tweaks for the smallest text (Section Titles & Roles) */
    .hero-visual .user-role,
    .hero-visual .section-title {
        /* Since these are scaled down to ~7.5px, we need to fake a bolder weight */
        font-weight: 700 !important;

        /* Darken the gray significantly for mobile contrast */
        color: #4b5563 !important;

        /* Slightly thicker stroke for the smallest text */
        -webkit-text-stroke: 0.35px currentcolor;
    }

    .hero-visual .section-title {
        font-size: 12px !important;
        /* Was 10px */
    }

    .hero-visual .user-role {
        font-size: 14px !important;
        /* Was 13px */
    }

    .hero-visual .thinking-text, .badge {
        /* 1. Physically thicken the blue text lines */
        -webkit-text-stroke: 0.3px currentcolor;

        /* 2. Force it onto its own 3D layer to stop flattening */
        transform: translateZ(1px);
        -webkit-transform: translateZ(1px);

        /* 3. Force a heavier weight */
        font-weight: 700 !important;

        /* 4. Ensure opacity and smoothing are locked */
        opacity: 1 !important;
        -webkit-font-smoothing: antialiased !important;
    }

    .hero-visual .thinking-text {
        /* 
           The UI is scaled to 0.75 on mobile.
           13px * 0.75 = 9.75px (Too small for iOS to render cleanly).
           Bumping to 15px results in ~11.25px visible size.
        */
        font-size: 15px !important;
    }
}