/* ===================================
   FLOWMATE - Landing Page Styles
   =================================== */

/* CSS Variables */
:root {
    --color-bg: #F5F4F2;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-text-muted: rgba(0, 0, 0, 0.2);
    --color-border: rgba(0, 0, 0, 0.2);
    --color-white-muted: rgba(245, 244, 242, 0.2);
    
    --font-primary: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --border-radius-sm: 26px;
    --border-radius-md: 70px;
    --border-radius-lg: 90px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 700;
    background-color: var(--color-bg);
    color: var(--color-black);
    line-height: 1.3;
    overflow-x: hidden;
    cursor: default;
    text-rendering: geometricPrecision;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth Scroll Container */
#smooth-wrapper {
    overflow: hidden;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#smooth-content {
    overflow: visible;
    width: 100%;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-cursor span {
    font-size: 10px;
    letter-spacing: -0.01em;
    color: var(--color-white);
    text-transform: uppercase;
}

.custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Hide default cursor in hero when custom cursor is active */
.hero.cursor-active {
    cursor: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.3rem 2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-border);
}

.btn-primary:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white-muted);
}

.btn-ghost:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.3rem 3rem;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.2;
    color: inherit;
    text-decoration: none;
}

.checkmate-icon {
    width: 40px;
    height: 40px;
}

.powered-by span {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

.header-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.logo-container {
    background: var(--color-white);
    padding: 1.3rem 2rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}

.header-center .btn-primary {
    padding: 1.3rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.header-center .btn-primary:hover {
    background: rgba(0, 0, 0, 0.85);
    color: var(--color-white);
}

.logo {
    height: 20px;
    width: auto;
}

.header-tagline {
    justify-self: end;
    text-align: right;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 50%;
    left: 3rem;
    right: 3rem;
    width: calc(100% - 6rem);
    transform: translateY(-50%);
    height: 70vh;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-title {
    position: relative;
    z-index: 10;
    font-size: clamp(2.25rem, 7vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 100%;
    color: var(--color-white);
    /* mix-blend-mode: difference; */
    margin: 0;
    padding: 0 3rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(100%);
}

/* Play-knap under titel – kun synlig på mobile (se @media 768px) */
.hero-play-btn {
    display: none;
}

/* Vimeo Container - direct child of body so position:fixed works in viewport */
.vimeo-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vimeo-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vimeo-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-video:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* ===================================
   TEXT BLOCK SECTION
   =================================== */
.text-block {
    padding: 10rem 3rem;
    display: flex;
    justify-content: flex-end;
}

.text-block-content {
    position: relative;
    max-width: 650px;
    background: var(--color-bg);
    padding: 30px 50px;
    border-radius: 70px 0 70px 70px;
    z-index: 999;
}

/* Shape fra before_curve.svg – kurve indad, ret vinkel mod højre */
.text-block-content::before {
    content: '';
    position: absolute;
    top: -87px;
    right: -1px;
    width: 90px;
    height: 90px;
    background-image: url('assets/before_curve.svg');
    background-repeat: no-repeat;
    background-size: 71px 75px;
    background-position: 100% 100%;
    z-index: -1;
}

.description {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    text-align: justify;
}

/* ===================================
   BENEFITS SECTION
   =================================== */
.benefits {
    padding: 8rem 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 90%;
    margin: 0 auto;
}

.benefit-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 1rem;
}

.benefit-text {
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #6b6b6b;
    margin: 0;
    max-width: 50%;
}

/* ===================================
   FULL WIDTH VIDEO SECTION
   =================================== */
.fullwidth-video {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 3rem;
    overflow: hidden;
}

.fullwidth-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.fullwidth-content {
    text-align: center;
    color: var(--color-white);
    max-width: 1200px;
}

.section-label {
    display: block;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.fullwidth-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

/* ===================================
   QUOTES SECTION
   =================================== */
.quotes {
    padding: 10rem 3rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quote-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.quote-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 2rem;
    overflow: hidden;
    flex-shrink: 0;
    align-self: center;
}

.quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-text {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    flex-grow: 1;
}

.quote-author {
    margin-top: 2rem;
    opacity: 0.5;
}

.author-name,
.author-role {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ===================================
   CMS SECTION
   =================================== */
.cms-section {
    padding: 10rem 3rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.cms-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.cms-description {
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.cms-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.cms-logo {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.cms-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.cms-divider {
    width: 1px;
    height: 80px;
    background: var(--color-border);
}

/* ===================================
   PREFOOTER SECTION – infinite scroll højre → venstre
   =================================== */
.prefooter {
    padding: 6rem 0 0;
    overflow: hidden;
}

.prefooter-track {
    display: flex;
    width: max-content;
    animation: prefooter-scroll 90s linear infinite;
    will-change: transform;
}

.prefooter-set {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    flex-shrink: 0;
    padding: 0 2rem;
}

.prefooter-image {
    flex-shrink: 0;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
    overflow: hidden;
    line-height: 0;
}

.prefooter-image img {
    height: 140px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    display: block;
}

.prefooter-image.large img {
    height: 200px;
}

.prefooter-image.small img {
    height: 100px;
}

@keyframes prefooter-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-black);
    color: var(--color-bg);
    padding: 10rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    min-height: 50vh;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo img,
.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a,
.footer-contact span {
    font-size: 0.9rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: auto;
    padding-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    opacity: 0.5;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    opacity: 1;
}

.footer-divider {
    margin: 0 2rem;
}

/* ===================================
   ANIMATIONS - Split Text Masks
   =================================== */
[data-split-mask="lines"] .line {
    overflow: hidden;
}

[data-split-mask="lines"] .line-inner {
    display: block;
    transform: translateY(100%);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .header {
        padding: 1.5rem 2rem;
    }
    
    .header-tagline {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6.5vw, 6.5rem);
    }
}

@media (max-width: 992px) {
    .benefits-grid,
    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card,
    .quote-card {
        min-height: auto;
    }
    
    .benefit-text {
        max-width: 100%;
    }
    
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left,
    .header-tagline {
        display: none;
    }
    
    .header-center {
        width: 100%;
        justify-content: center;
    }
    
    .logo-container {
        text-align: center;
    }
    
    .hero {
        padding: 0 1.5rem;
    }
    
    .hero-video-container {
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
        height: 65vh;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 9vw, 3.5rem);
        padding: 0 1.5rem;
    }
    
    .text-block,
    .benefits,
    .quotes,
    .cms-section,
    .footer {
        padding: 6rem 1rem;
    }

    .prefooter {
        padding: 6rem 1rem 0;
    }
    
    .fullwidth-video {
        padding: 6rem 1.5rem;
        min-height: 60vh;
    }
    
    .cms-logos {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cms-divider {
        width: 80px;
        height: 1px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }
    
    .footer-contact {
        text-align: center;
        align-items: center;
    }
    
    /* PLAY som CTA under titel på mobile (blur-effekt som de andre knapper) */
    .custom-cursor {
        display: none;
    }
    .hero-play-btn {
        display: inline-flex;
        position: relative;
        z-index: 10;
        margin-top: 1.5rem;
        margin-left: 1.5rem;
        padding: 1.2rem 2rem;
        font-family: var(--font-primary);
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        color: var(--color-white);
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: var(--border-radius-sm);
        cursor: pointer;
        transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        border: 0;
        width: fit-content;
    }
    .hero-play-btn:hover,
    .hero-play-btn:focus-visible {
        background: rgba(255, 255, 255, 0.95);
        color: var(--color-black);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 11vw, 2.5rem);
    }
    
    .description,
    .fullwidth-title,
    .quote-text {
        font-size: 1.2rem;
    }
    
    .benefit-title {
        font-size: 1.5rem;
    }
    
    .cms-title {
        font-size: 1.8rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
