:root {
    --bg-primary: #ffffff;
    /* Soft, futuristic dual-color mix: Light Cyan and Soft Lavender */
    --color-1: #e0f2fe; /* Light Cyan */
    --color-2: #f5f3ff; /* Soft Lavender */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #6366f1; /* Futuristic Indigo */
    --border: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    
    --yellow: #facc15;
    --purple: #a855f7;
    --green: #22c55e;
    --blue: #3b82f6;
    --orange: #f97316;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    /* Mesh gradient effect for futuristic look */
    background: 
        radial-gradient(at 0% 0%, var(--color-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--color-2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--color-1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--color-2) 0px, transparent 50%),
        #ffffff;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2.5rem;
    position: sticky;
    top: 1.5rem;
    margin: 0 auto 2rem;
    width: 98%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Tighter logo and text */
    text-decoration: none;
}

.brand-icon {
    height: 2.2rem; /* Matches text height better */
    width: auto;
}

.hero-brand-icon {
    height: 4.8rem; /* Matches hero text height better */
    width: auto;
    margin-right: 1.2rem;
}

.glass-bg {
    background: 
        radial-gradient(at 0% 0%, var(--color-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--color-2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--color-1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--color-2) 0px, transparent 50%),
        #ffffff;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #000000;
    background-clip: text;
    -webkit-background-clip: text;
}

.logo-subtext, .logo-houst-ai {
    font-family: 'Outfit', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 6px;
    color: var(--text-secondary);
    opacity: 0.8;
    text-transform: uppercase;
}

.help-btn {
    padding: 0.6rem 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
}

.back-link:hover {
    transform: translateX(-5px);
    background: #fff;
    color: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.back-link svg {
    transition: transform 0.4s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.help-btn:hover::before {
    left: 100%;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    min-height: 5.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.hero-logo, #typing-text {
    background: linear-gradient(135deg, #1e293b, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for some browsers */
}

.hero-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    flex: none;
}

.typing-container {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    min-width: 15rem; /* Sufficient space for longest text */
    position: relative;
    text-align: left;
    margin-bottom: -4px; /* Optical adjustment for baseline */
}

#typing-text {
    display: inline-block;
    position: relative;
    opacity: 1;
    line-height: 1.25em;
    font-size: 0.85em; /* Slightly smaller than the brand name */
    font-weight: 500;
}

/* Animations will be handled by GSAP */

/* Hide cursor for the hero slide animation */
.hero .cursor {
    display: none;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -1rem; /* Pull closer to the heading */
    margin-bottom: 2rem;
    letter-spacing: 1px;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero-chat-container {
    margin-top: 4.5rem; /* Increase space from h1 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-pill {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    width: 95%;
}

.tool-card .badge.beta {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    background: rgba(56, 189, 248, 0.1);
    color: #0ea5e9;
    vertical-align: middle;
    margin-left: 8px;
}

.card-corner-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 1px;
    background: #ecfdf5; /* Soft Green */
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.1);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.pill-metadata {
    position: absolute;
    top: -12px;
    left: 30px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

.status-tag, .model-badge {
    position: static; /* Let the container handle positioning */
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.status-tag.coming-soon {
    font-family: 'Courier New', Courier, monospace; /* Distinct techy font */
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(0,0,0,0.05);
}

.model-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.chat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-icon svg {
    width: 20px;
    height: 20px;
}

.chat-content {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
    align-items: center;
    min-width: 0;
}

.chat-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

.chat-label {
    font-weight: 700;
    color: #1e293b;
}

.chat-placeholder {
    color: #64748b;
}

.chat-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #1e293b;
    border: 1px solid rgba(30, 41, 59, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chat-btn:hover {
    background: #fff;
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-subline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.cursor {
    color: #38bdf8;
    -webkit-text-fill-color: #38bdf8;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    font-weight: 300;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    text-decoration: none;
    color: inherit;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.2);
}

.tool-card:hover::after {
    opacity: 1;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px; /* Smoother squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.icon-circle svg {
    width: 28px;
    height: 28px;
    color: white;
}

.icon-circle.blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.icon-circle.purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.icon-circle.green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.icon-circle.orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.icon-circle.dark-yellow { background: linear-gradient(135deg, #facc15, #eab308); }

.card-content {
    z-index: 2;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

footer {
    position: relative;
    padding: 3rem 4rem 1.5rem;
    background: transparent;
    margin-top: 3rem;
    overflow: hidden;
}

.footer-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    perspective: 800px;
    transform: rotateX(60deg);
    mask-image: linear-gradient(to bottom, transparent, black 40%, transparent);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logos {
    flex: 1;
}

.logo-mbition {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #0f172a, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo-subtext {
    font-size: 0.6rem; /* Small as requested */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569;
    opacity: 0.8;
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 5rem;
    flex: 2;
}

.link-group h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6366f1;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 0.5rem;
}

.link-group ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.footer-icon-small {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    margin-left: 4px;
    transition: all 0.3s;
}

.link-group ul li a:hover .footer-icon-small {
    opacity: 1;
    color: #6366f1;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.industry-icons {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    align-items: center;
}

.ind-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ind-icon-wrapper img {
    width: 14px; /* Smaller to align with font size */
    height: 14px;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ind-icon-wrapper:hover img {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    header { padding: 1.5rem 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 3rem; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .tools-grid { grid-template-columns: 1fr; }
}
