/* FixrBuddy Website Styles */

/* CSS Variables - Brand Colors */
:root {
    --primary-color: #d40000;
    --secondary-color: #656565;
    --tertiary-color: #1C1C1C;
    --text-primary: #1C1C1C;
    --text-secondary: #656565;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #1C1C1C;
    --border-color: #e5e7eb;
    --border-color-dark: #d1d5db;
    --nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Ensure animated elements start hidden before JS loads (legacy sections) */
.js .problem-card,
.js .feature-card,
.js .platform-card,
.js .technical-item,
.js .use-case-card,
.js .advantage-card,
.js .pricing-card,
.js .benefit-item,
.js .screenshot-item {
    opacity: 0;
}

.js .screenshot-placeholder {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color-dark);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-link.btn-nav {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.nav-link.btn-nav:hover {
    background-color: var(--tertiary-color);
    color: var(--text-light);
    transform: translateY(-1px);
}

/* Features dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.nav-dropdown-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.375rem 0;
}

.nav-dropdown-all {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-dropdown.active > .nav-dropdown-toggle {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: gap 0.2s ease;
    pointer-events: none;
}

.feature-item-clickable {
    cursor: pointer;
}

.feature-item-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 0;
}

.feature-item-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

.feature-item-clickable:hover .feature-learn-more {
    gap: 0.6rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.mobile-nav-backdrop {
    display: none;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--tertiary-color);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 136px 0 104px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eceff3;
}

.hero .container {
    max-width: 1280px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-headline {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #11151d;
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: 580px;
}

.hero-headline-accent {
    color: var(--primary-color);
    font-weight: 800;
}

.hero-subheadline {
    font-size: 1.3125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #3d4450;
    max-width: 540px;
    line-height: 1.65;
}

.hero-highlights {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 480px;
}

.hero-highlights li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.45;
    color: #11151d;
}

.hero-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-cta {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-cta .btn {
    border-radius: 12px;
    padding: 0.95rem 1.75rem;
    font-size: 0.9375rem;
}

.hero-cta .btn-primary {
    box-shadow: 0 8px 20px rgba(212, 0, 0, 0.2);
}

.hero-domain {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5a6270;
}

/* Hero logo / illustration */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    perspective: 1200px;
}

.hero-logo,
.hero-illustration {
    width: min(100%, 520px);
    height: auto;
    object-fit: contain;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Problem Statement */
.problems {
    background-color: var(--bg-gray);
}

.problems .section-header {
    margin-bottom: 3rem;
}

.problems .section-subtitle {
    margin-bottom: 1.25rem;
}

.problems-cascade {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    max-width: 52rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
}

.problems-cascade-arrow {
    color: var(--primary-color);
    font-weight: 700;
}

.problems-bridge {
    margin: 2.75rem auto 0;
    max-width: 40rem;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.problems-bridge-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.problems-bridge-link:hover {
    text-decoration: underline;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.problem-card {
    background-color: var(--bg-light);
    padding: 2rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.problem-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.problem-number {
    display: none;
}

.problem-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.problem-content p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.55;
}

.problem-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(212, 0, 0, 0.1);
}

.problem-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* Features Section */
/* Features Section */
.features {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: 100px 0 0;
}

.features .container {
    margin-bottom: 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    position: relative;
    width: 100%;
}

.feature-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-item.reverse .feature-media {
    order: 2;
}

.feature-item.reverse .feature-text {
    order: 1;
}

.feature-media {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-media.feature-media-composite {
    overflow: visible;
    background-color: transparent;
}

.feature-item .feature-media-composite .feature-page-hero-media-composite {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    min-height: unset;
    padding: 2rem 1.5rem;
}

.feature-item .feature-page-hero-illustration {
    flex: 1 1 58%;
    max-width: 58%;
    max-height: min(300px, 42vh);
    padding: 0;
}

.feature-item .feature-page-hero-phone {
    flex: 0 0 auto;
    max-width: 42%;
    max-height: min(360px, 48vh);
    margin-left: -1.5rem;
    position: static;
    transform: none;
    right: auto;
    bottom: auto;
}

.feature-media.feature-media-phone {
    overflow: visible;
    background-color: transparent;
}

.feature-item .feature-media-phone .feature-page-hero-media-phone-only {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: unset;
    background: transparent;
}

.feature-item .feature-media-phone .feature-page-hero-image.screenshot-mobile,
.feature-page-hero-media-phone-only .feature-page-hero-image.screenshot-mobile {
    max-width: min(320px, 44vw);
    max-height: min(580px, 62vh);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    margin: 0 auto;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.feature-image.illustration {
    object-fit: contain;
    padding: 3rem 2.5rem;
    max-height: 600px;
}

.js .feature-item .feature-image {
    transform: scale(1.1);
}

.feature-item.animate-in .feature-image {
    transform: scale(1);
}

.feature-item:hover .feature-image {
    transform: scale(1.05);
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
    background-color: var(--bg-light);
}

.feature-number {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 60px;
    left: 60px;
    transform: translateX(-20px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.feature-item.reverse .feature-number {
    right: 60px;
    left: auto;
}

.feature-item.animate-in .feature-number {
    transform: translateX(0);
    opacity: 0.1;
}

.feature-item:hover .feature-number {
    opacity: 0.2;
    transform: translateX(10px);
}

.feature-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
}

.feature-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 3rem 0;
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.feature-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.detail-item {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .detail-item::before {
    width: 30px;
}

.feature-item:hover .detail-item {
    color: var(--text-primary);
    padding-left: 40px;
}

/* Platform Capabilities - Modern Redesign */
.platform {
    position: relative;
    background: var(--bg-light);
    overflow: hidden;
    padding: 100px 0;
}

.platform-background {
    display: none;
}

.platform-bg-gradient {
    display: none;
}

.platform-bg-pattern {
    display: none;
}

.platform .container {
    position: relative;
    z-index: 1;
}

.platform-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.platform-card {
    position: relative;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.js .platform-card {
    opacity: 0;
    transform: translateY(30px);
}

.platform-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.platform-card-glow {
    display: none;
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.platform-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover .platform-icon-wrapper {
    transform: scale(1.1);
}

.platform-icon {
    width: 32px;
    height: 32px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1);
}

.platform-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.platform-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.375rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    opacity: 1;
}

.js .platform-card .platform-badge {
    opacity: 0;
}

.platform-card.animate-in .platform-badge {
    opacity: 1;
}

.platform-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    opacity: 1;
}

.js .platform-card .platform-title {
    opacity: 0;
}

.platform-card.animate-in .platform-title {
    opacity: 1;
}

.platform-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 1;
}

.js .platform-card .platform-description {
    opacity: 0;
}

.platform-card.animate-in .platform-description {
    opacity: 1;
}

.platform-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.platform-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-color);
    opacity: 1;
    transition: all 0.3s ease;
}

.platform-feature-item:last-child {
    border-bottom: none;
}

.js .platform-card .platform-feature-item {
    opacity: 0;
}

.platform-card.animate-in .platform-feature-item {
    opacity: 1;
}

.platform-feature-item:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.platform-feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* Platform Benefits Section */
.platform-benefits {
    margin-top: 4rem;
    text-align: center;
}

.benefits-header {
    margin-bottom: 4rem;
}

.benefits-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.benefits-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.benefits-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-item {
    position: relative;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    will-change: opacity, transform;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover::before {
    width: 100%;
}

.benefit-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.benefit-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(212, 0, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-icon::before {
    display: none;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
}

.benefit-item:hover .benefit-icon svg {
    color: white;
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.benefit-item:hover .benefit-title {
    color: var(--primary-color);
}

.benefit-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.benefit-item:hover .benefit-description {
    color: var(--text-primary);
}

/* Staggered animation for benefit items */
.benefit-item:nth-child(1) { transition-delay: 0.1s; }
.benefit-item:nth-child(2) { transition-delay: 0.2s; }
.benefit-item:nth-child(3) { transition-delay: 0.3s; }
.benefit-item:nth-child(4) { transition-delay: 0.4s; }

/* App Download Section */
.app-download-section {
    background: var(--bg-gray);
    padding: 80px 0;
    overflow: visible;
}

.app-download-banner {
    position: relative;
    background: var(--primary-color);
    border-radius: 24px;
    overflow: visible;
    min-height: 380px;
}

.app-download-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 380px;
    padding: 3rem 2.5rem 3rem 3.5rem;
    overflow: visible;
}

.app-download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 440px;
    z-index: 2;
}

.app-download-title {
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.app-download-description {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin: 0;
    max-width: 420px;
    line-height: 1.65;
    opacity: 0.95;
}

.app-download-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.app-download-badge {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    line-height: 0;
}

.app-download-badge:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.app-download-badge-img {
    display: block;
    width: auto;
    height: 40px;
}

.app-download-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    overflow: visible;
    z-index: 1;
}

.app-download-phones {
    position: absolute;
    right: 14%;
    top: 50%;
    width: 440px;
    max-width: none;
    height: auto;
    object-fit: contain;
    transform: translateY(-50%) scale(1.08);
    transform-origin: center center;
    filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.32));
    pointer-events: none;
}

.app-download-vertical-label {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 3;
}

/* Technical Features */
.technical {
    background-color: var(--bg-light);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.technical-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    padding-left: 3rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: opacity, transform;
}

.technical-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--border-color);
    transition: background-color 0.3s ease, width 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.technical-item:hover::before {
    background-color: var(--primary-color);
    width: 4px;
}

.technical-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.technical-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(212, 0, 0, 0.1);
}

.technical-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.technical-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    background-color: var(--bg-gray);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: left;
    border: 2px solid var(--border-color);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    will-change: opacity, transform;
}

.use-case-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(212, 0, 0, 0.1);
}

.use-case-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.use-case-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px 0 12px 0;
}

.use-case-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding-left: 3rem;
    margin-top: 0.5rem;
}

.use-case-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Competitive Advantages */
.advantages {
    background-color: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    padding-left: 3rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
    text-align: left;
    will-change: opacity, transform;
}

.advantage-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 3px;
    height: 40px;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.advantage-card:hover::before {
    height: 60px;
}

.advantage-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(212, 0, 0, 0.1);
}


/* Pricing Section */
.pricing {
    background-color: var(--bg-gray);
}

/* Pricing tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem;
    margin: 0 auto 2.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pricing-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.pricing-tab:hover {
    color: var(--text-primary);
}

.pricing-tab.active,
.pricing-tab[aria-selected="true"] {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(212, 0, 0, 0.25);
}

.pricing-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.pricing-panel {
    display: none;
    animation: pricingPanelIn 0.35s ease;
}

.pricing-panel.active {
    display: block;
}

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

.subscription-intro {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.subscription-intro strong {
    color: var(--text-primary);
}

.subscription-panel {
    max-width: 100%;
    margin: 0 auto;
}

.subscription-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.subscription-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.15fr);
    gap: 3rem;
    align-items: center;
    padding: 2.75rem 3rem;
}

.subscription-content {
    padding: 0;
    min-width: 0;
}

.subscription-illustration-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.subscription-illustration-wrap .subscription-illustration {
    width: 100%;
    max-width: 480px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
}

.subscription-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
    background-color: rgba(212, 0, 0, 0.08);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.subscription-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subscription-app-callout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
    background-color: rgba(212, 0, 0, 0.05);
    border: 1px solid rgba(212, 0, 0, 0.12);
    border-left: 3px solid var(--primary-color);
    border-radius: 12px;
}

.subscription-app-callout-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.subscription-app-callout-icon svg {
    width: 22px;
    height: 22px;
}

.subscription-app-callout-title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.subscription-app-callout-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.subscription-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
}

.subscription-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.subscription-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background-color: rgba(212, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 800;
}

.subscription-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.subscription-note {
    flex: 1 1 220px;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.subscription-footer .btn {
    flex-shrink: 0;
}

.subscription-content .pricing-cta {
    text-align: left;
    margin-top: 1.5rem;
}

.subscription-content .pricing-note {
    text-align: left;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.pricing-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(212, 0, 0, 0.12);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    background-color: var(--bg-gray);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-tier {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.pricing-table thead {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.pricing-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background-color: var(--bg-gray);
}

.pricing-table tbody tr.highlight-row {
    background-color: rgba(212, 0, 0, 0.05);
    font-weight: 600;
}

.pricing-table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.pricing-table .price-cell {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.pricing-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Pricing Calculator */
.pricing-calculator {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-display {
    background: var(--primary-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(212, 0, 0, 0.2);
}

.pricing-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item.total {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.result-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.result-value.price-per-bed {
    font-size: 2rem;
}

.result-value.total-price {
    font-size: 3rem;
}

.pricing-slider-container {
    margin-bottom: 3rem;
}

.slider-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    padding: 1rem 0 2.5rem;
}

.pricing-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-gray);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pricing-slider:hover {
    background: #e0e0e0;
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 0, 0, 0.4);
}

.pricing-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(212, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 0, 0, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0 12px;
}

.slider-labels span {
    position: relative;
}

/* Screenshots */
.screenshots {
    background-color: var(--bg-light);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.screenshot-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.screenshot-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    will-change: opacity, transform;
}

.screenshot-img.illustration {
    background-color: var(--bg-gray);
    padding: 1.5rem;
    object-fit: contain;
    aspect-ratio: 4 / 3;
}

.screenshot-item.animate-in .screenshot-img {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.screenshot-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 12px 32px rgba(212, 0, 0, 0.12);
}

.screenshot-caption {
    color: var(--text-secondary);
    font-weight: 500;
}

.video-demo {
    margin-top: 3rem;
}

.video-placeholder {
    background-color: var(--bg-gray);
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-gray);
}

.testimonials-carousel {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    min-height: 240px;
}

.testimonial-card {
    display: none;
    flex-direction: column;
    text-align: left;
    opacity: 0;
    transition: opacity var(--motion-normal, 0.55s) cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card.active {
    display: flex;
    opacity: 1;
}

.testimonial-quote {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

.testimonial-quote p {
    margin: 0;
    font-size: 1.1875rem;
    color: var(--text-primary);
    line-height: 1.75;
}

.testimonial-quote p::before {
    content: "\201C";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.75;
    color: var(--primary-color);
    opacity: 0.22;
    float: left;
    margin: 0.15rem 0.4rem 0 0;
}

.testimonial-quote p::after {
    content: "\201D";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 0;
    color: var(--primary-color);
    opacity: 0.22;
    vertical-align: -0.35em;
    margin-left: 0.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin-top: 2rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.testimonial-author-info strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.testimonial-author-info span {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* FAQ Section — matches reference: intro + shadow cards, navy idle / accent active */
.faq {
    --faq-radius: 12px;
    --faq-navy: #1e293b;
    --faq-card-border: #e8eaed;
    --faq-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
    background-color: #f4f5f7;
}

.faq .section-title {
    color: var(--text-primary);
}

.faq-section-subtitle.faq-intro {
    color: #64748b;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.75rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 400;
}

.faq-intro-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.faq-intro-link:hover {
    opacity: 0.88;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer-inner a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.faq-answer-inner a:hover {
    opacity: 0.88;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-container {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    position: relative;
    background-color: var(--bg-light);
    border: 1px solid var(--faq-card-border);
    border-radius: var(--faq-radius);
    margin-bottom: 1.25rem;
    box-shadow: var(--faq-card-shadow);
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        border-width 0.2s ease,
        box-shadow 0.25s ease;
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item.active {
    border: 2px solid var(--primary-color);
    box-shadow:
        0 2px 6px rgba(212, 0, 0, 0.08),
        0 8px 22px rgba(15, 23, 42, 0.06);
}

.faq-question {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font: inherit;
}

.faq-question:hover {
    background-color: rgba(248, 249, 250, 0.92);
}

.faq-item.active .faq-question:hover {
    background-color: rgba(212, 0, 0, 0.03);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-index {
    flex-shrink: 0;
    width: 2.875rem;
    height: 2.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e5ea;
    background-color: #eef1f5;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--faq-navy);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.faq-item.active .faq-index {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.faq-question-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.38;
    color: var(--faq-navy);
    transition: color 0.25s ease;
    min-width: 0;
}

.faq-item.active .faq-question-text {
    color: var(--primary-color);
}

.faq-chevron {
    flex-shrink: 0;
    width: 0.625rem;
    height: 0.625rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    color: #475569;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.25s ease;
    margin-top: -0.2rem;
}

.faq-item.active .faq-chevron {
    transform: rotate(-135deg);
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.faq-answer {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Thick accent only along the answer panel (bottom half), not beside the question */
.faq-item.active .faq-answer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--primary-color);
    border-radius: 0 0 0 max(0px, calc(var(--faq-radius) - 2px));
    pointer-events: none;
    z-index: 0;
}

.faq-item.active .faq-answer {
    max-height: 1200px;
}

.faq-answer-inner {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem 1.4rem;
    padding-left: calc(1.5rem + 2.875rem + 1.25rem);
}

.faq-item.active .faq-answer-inner {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    margin: 0 1.5rem 0 calc(1.5rem + 2.875rem + 1.25rem);
    padding: 1rem 0 1.3rem 0;
    padding-left: 0;
}

.faq-answer-inner p {
    margin: 0;
    padding-top: 0.15rem;
    color: #64748b;
    font-size: 0.96875rem;
    font-weight: 400;
    line-height: 1.72;
}

.faq-item.active .faq-answer-inner p {
    padding-top: 0;
    color: #64748b;
}

/* Resources */
.resources {
    background-color: var(--bg-gray);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .resource-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 8px 24px rgba(212, 0, 0, 0.1);
    }
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.resource-link:hover {
    color: var(--tertiary-color);
    transform: translateX(5px);
    display: inline-block;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--tertiary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
    scroll-margin-top: 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.contact-tab {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contact-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.contact-main {
    width: 100%;
    min-width: 0;
}

.contact-panel {
    width: 100%;
}

.book-demo-form-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.book-demo-form-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.book-demo-hint {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    background: rgba(212, 0, 0, 0.08);
    color: var(--text-primary);
    line-height: 1.5;
}

.book-demo-hint a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-panel[hidden] {
    display: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    min-height: 2.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--bg-gray);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-primary);
}

.social-link .social-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.social-links .social-link--linkedin {
    color: #0a66c2;
}

.social-links .social-link--instagram {
    color: #e4405f;
}

.social-links .social-link--youtube {
    color: #ff0000;
}

.social-links .social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.footer-social .social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.footer-social .social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.form-group.focused label {
    color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    border-width: 2px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--primary-color);
    border-width: 2px;
}

.error-message {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success {
    animation: slideDown 0.3s ease;
}

/* Fallback: Show content if JavaScript is disabled */
.no-js .problem-card,
.no-js .feature-card,
.no-js .feature-item,
.no-js .feature-section,
.no-js .platform-card,
.no-js .platform-item,
.no-js .technical-item,
.no-js .use-case-card,
.no-js .advantage-card,
.no-js .pricing-card,
.no-js .resource-card,
.no-js .benefit-item,
.no-js .faq-item,
.no-js .section-title,
.no-js .section-subtitle,
.no-js .subscription-card,
.no-js .app-download-banner,
.no-js .how-it-works-step,
.no-js .related-feature-card,
.no-js .feature-page-hero-content,
.no-js .contact-form,
.no-js .contact-info,
.no-js .hero-text,
.no-js .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}


/* Ensure feature cards are visible if they're in viewport on load */
.feature-card {
    will-change: opacity, transform;
}

/* Fallback: Make feature cards visible after a short delay if animation hasn't triggered */
@keyframes forceVisible {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-grid .feature-card:not(.animate-in) {
    animation: forceVisible 0.6s ease 2s forwards;
}

/* Animation utility classes (legacy) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--tertiary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 200px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
}

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


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

.newsletter-form input {
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    transform: translateY(-2px);
}

.back-to-top.visible:hover {
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 3px;
}

.back-to-top:active {
    transform: translateY(0);
}

/* Interactive feature media */
.feature-media-interactive {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 3;
}

.feature-media-interactive:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

.feature-media-interactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem 0 0 -1.625rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 3H5a2 2 0 00-2 2v3M16 3h3a2 2 0 012 2v3M8 21H5a2 2 0 01-2-2v-3M16 21h3a2 2 0 002-2v-3' stroke='%23d40000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.88);
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.feature-media-interactive::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 28, 0.08);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.feature-media-interactive:hover::before,
.feature-media-interactive:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

.feature-media-interactive:hover::after,
.feature-media-interactive:focus-visible::after {
    opacity: 1;
}

.feature-media-interactive:hover .feature-image,
.feature-media-interactive:focus-visible .feature-image {
    transform: scale(1.03);
}

/* Feature media dialog */
.media-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.media-dialog[hidden] {
    display: none;
}

.media-dialog.is-open {
    animation: mediaDialogFadeIn 0.25s ease;
}

.media-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 12, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.media-dialog-panel {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    animation: mediaDialogSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.media-dialog-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.media-dialog-title {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.3;
}

.media-dialog-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.media-dialog-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.media-dialog-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.media-dialog-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    min-height: 0;
}

.media-dialog-figure {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.media-dialog-image {
    width: 100%;
    max-height: min(62vh, 680px);
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
}

.media-dialog-caption {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
}

.media-dialog-nav {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.media-dialog-nav:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.media-dialog-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.media-dialog-nav svg {
    width: 1.25rem;
    height: 1.25rem;
}

.media-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.media-dialog-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.media-dialog-thumb {
    width: 72px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.media-dialog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-dialog-thumb:hover {
    border-color: var(--border-color-dark);
}

.media-dialog-thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.media-dialog-counter {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

body.media-dialog-open {
    overflow: hidden;
}

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

@keyframes mediaDialogSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .section-title,
    .section-subtitle,
    .problem-card,
    .feature-card,
    .platform-card,
    .benefit-item,
    .technical-item,
    .use-case-card,
    .advantage-card,
    .pricing-card,
    .resource-card,
    .faq-item,
    .screenshot-img {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Feature detail pages */
.feature-detail-page main {
    padding-top: 80px;
}

.feature-page-hero {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg-light) 100%);
}

.feature-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.feature-breadcrumb a:hover {
    color: var(--primary-color);
}

.feature-breadcrumb span[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

.feature-page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-page-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 0.5rem;
}

.feature-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.feature-page-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    max-width: 520px;
}

.feature-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-page-hero-media {
    background: var(--bg-gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 2rem;
}

.feature-page-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.feature-page-capabilities {
    padding: 5rem 0;
    background: var(--bg-light);
}

.feature-page-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-page-how-it-works {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.how-it-works-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-it-works-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.how-it-works-step.reverse .how-it-works-media {
    order: 2;
}

.how-it-works-step.reverse .how-it-works-text {
    order: 1;
}

.how-it-works-media {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.how-it-works-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.how-it-works-image.screenshot,
.feature-page-hero-image.screenshot {
    object-fit: cover;
    object-position: top left;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.how-it-works-image.screenshot {
    max-height: 420px;
}

.feature-page-hero-image.screenshot {
    max-height: none;
    height: auto;
}

.how-it-works-media:has(.screenshot) {
    padding: 1.5rem;
    background: var(--bg-gray);
}

.feature-page-hero-media:has(.screenshot):not(.feature-page-hero-media-composite) {
    padding: 1rem;
    min-height: unset;
}

.feature-page-hero:has(.screenshot-mobile),
.feature-page-hero:has(.feature-page-hero-media-composite) {
    padding: 1.5rem 0 2rem;
}

.feature-page-hero:has(.screenshot-mobile) .feature-page-hero-grid,
.feature-page-hero:has(.feature-page-hero-media-composite) .feature-page-hero-grid {
    align-items: center;
}

.feature-page-hero-media.feature-page-hero-media-composite {
    background: transparent;
    border-radius: 0;
    min-height: unset;
    padding: 0;
    box-shadow: none;
}

.feature-page-hero-media-composite {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: unset;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.feature-page-hero-illustration {
    flex: 1 1 58%;
    width: auto;
    max-width: 58%;
    max-height: min(280px, calc(100svh - 320px));
    object-fit: contain;
    object-position: bottom center;
    padding: 0;
    display: block;
}

.feature-page-hero-media-composite .feature-page-hero-phone,
.feature-page-hero-phone.feature-page-hero-image.screenshot {
    object-fit: contain;
    object-position: bottom center;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.feature-page-hero-phone {
    position: static;
    flex: 0 0 auto;
    width: auto;
    max-width: 42%;
    max-height: min(340px, calc(100svh - 300px));
    margin-left: -1.5rem;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    transform: none;
    right: auto;
    bottom: auto;
}

.feature-page-hero-image.screenshot-mobile:not(.feature-page-hero-phone) {
    object-fit: contain;
    object-position: center;
    max-width: min(240px, 32vw);
    max-height: min(420px, calc(100svh - 280px));
    width: auto;
    height: auto;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.how-it-works-image.screenshot-mobile {
    object-fit: contain;
    object-position: center;
    max-width: min(220px, 70vw);
    max-height: min(400px, 45vh);
    width: auto;
    height: auto;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.feature-page-hero-media:has(.screenshot-mobile):not(.feature-page-hero-media-composite) {
    padding: 1rem 0;
    min-height: unset;
    background: transparent;
}

.how-it-works-media:has(.screenshot-mobile) {
    padding: 1.5rem 1rem;
    background: transparent;
}

.how-it-works-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-gray);
}

.how-it-works-step-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.how-it-works-step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.how-it-works-step-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    max-width: 440px;
}

.feature-page-related {
    padding: 5rem 0;
    background: var(--bg-light);
}

.related-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.related-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.related-feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 0, 0, 0.08);
}

.related-feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.related-feature-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.feature-page-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.feature-page-error {
    padding: 8rem 0;
    text-align: center;
}

.feature-page-error h1 {
    margin-bottom: 1rem;
}

.feature-page-error p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Legal pages */
.legal-page main {
    padding-top: var(--nav-height);
}

.legal-hero {
    background: var(--bg-gray);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-hero .container {
    max-width: 48rem;
}

.legal-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.legal-meta {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-main .container {
    max-width: 48rem;
}

.legal-doc {
    padding: 3rem 0 5rem;
}

.legal-doc h2 {
    font-size: 1.375rem;
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc h3 {
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-doc p,
.legal-doc li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-doc p {
    margin-bottom: 1rem;
}

.legal-doc ul,
.legal-doc ol {
    margin: 0 0 1.25rem 1.25rem;
}

.legal-doc li {
    margin-bottom: 0.5rem;
}

.legal-doc a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.legal-doc a:hover {
    text-decoration: underline;
}

.legal-doc strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-intro {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-intro p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.legal-intro p:last-of-type:not(.legal-disclaimer) {
    margin-bottom: 1rem;
}

.legal-disclaimer {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.legal-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.legal-related h2 {
    font-size: 1.125rem;
    margin-top: 0;
}

.legal-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.legal-related a {
    font-weight: 600;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.legal-table th {
    color: var(--text-primary);
    border-bottom-width: 2px;
}

.legal-table th:first-child,
.legal-table td:first-child {
    padding-left: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

