/* cortexlet.com: the stylesheet of the home page: IndexMemory's website (IndexMemory/website, assets/styles.css), its
   layout, components and typefaces, copied without the sections CortexLet doesn't use. The CortexLet additions are at
   the end. The 404 pages use 404.css. */

/* IndexMemory's typefaces, self-hosted so no visitor data goes to a font service (IndexMemory's site loads Comfortaa and
   Space Grotesk from Google Fonts). Knockout has no Cyrillic, so Bulgarian and Russian headings are set in Oswald, a
   close condensed face, under the same family name. Unbounded is for the CortexLet name only. Comfortaa, Space Grotesk,
   Oswald and Unbounded: SIL Open Font License. Knockout: IndexMemory's licence, the file from IndexMemory/website. */
@font-face { font-family: 'Display'; src: url('/assets/fonts/knockout-cruiserweight-regular.otf') format('opentype'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Display'; src: url('/assets/fonts/oswald-cyrillic-500.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Comfortaa'; src: url('/assets/fonts/comfortaa-latin-var.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Comfortaa'; src: url('/assets/fonts/comfortaa-cyrillic-var.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-var.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{font-family:"Unbounded";font-weight:500;font-style:normal;font-display:swap;src:url(/assets/fonts/unbounded-latin-500.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-weight:500;font-style:normal;font-display:swap;src:url(/assets/fonts/unbounded-cyrillic-500.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

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

:root {
    --primary-color: #1F1F1F;
    --secondary-color: #e50f85;
    --text-dark: #000000;
    --text-light: #7f7f7f;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --accent-color: #3b82f6;
    --font-display: 'Display', 'Space Grotesk', sans-serif;
    --font-text: 'Comfortaa', Arial, sans-serif;
    --font-ui: 'Space Grotesk', 'Comfortaa', sans-serif; /* Space Grotesk has no Cyrillic */
    --font-logo: 'Unbounded', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
}

h2 {
    font-size: 4.5rem !important;
    font-weight: lighter;
}

p {
    font-weight: 200;
    color: var(--text-light);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 60px;
    width: auto;
}

#mainNav {
    flex: 1;
}

#mainNav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

#mainNav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s;
}

#mainNav a:hover {
    color: var(--primary-color);
}

.header-social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-social-icons a {
    color: #000000;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.header-social-icons a:hover {
    color: var(--primary-color);
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: var(--bg-white);
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
}

.language-switcher-btn:hover {
    border-color: var(--primary-color);
}

.language-switcher-btn svg {
    transition: transform 0.3s;
}

.language-switcher.active .language-switcher-btn svg {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 160px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 400;
    transition: background 0.2s;
    border: none;
}

.language-dropdown a:hover {
    background: #f5f5f5;
}

.language-dropdown a.active {
    background: var(--text-dark);
    color: white;
}

.language-dropdown a.active:hover {
    background: var(--text-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 5rem 3rem;
    background: #ffffff;
}

.hero-container {
    max-width: 2000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-dark);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content .subheading {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1rem;
    border-radius: 2px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    text-transform: uppercase;
}

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

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

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: #e3e3e3;
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 5rem 3rem;
}

.section-container {
    max-width: 2000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #a0a0a0;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 5px;
    height: 5px;
    background: #a0a0a0;
    flex-shrink: 0;
    align-self: center;
    margin-top: -0.15em;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* =============================================
   HOW IT WORKS — Sticky Scroll Section
   ============================================= */
.how-it-works {
    padding: 0;
}

.hiw-header {
    padding: 5rem 3rem 3rem;
    background: var(--bg-white);
}

.hiw-header .section-header {
    border-bottom: none;
    padding-bottom: 0;
}

/* Scroll container: tall enough for all 4 sticky panels */
.hiw-scroll {
    position: relative;
}

/* Each panel: sticky, full viewport, stacks over previous */
.hiw-panel {
    position: sticky;
    top: 0;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hiw-panel--chaos  { z-index: 1; }
.hiw-panel--funnel { z-index: 2; }
.hiw-panel--agent  { z-index: 3; }
.hiw-panel--chat   { z-index: 4; }

/* Shared panel styling: white bg, borders, dot pattern, content z-index */
.hiw-panel {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hiw-panel::before,
.hiw-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.2px);
    background-size: 10px 10px;
    pointer-events: none;
}

.hiw-panel::before {
    color: rgba(59, 130, 246, 0.4);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.hiw-panel::after {
    color: rgba(229, 15, 133, 0.35);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 60%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 60%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.hiw-panel > * {
    position: relative;
    z-index: 1;
}

/* Panel inner layout: three columns — text | visual | details */
.hiw-panel-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left column — text */

.hiw-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.hiw-step::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--secondary-color);
    flex-shrink: 0;
}

.hiw-text h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.hiw-text p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-dark);
}

/* Center column — visual */
.hiw-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hiw-visual-img {
    max-width: 100%;
    max-height: 650px;
    width: auto;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Panel 03 image — smaller */
.hiw-panel--agent .hiw-visual-img {
    max-height: 300px;
}

/* Gradient glow behind visuals in all panels */
.hiw-visual {
    position: relative;
}

.hiw-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #12dee4 0%, #e50f85 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* Right column — detail bullet points */
.hiw-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.hiw-detail {
    padding-left: 1rem;
    border-left: 2px solid var(--text-dark);
}

.hiw-detail h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.hiw-detail p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Industries Section */
#industries {
    background: var(--bg-white);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

/* Industries Parallax Bars */
.industries-parallax {
    position: relative;
    width: 100%;
    height: 420px;
    overflow-x: hidden;
    overflow-y: visible;
}

.industries-parallax::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-light));
    z-index: 2;
    pointer-events: none;
}

.industries-bar {
    position: absolute;
    top: 0;
    border-radius: 0;
    will-change: transform;
}

/* Industries CTA Buttons */
.industries-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Pricing Section */
.pricing {
    background: #ffffff;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.pricing::before,
.pricing::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.2px);
    background-size: 10px 10px;
    pointer-events: none;
}

.pricing::before {
    color: rgba(59, 130, 246, 0.4);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 40%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.pricing::after {
    color: rgba(229, 15, 133, 0.35);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 60%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 60%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.pricing > * {
    position: relative;
    z-index: 1;
}

.pricing .section-header {
    border-bottom: none;
    padding-bottom: 3rem;
}

.pricing .section-header p {
    color: var(--text-dark);
}

.pricing-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
    align-items: stretch;
}

/* Pricing cards — base */
.pricing-highlight-item {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    border-radius: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    /* Scroll entrance */
    opacity: 0;
    transform: translateY(30px);
}

.pricing-highlight-item.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Typography */
.pricing-highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.pricing-highlight-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.75;
    flex: 1;
}

/* Pricing section CTA buttons */
.pricing-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* FAQs Section */
#faqs {
    background: var(--bg-light);
    padding-left: 0;
    padding-right: 0;
}

.faqs-container {
    max-width: 100%;
    background: var(--bg-light);
}

.faqs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.faq-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #f9fafb;
    color: var(--text-dark);
    padding: 4rem 3rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.footer-container {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: white;
    padding: 3rem;
    border-radius: 12px;
}

.footer-background-logo {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    width: 100%;
    max-width: none;
}

.footer-background-logo img {
    width: 95%;
    height: auto;
    opacity: 0.9;
    display: block;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    margin-bottom: 20rem;
}

.footer-cta h2 {
    font-size: 2.5rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-cta-buttons .btn {
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-explore {
    margin-bottom: 1.5rem;
}

.footer-explore a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-explore a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-light);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-newsletter {
    grid-column: span 1;
}

.footer-newsletter h3 {
    margin-bottom: 1rem;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 0.9rem;
    font-family: inherit;
}

.newsletter-form button {
    padding: 0.75rem;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 2px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.newsletter-form button:hover {
    background: var(--primary-color);
}

.footer-bottom {
    width: 95%;
    margin: 2rem auto 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-bottom-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-right span {
    color: var(--text-light);
}

.footer-bottom-right a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.footer-bottom-right a:hover {
    color: var(--primary-color);
}

/* Footer Language Switcher - Hidden on desktop, visible on mobile */
.footer-language-switcher {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-language-switcher label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
}

.footer-language-switcher select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.footer-language-switcher select:hover {
    border-color: var(--primary-color);
}

.footer-language-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-dropdown {
        min-width: 140px;
        right: auto;
        left: 0;
    }

    .language-switcher-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .language-dropdown a {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    header {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 1);
    }

    .header-container {
        padding: 0 2rem;
    }

    section {
        padding: 5rem 2rem;
    }

    .hero {
        padding: 5rem 2rem;
    }

    footer {
        padding: 4rem 2rem 2rem;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .header-left nav {
        display: none;
        width: 100%;
    }

    .header-left nav.active {
        display: block;
    }

    .header-left nav.active ul {
        flex-direction: column;
        gap: 1rem;
    }

    .header-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        align-self: flex-start;
        height: 60px; /* match logo height so icon stays vertically centered with logo */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title h1 {
        font-size: 2.5rem;
    }

    .use-case {
        grid-template-columns: 1fr;
    }

    .use-case:nth-child(even) {
        direction: ltr;
    }

    .footer-background-logo {
        width: 100%;
        bottom: 80px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 18rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-newsletter {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-language-switcher {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .footer-language-switcher select {
        width: 100%;
        max-width: 280px;
    }

    h2 {
        font-size: 2.5rem !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .legal-page {
        padding: 4rem 2rem 5rem;
    }

    .legal-container h1 {
        font-size: 2.2rem;
    }

    .about-hero {
        padding: 5rem 2rem;
    }

    .about-hero h1 {
        font-size: 2.2rem;
    }

    .about-section,
    .about-values,
    .about-cta {
        padding: 4rem 2rem;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-team {
        padding: 4rem 2rem;
    }

    .about-team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .about-company-detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .industries-parallax {
        height: 300px;
    }

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

    .industries-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .industries-cta-buttons .btn {
        width: 220px;
        text-align: center;
    }

    .pricing-highlights {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 2rem;
    }

    /* How It Works — Mobile: keep sticky, single-column layout */
    .hiw-header {
        padding: 4rem 2rem 2rem;
    }

    .hiw-panel {
        position: relative;
        height: auto;
        min-height: auto;
        padding-bottom: 0;
    }

    .hiw-panel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .hiw-visual {
        order: -1;
        min-height: 220px;
    }

    .hiw-visual-img {
        max-height: 450px;
    }

    .hiw-panel--agent .hiw-visual-img {
        max-height: 250px;
    }

    .hiw-chaos {
        width: 300px;
        height: 260px;
        margin: 0 auto;
    }

    .hiw-doc {
        width: 85px;
        padding: 7px;
        transform: translate(calc(-50% + var(--x) * 0.6), calc(-50% + var(--y) * 0.65)) rotate(var(--r));
    }

    .hiw-doc small {
        font-size: 0.5rem;
    }

    @keyframes hiwFloat {
        0%   { transform: translate(calc(-50% + var(--x) * 0.6), calc(-50% + var(--y) * 0.65)) rotate(var(--r)); }
        100% { transform: translate(calc(-50% + var(--x) * 0.6), calc(-50% + var(--y) * 0.65 - 8px)) rotate(var(--r)); }
    }

    .hiw-text h3 {
        font-size: 1.6rem;
    }

    .hiw-text p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hiw-step {
        font-size: 3rem;
    }

    .hiw-funnel {
        width: 280px;
    }

    .hiw-agent {
        width: 360px;
        height: 340px;
    }

    .hiw-agent-node {
        transform: translate(calc(-50% + var(--nx) * 0.7), calc(-50% + var(--ny) * 0.7));
        font-size: 0.65rem;
        padding: 0.4rem 0.7rem;
    }

    .hiw-chat {
        max-width: 100%;
    }

    .hiw-details {
        gap: 1.25rem;
    }
}

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .legal-container h1 {
        font-size: 1.8rem;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .footer-background-logo {
        width: 100%;
        bottom: 60px;
    }

    .footer-main {
        margin-bottom: 6rem;
    }

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

    .footer-newsletter {
        grid-column: span 1;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }

    footer {
        min-height: auto;
    }

    .industries-parallax {
        height: 200px;
    }
}


/* =============================================
   CortexLet additions
   ============================================= */

/* Logo: the CortexLet mark and the name in Unbounded */
.logo a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-dark); }
.logo img { height: 40px; width: 40px; }
.logo-name { font: 500 1.25rem/1 var(--font-logo); }

/* Sign in: a quiet text link before the buttons */
.header-signin { color: var(--text-dark); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.header-signin:hover { color: var(--secondary-color); }

/* The header keeps every label on one line. The Russian and Bulgarian labels don't fit beside the buttons below
   1220px, so from there down the header is the phone's: the logo and the menu button. */
#mainNav a, .header-right .btn, .header-signin, .language-switcher-btn { white-space: nowrap; }
@media (max-width: 1320px) {
    .header-container { padding: 0 2rem; gap: 1rem; }
    .header-left { gap: 1.5rem; }
    #mainNav ul { gap: 1.25rem; }
    .header-right { gap: 0.6rem; }
}
@media (max-width: 1220px) {
    .header-container { padding: 0 2rem; }
    .header-left { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
    .header-left nav { display: none; width: 100%; }
    .header-left nav.active { display: block; padding: 1rem 0; }
    .header-left nav.active ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .header-left nav .nav-signin { display: list-item; } /* the header's Sign in is hidden here */
    .header-right { display: none; }
    .mobile-menu-toggle { display: flex; align-items: center; align-self: flex-start; height: 40px; }
    .footer-language-switcher { display: flex; } /* the header's switcher is hidden here */
}

/* How it works: one dotted panel holding the demo video, not IndexMemory's four sticky panels */
.hiw-video-panel { position: relative; height: auto; min-height: 0; padding: 5rem 3rem; border-top: none; border-bottom: none; }
.hiw-video {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}
.hiw-video::before {
    content: '';
    position: absolute;
    inset: 10% 5%;
    background: linear-gradient(135deg, #12dee4 0%, #e50f85 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 0;
}
.hiw-video video,
.hiw-video-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.hiw-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.hiw-video-placeholder img { width: 96px; height: 96px; }

/* Industries: the gradient bars, then IndexMemory's pricing blocks, six of them in two rows */
.industries-blocks { padding-top: 0; background: var(--bg-light); } /* continues the bars' fade */
.nav-signin { display: none; }
.industries-blocks .section-header h2 { margin-bottom: 0; }

/* FAQ: an odd last card takes the whole row */
.faq-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Footer: who we are, and the big name at the bottom instead of IndexMemory's logo image */
.footer-about h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; }
.footer-background-logo span {
    display: block;
    text-align: center;
    font: 500 15.5vw/1 var(--font-logo);
    letter-spacing: -0.03em;
    color: var(--text-dark);
    opacity: 0.9;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hiw-video-panel { padding: 3rem 1rem; }
}
