:root {
    --bg-color: #0b0c10;
    --text-color: #c5c6c7;
    --accent-color: #66fcf1;
    --accent-dark: #45a29e;
    --card-bg: rgba(31, 40, 51, 0.6);
    --border-color: rgba(102, 252, 241, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --umbrella-curve: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle Motif Background */
.motif-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: rgba(11, 12, 16, 0.85); /* Dark overlay to make text legible */
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(69, 162, 158, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center top, center center, center center;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

.accent {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Subtle arch underneath section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* subtle umbrella curve hint */
    opacity: 0.8;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.logo span {
    color: var(--accent-color);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 8rem 0;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.hero h1 {
    font-size: 5.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--accent-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero subtle curve - large umbrella canopy motif */
.hero-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: -1;
    pointer-events: none;
}

.subtle-curve {
    width: 100%;
    height: 40%;
    border-top: 2px solid rgba(102, 252, 241, 0.1);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: absolute;
    top: 5%;
    animation: float 8s ease-in-out infinite;
}

.glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(69, 162, 158, 0.15) 0%, transparent 60%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fixed Video Background */
.fixed-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2; /* Underneath everything */
    opacity: 1; /* Brighten it up so it is clear */
    filter: saturate(1.2) contrast(1.1);
    pointer-events: none;
}

/* About Section */
.about {
    background: linear-gradient(to bottom, transparent, rgba(31, 40, 51, 0.2), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), transparent 60%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s var(--umbrella-curve);
}

.about-image-container.visible {
    transform: translateY(0);
    opacity: 1;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    filter: contrast(1.05) brightness(0.95);
    transition: all 0.5s ease;
}

.about-image:hover {
    filter: contrast(1.1) brightness(1.1);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(102, 252, 241, 0.3); /* Subtle light from top */
    border-radius: 20px;
    padding: 3.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s var(--umbrella-curve);
}

.glass-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.glass-card p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.glass-card p strong {
    color: #fff;
}

.glass-card p:last-child {
    margin-bottom: 0;
}

/* App Ecosystem */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.app-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px);
    opacity: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.app-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-color));
    border-radius: 12px 12px 0 0; /* subtle arch top */
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: rgba(102, 252, 241, 0.4);
    background: rgba(31, 40, 51, 0.8);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card.disabled {
    opacity: 0.4;
    cursor: default;
}

.app-card.disabled:hover {
    transform: translateY(0);
    box-shadow: none;
    border-color: var(--border-color);
}

.app-card.disabled:hover::before {
    transform: scaleX(0);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 12px 12px / 50% 50% 12px 12px; /* Subtle umbrella shape */
    background: rgba(102, 252, 241, 0.05);
    border: 1px solid var(--accent-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.app-card:hover .app-icon {
    background: rgba(102, 252, 241, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
}

.cad-icon::after {
    content: '</>';
    color: var(--accent-color);
    font-weight: 800;
}

.app-card h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.app-card p {
    color: #a0a2a5;
    font-size: 1.05rem;
}

/* Contact */
.contact {
    text-align: center;
    padding-bottom: 10rem;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 300px;
    background: radial-gradient(ellipse at bottom, rgba(69, 162, 158, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.contact p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    color: #a0a2a5;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.3);
}

.btn-primary:hover::before {
    width: 100%;
}

footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

@media (max-width: 768px) {
    .motif-background, .fixed-video-bg {
        height: 100vh;
        height: 100dvh; /* Fixes iOS bottom-bar jump bug */
    }
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero .subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
    }
    .app-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(11, 12, 16, 0.95); /* Solid header to prevent overlapping text */
    }
    nav {
        display: flex; 
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    section.about, section.apps, section.contact {
        padding: 5rem 0; /* Radically reduced massive vertical spacing */
    }
    .apps-grid {
        grid-template-columns: 1fr; /* Prevent horizontal overflow on small phones */
    }
    .contact p {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
}
