/* ===================================
   INSTANT AI - Bold Scandinavian Design
   =================================== */

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #808080;
    --dark-gray: #1a1a1a;
}

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

::selection {
    background-color: #19cbc6;
    color: #000000;
}

::-moz-selection {
    background-color: #19cbc6;
    color: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: brightness(0) invert(1);
}

.logo-img {
    height: 25.6px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 60px;
    align-items: center;
}

.nav-links a {
    color: #838383;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2fbdb8;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #2fbdb8;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    padding: 12px 32px;
    border: 2px solid #838383;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-contact::after {
    display: none !important;
}

.btn-contact:hover {
    background-color: var(--black);
    color: var(--black);
    opacity: 1;
    border: 2px solid #20a6a2;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 80px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.webm-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24vw;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: contain;
    z-index: 20;
    opacity: 0;
    animation: fadeIn 1s ease 0.2s forwards;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 2;
}

.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 15;
    opacity: 1;
    transition: opacity 2s ease;
    pointer-events: none;
}

.video-loading-overlay.loaded {
    opacity: 0;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    position: relative;
    margin-top:-15%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(180px, 30vw, 1500px);
    font-weight: 900;
    line-height: 0.7;
    letter-spacing: 3.97em;
    margin-bottom: -56%;
    position: relative;
}

.title-line {
    display: block;
    color: transparent;
    position: relative;
    z-index: 1;
}

.title-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    mask: url(#text-mask);
    -webkit-mask: url(#text-mask);
}

.title-video-overlay iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(calc(-50% + 200px), calc(-50% + 100px));
    pointer-events: none;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    color: #838383;
    margin-bottom: 0%;
    margin-top: 100% !important;
    opacity: 0;
    padding: 20px 40px;
    border-radius: 4px;
    display: inline-block;
    transition: opacity 0.1s ease;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button {
    display: inline-block;
    padding: 20px 60px;
    background-color: #838383;
    color: var(--black);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    margin-top: 40px;
    transition: all 0.3s ease;
    opacity: 0;
    position: relative;
    z-index: 100;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button:hover {
    background-color: #2fbdb8;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 189, 184, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    color: #838383;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #838383 0%, transparent 100%);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: 160px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 100px;
    position: relative;
    z-index: 10000;
}

.section-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background-color: var(--black);
    position: relative;
    overflow: hidden;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090909;
    z-index: 0;
    pointer-events: none;
    opacity: 1.0;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.about-content {
    display: grid;
    gap: 100px;
    position: relative;
    z-index: 2;
}

.about-text-large {
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.stat {
    border-top: 2px solid var(--white);
    padding-top: 30px;
}

.stat h3 {
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.stat p {
    font-size: 18px;
    color: var(--gray);
    letter-spacing: 1px;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */

.products {
    background-color: var(--dark-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2px;
    background-color: var(--black);
}

.product-card {
    background-color: #131313;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.product-card:hover {
    background-color: var(--black);
    transform: translateY(-10px);
}

.product-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 2px;
}

.product-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 20px 0;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    flex-grow: 1;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: gap 0.3s ease;
}

.product-card:hover .product-link {
    gap: 20px;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 200px 80px;
    position: relative;
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222121;
    z-index: 0;
    pointer-events: none;
    opacity: 1.0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    position: relative;
    z-index: 10000;
}

.cta-text {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10000;
}

.cta-button-large {
    display: inline-block;
    padding: 24px 80px;
    background-color: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-button-large:hover {
    background-color: transparent;
    color: var(--white);
    outline: 2px solid var(--white);
    outline-offset: -2px;
}

.cta-contact-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 10000;
    margin-top: 60px;
}

.contact-info-item {
    text-align: center;
}

.contact-info-item h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.contact-info-item a {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #2fbdb8;
}

.contact-email-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2fbdb8;
    color: #000000;
    text-decoration: none;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
    cursor: pointer;
    pointer-events: auto;
}

.contact-email-button:hover {
    background-color: #19cbc6;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 189, 184, 0.3);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--black);
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 100px;
    margin-bottom: 0px;
    padding-bottom: 80px;
    border-bottom: 1px solid #333;
}

.footer-brand h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--gray);
    font-size: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--gray);
}

.footer-column a {
    display: block;
    width: fit-content;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-column a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #2fbdb8;
    transition: width 0.3s ease;
}

.footer-column a:hover {
    color: #2fbdb8;
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-contact-link {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #fe705d;
    transition: width 0.3s ease;
}

.footer-contact-link:hover {
    color: #fe705d;
}

.footer-contact-link:hover::after {
    width: 100%;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 145px;
    padding: 26px;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
    margin-bottom: 60px;
}

.footer-logos img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
}

.footer-icon {
    width: 40px;
    height: auto;
    margin-bottom: 20px;
    opacity: 1;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        transform: scaleY(0.5);
        transform-origin: bottom;
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes text-glow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(47, 189, 184, 0.3),
            0 0 40px rgba(47, 189, 184, 0.2),
            0 0 60px rgba(47, 189, 184, 0.1);
    }
    50% {
        text-shadow:
            0 0 30px rgba(47, 189, 184, 0.6),
            0 0 60px rgba(47, 189, 184, 0.4),
            0 0 90px rgba(47, 189, 184, 0.2),
            0 0 120px rgba(47, 189, 184, 0.1);
    }
}

@keyframes color-shift {
    0% {
        color: #fff;
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    }
    25% {
        color: #2fbdb8;
        text-shadow: 0 0 40px rgba(47, 189, 184, 0.5);
    }
    50% {
        color: #8ce3c7;
        text-shadow: 0 0 40px rgba(140, 227, 199, 0.5);
    }
    75% {
        color: #2fbdb8;
        text-shadow: 0 0 40px rgba(47, 189, 184, 0.5);
    }
    100% {
        color: #fff;
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

/* ===================================
   PRODUCT PAGES
   =================================== */

.product-hero {
    padding: 200px 0 120px;
    background-color: var(--black);
}

.product-hero-content {
    max-width: 900px;
}

.product-hero .product-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 30px;
}

.product-hero-title {
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.product-hero-subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.5;
    color: var(--gray);
}

.product-details {
    padding: 120px 0;
    background-color: var(--dark-gray);
}

.product-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.product-detail h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: 20px;
}

.product-detail p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

.product-features {
    padding: 120px 0;
    background-color: var(--black);
}

.product-features .section-title {
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 60px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    list-style: none;
}

.features-list li {
    font-size: 18px;
    padding: 30px;
    background-color: var(--dark-gray);
    border-left: 4px solid var(--white);
    transition: transform 0.3s ease;
}

.features-list li:hover {
    transform: translateX(10px);
}

/* ===================================
   PEOPLE & INVESTORS PAGES
   =================================== */

.page-hero {
    padding: 200px 0 120px;
    background-color: var(--black);
}

.page-hero-title {
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.page-hero-subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.5;
    color: var(--gray);
    max-width: 800px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #2fbdb8;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #19cbc6;
}

.team-grid,
.investors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    padding: 120px 0;
}

.team-member,
.investor-card {
    background-color: var(--dark-gray);
    padding: 60px;
    transition: transform 0.3s ease;
}

.team-member:hover,
.investor-card:hover {
    transform: translateY(-10px);
}

.team-member-name,
.investor-name {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 10px;
}

.team-member-role,
.investor-type {
    font-size: 18px;
    color: #2fbdb8;
    margin-bottom: 10px;
}

.read-more-link {
    display: inline-block;
    font-size: 12px;
    color: var(--white);
    text-decoration: underline;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #2fbdb8;
}

.team-member-bio,
.investor-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    background-color: var(--dark-gray);
    border: 1px solid #333;
    color: var(--white);
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2fbdb8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button-large {
    margin-top: 16px;
    cursor: pointer;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .container,
    .nav-container,
    .hero {
        padding-left: 40px;
        padding-right: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container,
    .hero {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav {
        padding: 24px 0;
    }

    .logo-img {
        height: 24px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .btn-contact {
        padding: 10px 24px;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 60px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-card {
        padding: 40px;
    }

    .product-hero,
    .page-hero {
        padding: 140px 0 80px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .investors-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-member,
    .investor-card {
        padding: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section {
        padding: 100px 24px;
    }

    .cta-contact-info {
        flex-direction: column;
        gap: 40px;
    }

    /* Make video more discreet on mobile */
    .video-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.8) 50%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 60px;
    }

    .nav-links {
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
