/* ======================== FONT DECLARATIONS ======================== */
@font-face {
    font-family: 'Aeonik-Light';
    font-style: normal;
    font-weight: 100;
    src: url('/assets/fonts/aeonik-light.ttf') format('ttf');
    src: url('/assets/fonts/aeonik-light.woff') format('woff');
}

@font-face {
    font-family: 'Aeonik-Regular';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/aeonik-regular.ttf') format('ttf');
    src: url('/assets/fonts/aeonik-regular.woff') format('woff');
}

@font-face {
    font-family: 'Aeonik-Medium';
    font-style: medium;
    font-weight: 600;
    src: url('/assets/fonts/aeonik-regular.ttf') format('ttf');
    src: url('/assets/fonts/aeonik-regular.woff') format('woff');
}

@font-face {
    font-family: 'Aeonik-Bold';
    font-weight: 600;
    src: url('/assets/fonts/aeonik-bold.ttf') format('ttf');
    src: url('/assets/fonts/aeonik-bold.woff') format('woff');
}

/* ======================== CSS RESET ======================== */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ol,
ul,
li {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ======================== CSS VARIABLES ======================== */
:root {
    /* Colors */
    --color-blue: #0062FB;
    --color-baby-blue: #44C0FC;
    --color-grey: #666666;
    --color-light-grey: #CACACA;
    --color-white: #FFFFFF;
    --color-pink: #E1AAFD;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, var(--color-blue) 4.9%, var(--color-baby-blue) 24.61%, var(--color-pink) 57.11%, var(--color-blue) 90.4%);
    --gradient-secondary: linear-gradient(90deg, var(--color-blue) 0%, var(--color-pink) 40%);
    --gradient-shape: linear-gradient(151deg, var(--color-pink) 14.48%, var(--color-blue) 88.63%);
    --gradient-background-fallback: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Sizes */
    --ai-icon-size: min(102px, max(6vw, 84px));
    --chat-ai-icon-size: 80px;
    --input-field-height: 181px;

    /* Spacing */
    --container-max-width: 796px;
    --container-padding: 32px;
    --border-radius: 16px;
    --border-radius-small: 8px;

    /* Transitions */
    --transition-fast: 0.3s ease-in-out;
    --transition-medium: 0.5s ease-in-out;
    --transition-slow: 0.8s ease-in-out;
}

/* ======================== BASE STYLES ======================== */
html,
body {
    width: 100%;
    height: 100%;
    min-width: 220px;
    font-family: 'Aeonik-Regular', sans-serif;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: transparent;
    overflow: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

/* Firefox-spezifisches Styling (nur Firefox) */
@-moz-document url-prefix() {
    div {
        scrollbar-width: thin;
        scrollbar-color: var(--color-blue) rgba(255, 255, 255, 1);
    }
}

/* Webkit-basierte Browser (Chrome, Safari, Edge) */
div::-webkit-scrollbar {
    width: 8px;
}

div::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 1);
    border-radius: 3px;
}

div::-webkit-scrollbar-thumb {
    background: var(--gradient-shape);
    background-size: 400%;
    background-position: 100% 50%;
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ======================== TYPOGRAPHY ======================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Aeonik-Medium', sans-serif;
    color: var(--color-grey);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(202, 202, 202, 0.25);
    font-size: 64px;
    font-weight: 800;
    line-height: 100%;
}

p {
    font-family: 'Aeonik-Medium', sans-serif;
    color: var(--color-grey);
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
}




/* ======================== LANGUAGE SWITCHER ======================== */
.language-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    z-index: 1000;
}

.language-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 12px rgba(202, 202, 202, 0.3);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    overflow: hidden;

    margin: 0;
    padding: 0;
}

.language-btn:hover {
    transform: scale(1.05);
    box-shadow: 2px 6px 16px rgba(202, 202, 202, 0.4);
}

.flag-container {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all var(--transition-fast);

    display: flex;
    align-items: center;
    justify-content: center;
}

.flag img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

/* German Flag */
.flag-germany {
    opacity: 1;
    transform: rotateY(0deg);
    background: #000000;
}


/* English Flag (Union Jack) */
.flag-england {
    opacity: 0;
    transform: rotateY(180deg);
    background: #012169;
}

/* Language switch animation */
.language-switcher.switching .flag-germany {
    opacity: 0;
    transform: rotateY(-180deg);
}

.language-switcher.switching .flag-england {
    opacity: 1;
    transform: rotateY(0deg);
}

/* English state */
.language-switcher.english .flag-germany {
    opacity: 0;
    transform: rotateY(-180deg);
}

.language-switcher.english .flag-england {
    opacity: 1;
    transform: rotateY(0deg);
}

/* ======================== UTILITY CLASSES ======================== */
.no-transition {
    transition: none !important;
}

.no-transition * {
    transition: none !important;
}


/* ======================== BACKGROUND ======================== */
.video-background {
    position: fixed;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    opacity: 0.3;
    transform: rotate(90deg);
    z-index: -2;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hide native video controls on all browsers */
.video-background::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}

.video-background::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}

.video-background::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none;
}

.video-background::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.video-background::-moz-media-controls {
    display: none !important;
}

.video-background::-ms-media-controls {
    display: none !important;
}

/* Extra security for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .video-background {
        -webkit-playsinline: true;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
        pointer-events: none !important;
        z-index: -10 !important;
    }
}

.video-fallback {
    position: absolute;
    z-index: -100;
    width: 100%;
    height: 100%;
}

.fallback-background {
    z-index: -100;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(125px);
    -webkit-backdrop-filter: blur(125px);
    z-index: -1;
    transition: backdrop-filter var(--transition-medium);
}

/* ======================== FLOATING SHAPES ======================== */
#floating-shapes {
    position: absolute;
    top: 50vh;
    width: 100%;
    max-width: var(--container-max-width);
    height: 50vh;
    pointer-events: none;
    z-index: -2;
}

.shape {
    position: relative;
    border-radius: 50%;
    background: var(--gradient-shape);
    background-size: 200%;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite, gradientFloat 6s ease-in-out infinite;
}

.shape-formation-left {
    position: absolute;
    top: 25%;
    left: -15%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.shape--large {
    width: 200px;
    height: 200px;
    top: -32px;
    animation-delay: 0s;
}

.shape--medium {
    width: 80px;
    height: 80px;
    left: 40px;
    bottom: 16px;
    animation-delay: -2s;
}

.shape--small {
    width: 40px;
    height: 40px;
    left: 120px;
    bottom: 48px;
    animation-delay: -4s;
}

.shape-formation-left.grid-active {
    position: absolute;
    top: 0%;
    left: -40%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.shape-formation-left.grid-active .shape--large {
    width: 120px;
    height: 120px;
    top: -32px;
    animation-delay: 0s;
}

.shape-formation-left.grid-active .shape--medium {
    width: 55px;
    height: 55px;
    left: 60px;
    bottom: 16px;
    animation-delay: -2s;
}

.shape-formation-left.grid-active .shape--small {
    width: 25px;
    height: 25px;
    left: 70px;
    bottom: 200px;
    animation-delay: -4s;
}



.shape-formation-right {
    position: absolute;
    top: 10%;
    right: -15%;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: top var(--transition-slow);
}

#floating-shapes.chat-active .shape-formation-right {
    top: -40%;
}

.shape--large-right {
    width: 150px;
    height: 150px;
    animation-delay: -1s;
}

.shape--medium-right {
    width: 60px;
    height: 60px;
    top: 140px;
    right: 160px;
    animation-delay: -3s;
}

.shape-formation-right.grid-active {
    position: absolute;
    top: -100%;
    right: -40%;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: top var(--transition-slow);
}

.shape-formation-right.grid-active .shape--large-right {
    width: 110px;
    height: 110px;
    animation-delay: -1s;
}

.shape-formation-right.grid-active .shape--medium-right {
    width: 30px;
    height: 30px;
    top: 0px;
    right: 170px;
    animation-delay: -3s;
}


.shape-formation-bottom.grid-active {
    position: absolute;
    top: 0%;
    right: -65%;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: top var(--transition-slow);
}

.shape-formation-bottom.grid-active .shape--small-bottom {
    top: 140px;
    width: 40px;
    height: 40px;
    right: -60px;
    animation-delay: -1s;
}

.shape-formation-bottom.grid-active .shape--medium-bottom {
    width: 80px;
    height: 80px;
    top: 310px;
    right: 320px;
    animation-delay: -2s;
}

.shape-formation-bottom.grid-active .shape--large-bottom {
    width: 140px;
    height: 140px;
    top: 280px;
    right: 40px;
    animation-delay: -3s;
}


/* ======================== ANIMATIONS ======================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradientFloat {

    0%,
    100% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======================== Loader ======================== */

.loader, .loader:before, .loader:after {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  animation-fill-mode: both;
  animation: bblFadInOut 1.8s infinite ease-in-out;
}
.loader {
  color: var(--color-blue);
  font-size: 7px;
  position: relative;
  text-indent: -9999em;
  transform: translateZ(0);
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -12px;
  animation-delay: -0.32s;
}
.loader:after {
  left: 14px;
}

@keyframes bblFadInOut {
  0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
  40% { box-shadow: 0 2.5em 0 0 }
}


/* ======================== LAYOUT COMPONENTS ======================== */
.content-container {
    position: relative;
    z-index: 1;

    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: -64px;

    transition: margin-top var(--transition-slow);
}

.content-container.chat-active {
    margin-top: 0px;
}

/* ======================== LANDING PAGE ======================== */
.landing-text-container {
    position: relative;
    z-index: -1;
    width: 100%;
    max-width: min(var(--container-max-width), calc(100vw - 64px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 1;
    transition: all var(--transition-fast);
}

.landing-text-container.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.main-title {
    font-family: 'Aeonik-Medium', sans-serif;
    color: var(--color-grey);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(202, 202, 202, 0.25);
    font-size: 56px;
    /* 64px; */
    font-weight: 400;
    line-height: 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.subtitle {
    color: var(--color-grey);
    text-align: center;
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    margin: 0 24px;
}

/* ======================== INPUT CONTAINER ======================== */
.input-container {
    position: absolute;
    z-index: 2;

    width: 100%;
    max-width: min(calc(100vw - 64px), calc(var(--container-max-width) - 64px));
    height: var(--input-field-height);

    display: flex;
    flex-direction: column;
    align-self: center;
    justify-content: space-between;

    border-radius: var(--border-radius);
    border: 2px solid var(--color-white);

    background: radial-gradient(396.42% 102.7% at 28.08% 50%, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.48) 100%);
    box-shadow: 4px 8px 20px 0px rgba(202, 202, 202, 0.25);
    backdrop-filter: blur(25px);

    padding: 18px;
    margin-top: 360px;

    transition: all var(--transition-slow);
}

.input-container.active {
    position: fixed;
    width: calc(100% - 128px);
    max-width: 732px;
    bottom: 64px;
}

.input-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.input-field {
    width: 100%;
    height: calc(var(--input-field-height) - 24px - 42px - 32px);
    background: transparent;
    vertical-align: text-top;
    line-height: 1.2;
    resize: none;
    overflow-y: auto;
    border: none;
    outline: none;
    box-shadow: none;
    color: var(--color-grey);
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.input-field::placeholder {
    color: var(--color-grey);
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.input-container.active .input-field::placeholder {
    font-size: 16px;
}

.input-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.submit-btn {
    background: var(--gradient-shape);
    background-size: 400%;
    background-position: 100% 50%;
    border: none;
    border-radius: var(--border-radius-small);
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 300ms background-position ease-in-out;
}

.submit-btn:hover {
    background-position: 0% 50%;
    box-shadow: 2px 2px 4px 0px rgba(202, 202, 202, 0.25);
}

.send-icon {
    color: var(--color-white);
    width: 32px;
    height: 32px;
    padding-right: 2px;
}

.char-count {
    color: var(--color-light-grey);
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
}

.input-container.active .char-count {
    font-size: 16px;
}

/* ======================== CHAT INTERFACE ======================== */
.ai-icon-chat {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ai-icon-size);
    height: var(--ai-icon-size);
    left: calc(50% - var(--ai-icon-size) / 2);
    top: calc(-1 * var(--ai-icon-size) - 20px);
    transition: width 0.2s ease-in-out,
        height 0.2s ease-in-out,
        left var(--transition-slow),
        top var(--transition-slow);
}

.chat-container.active .ai-icon-chat {
    left: calc(-1 * var(--chat-ai-icon-size) / 3);
    top: calc(-1 * var(--chat-ai-icon-size) / 3);
    width: var(--chat-ai-icon-size);
    height: var(--chat-ai-icon-size);
}

.polygon-icon-background {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-icon {
    position: absolute;
    margin-left: -8%;
    width: 55%;
    height: 55%;
}

.chat-container {
    position: relative;
    z-index: 0;

    height: 0px;
    max-height: calc(100% - 64px);
    width: 100%;
    max-width: min(796px, calc(100% - 64px));

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
    border-radius: var(--border-radius);
    border: 0px solid var(--color-white);
    background: rgba(255, 255, 255, 0);
    box-shadow: 4px 8px 20px 0px rgba(202, 202, 202, 0);
    backdrop-filter: blur(0px);

    /* margin-top: -380px; */

    transition: all var(--transition-slow), visibility 0s linear 0s;
}

.chat-container.active {
    position: absolute;
    height: calc(100% - 64px);
    padding: var(--container-padding);
    margin: 0;

    padding-bottom: calc(var(--input-field-height) + var(--container-padding) + 16px);

    border: 2px solid var(--color-white);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 4px 8px 20px 0px rgba(202, 202, 202, 0.25);
    backdrop-filter: blur(20px);
}

.chat-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.chat-messages {
    width: calc(100% + 20px);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: -20px;
    overflow-y: auto;
}

/* ======================== SCROLLBAR STYLES ======================== */

/* Firefox-spezifisches Styling (nur Firefox) */
@-moz-document url-prefix() {
    .chat-messages {
        scrollbar-width: thin;
        scrollbar-color: var(--color-blue) rgba(255, 255, 255, 1);
    }
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gradient-shape);
    background-size: 400%;
    background-position: 100% 50%;
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-position: 0% 50%;
}

/* ======================== MESSAGE STYLES ======================== */
.message {
    max-width: 70%;
    padding: 8px 14px;
    border-radius: var(--border-radius);
    animation: messageSlideIn var(--transition-fast) ease-out;
}

.message p {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 10px;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-white);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 1px 2px 4px 0px rgba(202, 202, 202, 0.25);
    backdrop-filter: blur(10px);
    color: var(--color-grey);
}

.message.ai {
    align-self: flex-start;
    color: var(--color-grey);

    padding: 0;
}

.message.loader-message {
    align-self: flex-start;
    height: 32px;
    min-height: 32px;
    width: auto;
    max-width: none;
    margin: 8px 0;
    padding: 8px 14px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* ======================== INFO GRID ======================== */

.tile-grid {
    position: absolute;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    height: calc(100% - 96px);
    width: 100%;
    max-width: min(1024px, calc(100vw - 64px));

   /*  margin: 16px 0 32px 0; */

    overflow-y: auto;

    opacity: 1;
    visibility: visible;

    transition: all var(--transition-medium);
}

.tile-grid.hidden {
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tile-grid p {
    color: #666;

    font-family: "Aeonik-Light", sans-serif;
    font-size: 16px;
    font-style: normal;
    line-height: 120%;
    /* 19.2px */
}

.tile-grid .highligted-text {
    font-family: "Aeonik-Medium", sans-serif;
}

.tile-grid .big-text {
    font-family: "Aeonik-Bold", sans-serif;
}

.tile-row,
.tile-row.top,
.tile-row.middle,
.tile-row.bottom {
    flex: 1;
}

.tile-row {
    display: flex;
    gap: 8px;
    flex: 1;
    height: fit-content;
}

.tile {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    flex: 1;

    margin: 18px 8px 0 0;
}

/* Specific tile sizing */
.tile-row.top .tile,
.tile-row.middle .tile,
.tile-row.bottom .tile {
    flex: 1;
}

.tile-header {
    position: relative;
    z-index: 5;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;

    width: 100%;
    height: fit-content;

    margin-bottom: 24px;
    margin: -18px -18px 0 0;
    margin-right: -18px;
}

.tile-header-text-box {
    padding: 12px;
    margin-left: 18px;

    border-radius: 8px;
    border: 2px solid var(--glanz, #FFF);
    background: rgba(255, 255, 255, 0.40);
    box-shadow: 2px 4px 8px 0 rgba(203, 202, 202, 0.25);
    backdrop-filter: blur(25px);
}

.tile-header h2 {
    font-family: 'Aeonik-Bold', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 120%;
    color: var(--color-blue);

    background: var(--color-blue);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    margin: 0;
    flex: 1;
}

.tile-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    flex-shrink: 0;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    border-radius: 64px;
    border: none;

    background: radial-gradient(173.16% 102.62% at 10.37% 7.93%, rgba(209, 202, 253, 1) 20%, rgba(110, 171, 253, 1) 100%);

    box-shadow: 2px 4px 8px 0 rgba(203, 202, 202, 0.25);
}

.tile-icon::after {
    content: '';
    position: absolute;
    z-index: -1;
    height: 107%;
    width: 107%;
    border-radius: 64px;
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.tile-icon img {
    object-fit: contain;
}

.tile-content {
    position: relative;
    flex: 1;
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    width: calc(100% - 18px);

    margin: -36px -18px 0 0;
    padding: 40px 32px 32px 32px;

    border: none;

    box-sizing: border-box;
    border-radius: var(--border-radius);
    border: 0px solid var(--color-white);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 4px 8px 20px 0px rgba(202, 202, 202, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.tile-content.extra-padding {
    padding-top: 54px;
}

.tile-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

.tile-text {
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    color: var(--color-grey);
}

.tile-text:last-child {
    margin-bottom: 0;
}

.tile-text strong {
    font-family: 'Aeonik-Medium', sans-serif;
    font-weight: 600;
    color: var(--color-blue);
}

.tile-list {
    padding-left: 0;
}

.tile-list li {
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    color: var(--color-grey);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.tile-list li:before {
    content: "•";
    color: var(--color-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

ol.tile-list li {
    counter-increment: list-counter;
    padding-left: 24px;
}

ol.tile-list li:before {
    content: counter(list-counter) ".";
    color: var(--color-blue);
    font-weight: 600;
    position: absolute;
    left: 0;
}

ol.tile-list {
    counter-reset: list-counter;
}

.tile-link {
    font-family: 'Aeonik-Medium', sans-serif;
    font-size: 20px;
    font-weight: 600;

    width: 100%;

    text-decoration: none;
    cursor: pointer;
    background: var(--gradient-primary);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(202, 202, 202, 0.25);
    line-height: 100%;

    transition: all var(--transition-fast);
}

.tile-link:hover {
    background-position: 50% 0%;
}

.tile-link.email-cta {
    text-align: start;
    margin-bottom: -4px;
}

.tile-link.email-cta:hover {
    background-position: 85% 0%;
}

.tile-link.non-clickable {
    pointer-events: none;
}

.tile-line {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    margin: 0px -32px;
}

/* Tool Buttons */
.tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.tool-row {
    display: grid;
    grid-template-columns: 80px 140px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.tool-label {
    font-family: 'Aeonik-Medium', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue);
    text-transform: uppercase;
    justify-self: start;
}

.tool-btn {
    width: 100%;
    max-width: 140px;
    justify-self: start;
}

.tool-description {
    font-family: 'Aeonik-Light', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    color: var(--color-grey);
    justify-self: start;
}

/* Email Input */
.tile-email-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
}

.email-input {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 8px 16px;

    font-family: 'Aeonik-Light', sans-serif;
    font-size: 16px;
    color: var(--color-grey);

    border-radius: 64px;
    border: solid 2px var(--color-white);

    background: radial-gradient(396.42% 102.7% at 28.08% 50%, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.28) 100%);
    box-shadow: 2px 4px 8px 0 rgba(203, 202, 202, 0.25);

    transition: all var(--transition-fast);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-blue);
}

.email-input::placeholder {
    color: var(--gradient-secondary);
}

.email-send-button {
    position: absolute;
    right: 32px;
    bottom: 32px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--gradient-secondary);
    background-size: 200%;
    border: none;
    border-radius: 32px;

    width: 36px;
    height: 36px;

    color: var(--color-white);
    cursor: pointer;

    transition: all var(--transition-fast);
}

.email-send-button::after {
    content: '';
    position: absolute;
    z-index: -1;
    height: calc(100% + 4px);
    width: calc(100% + 4px);
    border-radius: 36px;
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.email-send-button:hover {
    background-position: 35% 0;
    box-shadow: 0 4px 10px rgba(0, 98, 251, 0.3);
}

.email-send-button img {
    width: 20px;
    height: 20px;
}

/* CTA Button */
.cta-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--gradient-secondary);
    background-size: 200%;
    border: none;
    border-radius: 24px;

    width: fit-content;
    min-width: 128px;

    padding: 8px 14px;

    font-family: 'Aeonik-Bold', sans-serif;
    font-size: 16px;

    color: var(--color-white);
    cursor: pointer;

    transition: all var(--transition-fast);
}

.cta-button::after {
    content: '';
    position: absolute;
    z-index: -1;
    height: calc(100% + 4px);
    width: calc(100% + 4px);
    border-radius: 36px;
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.cta-button:hover {
    background-position: 50% 0;
    box-shadow: 0 8px 20px rgba(0, 98, 251, 0.3);
}

/* Email feedback animations */
.email-success-animation {
    animation: emailSuccessPulse 0.6s ease-out;
}

.tile-link.email-success-animation {
    animation: emailSuccessGlow 0.6s ease-out;
}

@keyframes emailSuccessPulse {
    0% {
        transform: scale(1);
        box-shadow: 2px 4px 8px 0 rgba(203, 202, 202, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 98, 251, 0.4);
        border-color: var(--color-blue);
    }
    100% {
        transform: scale(1);
        box-shadow: 2px 4px 8px 0 rgba(203, 202, 202, 0.25);
    }
}

@keyframes emailSuccessGlow {
    0% {
        transform: translateY(0) scale(1);
        text-shadow: 1px 1px 4px rgba(202, 202, 202, 0.25);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
        text-shadow: 0 0 15px rgba(0, 98, 251, 0.6);
    }
    100% {
        transform: translateY(0) scale(1);
        text-shadow: 1px 1px 4px rgba(202, 202, 202, 0.25);
    }
}

/* Email success popup */
.email-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-blue);
    border-radius: var(--border-radius);
    box-shadow: 4px 8px 20px rgba(0, 98, 251, 0.3);
    backdrop-filter: blur(25px);
    
    padding: 20px 32px;
    min-width: 280px;
    text-align: center;
    
    font-family: 'Aeonik-Medium', sans-serif;
    font-size: 18px;
    color: var(--color-blue);
    
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
    
    transition: all var(--transition-fast);
}

.email-success-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.email-success-popup.hide {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}


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

.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 16px;
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
}

.powered-by img {
    width: auto;
    height: 14px;
    margin-bottom: -4px;

    transition: all var(--transition-fast);
}

.powered-by img:hover {
    transform: scale(1.05) translateX(2px);
}

.imp-dat-container {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

.footer-container p, .footer-container a {
    font-size: 12px;
    color: var(--color-grey);
}

 .footer-container a:hover {
    color: var(--color-blue);
 }


/* ======================== RESPONSIVE STYLES ======================== */
@media (max-width: 1024px) {
    .video-background {
        position: fixed !important;
        z-index: -10 !important;
        pointer-events: none !important;
        user-select: none !important;
        touch-action: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Additional mobile-specific hiding of controls */
    .video-background::-webkit-media-controls,
    .video-background::-webkit-media-controls-panel,
    .video-background::-webkit-media-controls-play-button,
    .video-background::-webkit-media-controls-start-playback-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        -webkit-appearance: none !important;
    }
    
    .tile-grid {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 8px;
    }

    .tile-row {
        flex-direction: column;
        flex: none;
        min-height: auto;
    }

    .tile {
        min-height: fit-content;
        padding: 24px 8px 0px 0px;
        margin: 0;
    }

    .tile-header h2 {
        font-size: 20px;
    }

    .tile-icon {
        width: 56px;
        height: 56px;
    }

    .tile-icon img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 40px;
    }

    .subtitle {
        font-size: 16px;
    }

    .message {
        max-width: 85%;
        font-size: 12px;
    }

    .tile-header h2 {
        font-size: 18px;
    }

    .tile-text {
        font-size: 14px;
    }

    .tools {
        gap: 8px;
    }

    .tool-row {
        padding: 12px;
    }

    .tool-name {
        font-size: 16px;
    }

    .tool-description {
        font-size: 12px;
    }

    .tile-grid {
        margin: 0px;
    }

    .language-switcher {
        top: 8px;
        right: 20px;

        width: 32px;
        height: 32px;
    }
    
    .language-btn {
        width: 32px;
        height: 32px;
    }
    
    .flag-container {
        width: 24px;
        height: 24px;
    }
}


@media (max-width: 550px) {
    .language-switcher {
        right: 4px;
    }
    
    .main-title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 14px;
    }

    .landing-text-container {
        max-width: calc(100vw - 32px);
    }

    .ai-icon-chat {
        width: 64px;
        height: 64px;
        left: calc(50% - 32px);
        top: calc(-1 * 64px - 20px);
    }

    .chat-container.active .ai-icon-chat {
        width: 64px;
        height: 64px;
    }

    .chat-container.active {
        padding: calc(var(--container-padding) - 8px);
        padding-bottom: calc(var(--input-field-height) + var(--container-padding) - 16px);
    }

    .input-container {
        max-width: calc(100vw - 32px);
        padding: 14px;

        height: calc(var(--input-field-height) - 32px);
    }

    .input-container.active {
        width: calc(100% - 128px + 16px);
        max-width: calc(732px + 8px);
        bottom: calc(64px - 8px);
    }

    .input-field {
        font-size: 16px;
        height: calc(var(--input-field-height) - 24px - 42px - 32px - 16px);
    }

    .input-field::placeholder {
        font-size: 16px;
    }

    .char-count {
        font-size: 16px;
    }

    .input-footer {
        gap: 8px;
    }

    .submit-btn {
        width: 38px;
        height: 38px;
    }

    .send-icon {
        width: 32px;
        height: 32px;
    }

    .tile-grid {
        max-width: calc(100vw - 32px);
    }

    .tile-header-text-box {
        padding: 8px;
        margin-left: 8px;
    }

    .tile-icon {
        width: 42px;
        height: 42px;
    }

    .tile-content {
        padding: 48px 16px 16px 16px;
    }

    .tool-row {
        display: flex;
        padding: 8px 0px;
        flex-direction: column;
    }

    .tile-line {
        margin: 0px -16px;
    }

    .tool-description {
        text-align: center;
    }

    .powered-by img {
        height: 12px;
    }

    .imp-dat-container {
        gap: 6px;
    }

    .footer-container p, .footer-container a {
        font-size: 10px;
    }

    .email-send-button {
        right: 16px;
        bottom: 16px
    }

    .chat-messages::-webkit-scrollbar {
        width: 2px;
    }
}

@media (max-width: 360px) {
    .chat-container.active {
        padding: calc(var(--container-padding) - 16px);
        padding-bottom: calc(var(--input-field-height) + var(--container-padding) - 32px);
    }

    .input-container.active {
        width: calc(100% - 128px + 32px);
        max-width: calc(732px + 16px);
        bottom: calc(64px - 16px);
    }


    .input-container {
        margin-top: 400px;
    }

    .char-count {
        font-size: 14px;
    }

    .submit-btn {
        width: 32px;
        height: 32px;
    }

    .send-icon {
        width: 24px;
        height: 24px;
    }

    .input-field {
        font-size: 14px;
    }

    .input-field::placeholder {
        font-size: 14px;
    }
}
