/* ============================================
   AUTHENT-INK WEBSITE STYLES
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors */
    --color-navy: #033F63;
    --color-teal: #28666E;
    --color-sage: #7C9885;
    --color-olive: #B5B682;
    --color-salmon: #E0785F;
    --color-burnt-orange: #E23E1E;
    --color-gold: #FF9505;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-off-white: #f9f9f9;
    --color-light-gray: #f5f5f5;
    --color-gray: #e0e0e0;
    --color-dark-gray: #666666;
    --color-text: #333333;
    --color-black: #1a1a1a;

    /* Typography */
    --font-primary: 'Quicksand', sans-serif;
    --font-logo: 'Dancing Script', cursive;

    /* Spacing */
    --container-width: 1300px;
    --section-padding: 80px;
    --section-padding-mobile: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 23px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-dark-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 50px;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-gray) 100%);
    border-radius: var(--radius-md);
}

/* Placeholder inside feature cards should fill available space */
.feature-image.placeholder-image {
    flex: 1;
    min-height: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition-medium);
    text-align: center;
}

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

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

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

.btn-accent:hover {
    background-color: #e6860a;
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background-color: var(--color-off-white);
    transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    padding: 15px 0;
    background-color: var(--color-black);
    position: relative;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

/* Mobile menu button — hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-white);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.header .btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: none;
    position: relative;
    z-index: 1;
}

@property --shimmer-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes shimmer-border {
    from {
        --shimmer-angle: 0deg;
    }
    to {
        --shimmer-angle: 360deg;
    }
}

.header .btn-primary::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(
        var(--shimmer-angle, 0deg),
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 65%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: shimmer-border 5s linear infinite;
}

.header .btn-primary:hover {
    background-color: #e6860a;
    color: var(--color-white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 30px 0 60px;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-off-white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--color-dark-gray);
    margin-bottom: 30px;
}

.hero-image-placeholder {
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.comparison-image {
    display: flex;
    gap: 40px;
    font-size: 1.5rem;
    font-weight: 600;
}

.comparison-image .ignored {
    color: var(--color-dark-gray);
}

.comparison-image .read {
    color: var(--color-gold);
}

/* Hero Image Container with Scribble */
.hero-image {
    position: relative;
    z-index: 1;
}

/* Floating Gradient Orbs - behind video */
.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FF9505 0%, rgba(255, 149, 5, 0) 70%);
    top: -80px;
    right: -100px;
    animation: float-1 8s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #FF9505 0%, rgba(255, 149, 5, 0) 70%);
    bottom: -60px;
    left: -80px;
    animation: float-2 10s ease-in-out infinite;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #FF9505 0%, rgba(255, 149, 5, 0) 70%);
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    animation: float-3 12s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, 15px) scale(1.05);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15px, -20px) scale(1.08);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translateY(-50%) translate(0, 0) scale(1);
    }
    50% {
        transform: translateY(-50%) translate(-10px, 10px) scale(1.03);
    }
}

/* Video Depth Layers */
.video-depth-layer {
    position: absolute;
    border-radius: 8px;
    pointer-events: none;
}

.video-depth-1,
.video-depth-2 {
    display: none;
}

.video-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 149, 5, 1) 0%, rgba(255, 149, 5, 0.8) 25%, rgba(255, 149, 5, 0.5) 45%, rgba(255, 149, 5, 0.2) 60%, transparent 75%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

/* Hero Video Container */
.hero-video-container {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-black);
    border: 2px solid var(--color-black);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-black);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    font-size: 0;
    cursor: pointer;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.play-button:hover {
    box-shadow: 0 0 20px rgba(255, 149, 5, 0.7), 0 0 40px rgba(255, 149, 5, 0.4);
}

.play-button svg {
    display: block;
}

.video-player {
    width: 100%;
    height: 100%;
}

.video-player iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   LOGO MARQUEE
   ============================================ */
.logo-marquee {
    padding: 15px 0;
    background-color: var(--color-off-white);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 25s linear infinite;
    will-change: transform;
}

.marquee-content {
    display: flex;
    gap: 80px;
    padding-right: 80px;
    flex-shrink: 0;
}

.logo-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.partner-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ============================================
   RESEARCH SECTION
   ============================================ */
.research {
    padding: var(--section-padding) 0;
}

.research-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.research-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.research-tab-item {
    border-bottom: 1px solid var(--color-gray);
}

.research-tab-item:last-child {
    border-bottom: none;
}

.research-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    width: 100%;
    background: var(--color-white);
    border: none;
    border-left: 4px solid transparent;
    text-align: left;
    transition: var(--transition-medium);
    cursor: pointer;
}

.research-tab:hover {
    background: var(--color-light-gray);
}

.research-tab.active {
    background: var(--color-light-gray);
    border-left-color: var(--color-gold);
}

.tab-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Tab Description - shown under selected tab */
.tab-description {
    display: none;
    padding: 0 20px 20px 24px;
    background: var(--color-light-gray);
}

.tab-description.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-description p {
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
    margin: 0;
}

.research-panels {
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-panel {
    display: none;
    width: 100%;
}

.research-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.panel-chart h4 {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Fixed Vertical Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    height: 380px;
    padding: 0 20px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    max-width: 90px;
    height: 100%;
}

.bar-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark-gray);
    margin-bottom: 8px;
}

.bar-value.highlight {
    color: var(--color-gold);
    font-weight: 700;
}

.bar-wrapper {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: var(--color-gray);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bars start at 0 height when panel is not animated */
.research-panel:not(.animated) .bar {
    height: 0 !important;
}

.bar.bar-highlight {
    background: var(--color-gold);
}

.bar-label {
    font-size: 1.05rem;
    text-align: center;
    color: var(--color-dark-gray);
    margin-top: 10px;
    line-height: 1.3;
    min-height: 30px;
}

/* Research Panel Graphics */
.panel-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* Halo Effect Graphic - Head Silhouette with Halo */
.halo-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.halo-image {
    width: auto;
    max-width: 100%;
    height: 450px;
    object-fit: contain;
}

.halo-note {
    margin-top: 20px;
    font-size: 1.05rem;
    text-align: center;
    color: var(--color-dark-gray);
    max-width: 550px;
}

/* Uniform sizing for all research panel graphics */
.roi-graphic,
.memorable-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roi-image {
    width: auto;
    max-width: 100%;
    height: 749px;
    object-fit: contain;
}

.memorable-image {
    width: auto;
    max-width: 100%;
    height: 624px;
    object-fit: contain;
}

/* Research Tab Link (View All Research) */
.research-tab-link {
    text-decoration: none;
    border-left-color: var(--color-gold);
}

.research-tab-link .tab-title {
    color: var(--color-gold);
    font-size: 1.05rem;
}

.research-tab-link .arrow {
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 4px;
}

.research-tab-link:hover {
    background: var(--color-light-gray);
}

.research-tab-link:hover .tab-title {
    color: #e6860a;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    perspective: 1000px;
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

@media (hover: hover) {
    .feature-card:hover .feature-card-inner {
        transform: rotateX(180deg);
    }
}

.feature-card.flipped .feature-card-inner {
    transform: rotateX(180deg);
}

.feature-front, .feature-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    overflow: hidden;
}

.feature-front {
    background: var(--color-light-gray);
}

.feature-front h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.feature-subtitle {
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    text-align: center;
}

/* Title area with minimum height to ensure uniform image positioning */
.feature-title-area {
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.feature-image {
    flex: 1;
    margin-top: 10px;
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -25px;
    width: calc(100% + 50px);
    max-width: none;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
}

/* Cards 4, 5, 6, 8: Use cover (these images look good filling the space) */
.feature-card:nth-child(4) .feature-image,
.feature-card:nth-child(5) .feature-image,
.feature-card:nth-child(6) .feature-image,
.feature-card:nth-child(8) .feature-image {
    object-fit: cover;
    object-position: center;
}

/* Card 3: Use your own handwriting - scale up but anchor to bottom so hands are visible */
.feature-card:nth-child(3) .feature-image {
    object-fit: cover;
    object-position: center bottom;
}

/* Card 1: Notes/envelopes - scale up and move higher */
.feature-card:nth-child(1) .feature-image {
    transform: scale(1.1) translateY(5px);
    transform-origin: center center;
}

/* Card 2: Written not printed - scale up to fill space, anchor to bottom */
.feature-card:nth-child(2) .feature-image {
    transform: scale(1.05);
    transform-origin: center bottom;
}

/* Cards 7, 9: Scale images 10% larger and shift down */
.feature-card:nth-child(7) .feature-image,
.feature-card:nth-child(9) .feature-image {
    transform: scale(1.1) translateY(15px);
    transform-origin: center center;
}

/* Card 4: Personalize - also needs left-aligned positioning */
.feature-card:nth-child(4) .feature-image {
    width: calc(100% + 25px);
    margin-left: -25px;
    margin-right: 0;
    object-position: left center;
}

.feature-back {
    background: var(--color-light-gray);
    transform: rotateX(180deg);
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
}

.feature-back h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.feature-back .feature-title-area {
    min-height: 55px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    width: 100%;
    border-bottom: 1px solid var(--color-gray);
}

.feature-back .feature-subtitle {
    display: block;
    text-align: center;
}

.feature-back p {
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
    text-align: left;
}

.feature-note {
    margin-top: 15px;
    font-size: 1rem;
    font-style: italic;
    color: var(--color-gold);
    text-align: center;
}

/* ============================================
   TECHNOLOGY SECTION - Stacked Cards
   ============================================ */
.technology {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.tech-stack-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tech-stack {
    position: relative;
    height: 650px;
    cursor: pointer;
    perspective: 1200px;
    margin-bottom: 20px;
    transform-style: preserve-3d;
}

.tech-stack-card {
    position: absolute;
    width: 100%;
    height: 400px;
    bottom: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.5s ease;
    transform-origin: center bottom;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Grey header bar with card number */
.tech-stack-card::before {
    content: attr(data-card-number);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 84px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 25px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    z-index: 1;
}

.tech-stack-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 110px 40px 40px 40px; /* Extra top padding for header */
    height: 100%;
    align-items: center;
}

.tech-stack-text {
    text-align: left;
}

.tech-stack-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-black);
}

.tech-stack-text p {
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.tech-stack-image {
    width: 120%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* Stacked card positions - cards stack upward with visible headers */
.tech-stack-card[data-index="0"] {
    z-index: 5;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.tech-stack-card[data-index="1"] {
    z-index: 4;
    transform: translateY(-70px) scale(0.96);
    opacity: 1;
}

.tech-stack-card[data-index="2"] {
    z-index: 3;
    transform: translateY(-135px) scale(0.92);
    opacity: 1;
}

.tech-stack-card[data-index="3"] {
    z-index: 2;
    transform: translateY(-195px) scale(0.88);
    opacity: 1;
}

.tech-stack-card[data-index="4"] {
    z-index: 1;
    transform: translateY(-250px) scale(0.84);
    opacity: 1;
}

/* Card being shuffled to back - uses CSS transition, not keyframes */
.tech-stack-card.shuffling {
    z-index: 0 !important;
    transform: translateY(-250px) scale(0.84);
}

.tech-stack-hint {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    margin-top: 30px;
}

/* Tech stack indicators */
.tech-stack-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tech-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray);
    cursor: pointer;
    transition: var(--transition-medium);
}

.tech-indicator.active {
    background: var(--color-gold);
    transform: scale(1.2);
}

/* ============================================
   PROCESS SECTION - Wavy Stepper
   ============================================ */
.process {
    padding: var(--section-padding) 0;
}

.process-stepper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wave-path-bg {
    stroke: #e8e8e8;
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
}

.wave-path-animated {
    stroke: var(--color-gold);
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    /* dasharray and dashoffset controlled by JavaScript */
}

.stepper-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 100px 60px;
}

.stepper-step {
    position: relative;
}

/* Grid layout: 1-2-3 top row, 4-5-6 bottom row (all L to R) */
.stepper-step:nth-child(1) { grid-column: 1; grid-row: 1; }
.stepper-step:nth-child(2) { grid-column: 2; grid-row: 1; }
.stepper-step:nth-child(3) { grid-column: 3; grid-row: 1; }
.stepper-step:nth-child(4) { grid-column: 1; grid-row: 2; }
.stepper-step:nth-child(5) { grid-column: 2; grid-row: 2; }
.stepper-step:nth-child(6) { grid-column: 3; grid-row: 2; }

.stepper-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    min-height: 190px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 4px solid #e8e8e8;
    transform: scale(1);
}

.stepper-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stepper-card.active {
    border-color: var(--color-gold);
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 149, 5, 0.2);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-light-gray);
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition-medium);
}

.stepper-card.active .step-number {
    background: var(--color-gold);
    color: var(--color-white);
}

.step-badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    margin-left: 10px;
    vertical-align: middle;
}

.stepper-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-black);
}

.stepper-card p {
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* ============================================
   WHY AUTHENT-INK SECTION
   ============================================ */
.why-us {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.why-us-compare {
    max-width: 1000px;
    margin: 0 auto;
}

.why-us .compare-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 0 14px;
    border-bottom: 2px solid var(--color-gray);
    margin-bottom: 0;
}

.why-us .compare-header span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 24px;
}

.why-us .compare-label-others {
    color: var(--color-dark-gray);
}

.why-us .compare-label-us {
    color: var(--color-gold);
}

.why-us .compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--color-gray);
}

.why-us .compare-row:last-child {
    border-bottom: 2px solid var(--color-gray);
}

.why-us .compare-others {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.why-us .compare-us {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 149, 5, 0.05);
    border-left: 3px solid var(--color-gold);
}

.why-us .compare-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.why-us .compare-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    flex-shrink: 0;
}

.why-us .compare-icon-x {
    background: var(--color-light-gray);
}

.why-us .compare-icon-x svg {
    stroke: var(--color-dark-gray);
    stroke-width: 2.5;
}

.why-us .compare-icon-check {
    background: var(--color-gold);
}

.why-us .compare-icon-check svg {
    stroke: var(--color-white);
    stroke-width: 3;
}

.why-us .compare-others p,
.why-us .compare-us p {
    font-size: 0.95rem;
    color: var(--color-black);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .why-us .compare-row,
    .why-us .compare-header {
        grid-template-columns: 1fr;
    }

    .why-us .compare-header {
        display: none !important;
    }

    .why-us .compare-us {
        border-left: none;
        border-top: none;
    }

    .why-us .compare-others,
    .why-us .compare-us {
        padding: 20px 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Hide icon circles on mobile */
    .why-us .compare-others > div[style*="border-radius"],
    .why-us .compare-us > div[style*="border-radius"] {
        display: none !important;
    }

    .why-us .compare-others::before {
        content: 'THE INDUSTRY';
        display: block;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-dark-gray);
        margin-bottom: 4px;
    }

    .why-us .compare-us::before {
        content: 'AUTHENT-INK';
        display: block;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-gold);
        margin-bottom: 4px;
    }

    .why-us .compare-others p,
    .why-us .compare-us p {
        font-size: 0.9rem;
    }

    .pill-box, .crm-box, .trigger-box {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
    }

    .marquee-content {
        gap: 40px;
        padding-right: 40px;
    }

    .partner-logo {
        height: 50px;
    }
}

/* ============================================
   CRM INTEGRATION SECTION
   ============================================ */
.crm-integration {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.crm-card {
    background: var(--color-light-gray);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.coming-soon-badge {
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;
}

.crm-description {
    text-align: center;
    font-size: 1rem;
    color: var(--color-dark-gray);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 35px;
}

.crm-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

/* Flow item wrapper for box + label */
.crm-flow-item, .trigger-flow-item, .flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.crm-flow-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    text-align: center;
}

/* All boxes same base style */
.pill-box, .crm-box, .trigger-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-lg);
    padding: 35px 40px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.trigger-box {
    width: 320px;
}

.pill-box:hover, .crm-box:hover, .trigger-box:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(255, 149, 5, 0.15);
    transform: translateY(-2px);
}

.pill-box svg {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    stroke-width: 1.5;
    flex-shrink: 0;
}

.pill-box span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    white-space: nowrap;
}

/* CRM scrolling - grouped icon + text */
.crm-scroll-wrapper {
    height: 48px;
    overflow: hidden;
}

.crm-scroll-items {
    display: flex;
    flex-direction: column;
    animation: rollItems 10s linear infinite;
}

.crm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
}

.crm-item .crm-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.crm-item span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    white-space: nowrap;
}

/* Trigger scrolling - grouped icon + text */
.trigger-scroll-wrapper {
    height: 48px;
    overflow: hidden;
}

.trigger-scroll-items {
    display: flex;
    flex-direction: column;
    animation: rollItems 10s linear infinite;
}

.trigger-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
}

.trigger-item svg {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    stroke-width: 1.5;
    flex-shrink: 0;
}

.trigger-item span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    white-space: nowrap;
}

/* Keyframe animation for rolling grouped items */
@keyframes rollItems {
    0%, 16% { transform: translateY(0); }
    20%, 36% { transform: translateY(-48px); }
    40%, 56% { transform: translateY(-96px); }
    60%, 76% { transform: translateY(-144px); }
    80%, 96% { transform: translateY(-192px); }
    100% { transform: translateY(0); }
}

.flow-arrow {
    align-self: flex-start;
    margin-top: 38px;
}

.flow-arrow svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-gold);
    stroke-width: 3;
    fill: none;
}

/* ============================================
   OUR WORK SECTION
   ============================================ */
.our-work {
    padding: var(--section-padding) 0;
}

/* Samples Container */
.samples-container {
    max-width: 1100px;
    margin: 0 auto 40px;
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: 30px 0;
    overflow: hidden;
    position: relative;
}

/* Horizontal scroll wrapper */
.samples-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 10px 40px;
}

.samples-scroll::-webkit-scrollbar {
    display: none;
}

.samples-scroll:active {
    cursor: grabbing;
}

/* Horizontal flex row */
.samples-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
}

.sample-item {
    flex-shrink: 0;
    width: 220px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.sample-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.sample-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.work-cta {
    text-align: center;
}

/* ============================================
   CASE STUDIES SECTION
   ============================================ */
.case-studies {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.case-study-carousel {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-cards {
    position: relative;
    height: 350px;
}

.case-study-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 4px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.5s ease;
}

.case-study-card[data-index="0"] {
    z-index: 4;
    transform: rotate(0deg) translate(0, 0);
    opacity: 1;
}

.case-study-card[data-index="1"] {
    z-index: 3;
    transform: rotate(2deg) translate(4px, 2px);
    opacity: 1;
}

.case-study-card[data-index="2"] {
    z-index: 2;
    transform: rotate(-1.5deg) translate(-3px, 1px);
    opacity: 1;
}

.case-study-card[data-index="3"] {
    z-index: 1;
    transform: rotate(1deg) translate(2px, 3px);
    opacity: 1;
}

.case-study-card.shuffling {
    z-index: 0 !important;
    transform: rotate(-4deg) translate(-30px, 15px);
    opacity: 0.7;
}

.case-study-card:not([data-index="0"]) {
    pointer-events: none;
}

.case-study-logo {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.case-study-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-study-content {
    position: relative;
}

.case-study-text {
    display: none;
}

.case-study-text.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.case-study-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-black);
}

.case-study-text p {
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.case-study-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: -15px;
    grid-column: 1;
    grid-row: 2;
}

.case-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
}

.case-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

.case-nav-btn:hover {
    background: #e08600;
    transform: scale(1.05);
}

.case-study-progress {
    width: 80px;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.case-study-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-gold);
    border-radius: 4px;
    animation: progressFill 10s linear;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.faq-header .section-label,
.faq-header .section-title {
    text-align: left;
}

.faq-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.faq-subtitle {
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    background: var(--color-light-gray);
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.faq-question:hover {
    background: var(--color-gray);
}

.faq-item.active .faq-question {
    background: var(--color-black);
    color: var(--color-white);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: var(--transition-medium);
}

.faq-icon svg {
    width: 100%;
    height: 100%;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer p {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

/* FAQ Show More */
.faq-accordion .faq-item.faq-hidden {
    display: none;
}

.faq-accordion.faq-expanded .faq-item.faq-hidden {
    display: block;
    animation: faqFadeIn 0.4s ease forwards;
}

.faq-accordion.faq-collapsing .faq-item.faq-hidden {
    display: block;
    animation: faqFadeOut 0.3s ease forwards;
}

.faq-accordion.faq-expanded .faq-item.faq-hidden .faq-question,
.faq-accordion.faq-collapsing .faq-item.faq-hidden .faq-question {
    border-radius: var(--radius-md);
}

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

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

.faq-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    cursor: pointer;
    transition: var(--transition-medium);
}

.faq-show-more:hover {
    color: var(--color-gold);
}

.faq-show-more.expanded {
    color: var(--color-gold);
}

.faq-show-more svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-accordion.faq-expanded .faq-show-more svg {
    transform: rotate(180deg);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 96px 0;
    background: transparent;
    position: relative;
}

.cta-banner .container {
    background: var(--color-gold);
    border-radius: 24px;
    padding: 72px 40px;
    position: relative;
    overflow: hidden;
}

/* Radiating lines from center */
.cta-banner .container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 8deg,
        rgba(255,255,255,0.08) 8deg 10deg
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.testimonials .section-title {
    margin-bottom: 50px;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.testimonial-card {
    flex: 0 0 750px;
    min-width: 750px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 48px;
    border: 1px solid var(--color-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    opacity: 0.4;
    transform: scale(0.95);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.testimonial-stars span {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.testimonial-quote {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-metric {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--color-gray);
    border-bottom: 1px solid var(--color-gray);
    margin-bottom: 16px;
}

.testimonial-metric .metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-gold);
}

.testimonial-metric .metric-label {
    font-size: 1rem;
    color: var(--color-gold);
}

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

.testimonial-logo {
    height: 80px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
}

.testimonial-title {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    margin-top: 2px;
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.testimonial-nav-btn:hover {
    background: #e6860a;
    transform: scale(1.05);
}

.testimonial-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.testimonial-progress {
    width: 120px;
    height: 4px;
    background: var(--color-gray);
    border-radius: 2px;
    overflow: hidden;
}

.testimonial-progress-bar {
    height: 100%;
    background: var(--color-gold);
    width: 0%;
    border-radius: 2px;
    animation: testimonialProgressFill 10s linear;
}

@keyframes testimonialProgressFill {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 900px) {
    .testimonial-card {
        padding: 28px max(32px, calc((750px - 90vw) / 2 + 20px));
    }

    .testimonial-quote {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .testimonial-metric .metric-number {
        font-size: 1.6rem;
    }

    .testimonial-metric {
        padding: 12px 0;
        margin-bottom: 12px;
    }

    .testimonial-footer {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .testimonial-logo {
        height: 60px;
        max-width: 100px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    padding: 40px 0 30px;
    background: var(--color-black);
    border-top: none;
}

.footer-content {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.footer-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.footer-links .btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
    margin-left: auto;
}

.footer-links .btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .samples-container {
        max-width: 100%;
    }

    .samples-scroll {
        padding: 10px 30px;
    }

    .sample-item {
        width: 200px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-text {
        text-align: center;
    }

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

    .research-content {
        grid-template-columns: 1fr;
    }

    .research-tabs {
        margin-bottom: 30px;
    }

    .research-tab-item {
        border-bottom: 1px solid var(--color-gray);
    }

    .tab-description {
        padding: 0 20px 15px 24px;
    }

    .research-panels {
        height: 600px;
        padding: 16px;
    }

    .panel-graphic {
        min-height: auto;
    }

    .halo-image,
    .roi-image,
    .memorable-image {
        height: auto;
        width: 100%;
        max-height: 568px;
        object-fit: contain;
    }

    .halo-image {
        max-height: 440px;
    }

    .halo-note {
        font-size: 0.85rem;
        margin-top: 12px;
    }

    .panel-chart h4 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .bar-chart {
        gap: 10px;
        height: 420px;
    }

    .bar-wrapper {
        height: 320px;
    }

    .bar-item {
        max-width: 120px;
    }

    .bar-value {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .bar-label {
        font-size: 0.65rem;
    }

    /* Tech stack tablet */
    .tech-stack-card-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-stack-image {
        min-height: 150px;
        order: -1;
    }

    /* Process stepper tablet */
    .stepper-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stepper-step:nth-child(1) { grid-column: 1; grid-row: 1; }
    .stepper-step:nth-child(2) { grid-column: 2; grid-row: 1; }
    .stepper-step:nth-child(3) { grid-column: 1; grid-row: 2; }
    .stepper-step:nth-child(4) { grid-column: 2; grid-row: 2; }
    .stepper-step:nth-child(5) { grid-column: 1; grid-row: 3; }
    .stepper-step:nth-child(6) { grid-column: 2; grid-row: 3; }

    .process-wave {
        display: none;
    }

    .case-study-carousel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-study-cards {
        width: 100%;
        height: 250px;
        max-width: 400px;
        margin: 0 auto;
    }

    .case-study-card {
        border: 3px solid #e8e8e8;
    }

    .case-study-logo {
        height: 100%;
        padding: 30px;
    }

    .case-study-logo img {
        max-width: 80%;
        max-height: 80%;
    }

    .case-study-nav {
        grid-column: auto;
        grid-row: auto;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-header .section-label,
    .faq-header .section-title {
        text-align: center;
    }

    .faq-subtitle {
        text-align: center;
        margin-bottom: 40px;
    }

    .faq-buttons {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-links .btn-login {
        margin-left: 0;
    }

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

    /* CRM boxes — flex instead of fixed widths */
    .crm-box, .trigger-box, .pill-box {
        width: auto;
        min-width: 0;
        padding: 24px 20px;
        flex: 1;
    }

    .pill-box span {
        font-size: 1.05rem;
    }

    .crm-flow-label {
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 24px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Mobile hamburger menu */
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-right {
        gap: 0;
    }

    .nav-right .nav-links,
    .nav-right > .btn {
        display: none;
    }

    .nav-right.open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 999;
        padding: 20px;
    }

    .nav-right.open .mobile-menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-right.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        max-width: 300px;
    }

    .nav-right .nav-links li {
        width: 100%;
    }

    .nav-right .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 1.25rem;
        display: block;
        width: 100%;
    }

    .nav-right.open > .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .hero-image {
        order: -1;
    }

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

    /* Stepper gap reduction */
    .stepper-steps {
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .footer-links .btn-login {
        margin-top: 8px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        aspect-ratio: 1 / 1;
        max-width: 100%;
    }

    .feature-front {
        padding: 18px;
    }

    .feature-front h3 {
        font-size: 1rem;
    }

    .feature-title-area {
        min-height: 40px;
    }

    .feature-image {
        margin-left: -18px;
        margin-right: -18px;
        margin-bottom: -18px;
        width: calc(100% + 36px);
    }

    .feature-back {
        padding: 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .feature-back h3 {
        font-size: 1.05rem;
    }

    .feature-back .feature-title-area {
        min-height: auto;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .feature-back .feature-subtitle {
        font-size: 0.9rem;
    }

    .feature-back p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .feature-note {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    /* Tech stack mobile */
    .tech-stack {
        height: 480px;
    }

    .tech-stack-card {
        height: 260px;
    }

    .tech-stack-card::before {
        height: 52px;
        font-size: 1.2rem;
        padding-left: 16px;
    }

    .tech-stack-card-inner {
        padding: 65px 24px 24px 24px;
        gap: 0;
    }

    .tech-stack-image {
        display: none;
    }

    .tech-stack-text h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .tech-stack-text p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .tech-stack-card[data-index="1"] {
        transform: translateY(-50px) scale(0.97);
    }
    .tech-stack-card[data-index="2"] {
        transform: translateY(-96px) scale(0.94);
    }
    .tech-stack-card[data-index="3"] {
        transform: translateY(-138px) scale(0.91);
    }
    .tech-stack-card[data-index="4"] {
        transform: translateY(-176px) scale(0.88);
    }

    .tech-stack-card.shuffling {
        transform: translateY(-176px) scale(0.88);
    }

    /* Process stepper mobile */
    .stepper-steps {
        grid-template-columns: 1fr;
    }

    .stepper-step:nth-child(1),
    .stepper-step:nth-child(2),
    .stepper-step:nth-child(3),
    .stepper-step:nth-child(4),
    .stepper-step:nth-child(5),
    .stepper-step:nth-child(6) {
        grid-column: 1;
        grid-row: auto;
    }

    /* Case studies mobile */
    .case-study-cards {
        height: 200px;
        max-width: 300px;
    }

    .case-study-logo {
        padding: 20px;
    }

    .crm-flow {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .crm-card {
        padding: 30px 20px;
    }

    .crm-description {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .crm-flow-item, .trigger-flow-item, .flow-item {
        gap: 8px;
    }

    .pill-box, .crm-box, .trigger-box {
        padding: 18px 16px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        align-self: center;
        margin-top: 0;
    }

    .crm-flow-label {
        font-size: 0.8rem;
    }

    /* Grey graphics cards — reduce height on mobile */
    .research-panels {
        height: auto;
        padding: 20px;
    }

    .bar-chart {
        height: 250px;
    }

    .bar-wrapper {
        height: 180px;
    }

    .halo-image,
    .roi-image,
    .memorable-image {
        max-height: 300px;
    }

    .halo-image {
        max-height: 250px;
    }

    .samples-container {
        max-width: 100%;
    }

    .samples-scroll {
        padding: 10px 25px;
    }

    .sample-item {
        width: 180px;
    }

    .samples-grid {
        gap: 16px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-banner {
        padding: 48px 0;
    }

    .cta-banner .container {
        padding: 48px 24px;
        margin-left: 16px;
        margin-right: 16px;
        width: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .samples-container {
        max-width: 100%;
    }

    .samples-scroll {
        padding: 10px 20px;
    }

    .sample-item {
        width: 160px;
    }

    .samples-grid {
        gap: 12px;
    }

    body {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .testimonial-card {
        padding: 24px max(24px, calc((750px - 90vw) / 2 + 16px));
    }

    .testimonial-quote {
        font-size: 0.85rem;
    }

    .bar-chart {
        gap: 10px;
    }

    .bar-item {
        max-width: 50px;
    }

    .bar-label {
        font-size: 0.6rem;
    }

    .tech-card-content {
        padding: 25px;
    }

    .tech-card-content h3 {
        font-size: 1.4rem;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}
