:root {
    --primary: #4F7BFF;
    --primary-dark: #3B66E6;
    --secondary: #4F7BFF;
    --accent: #6B92FF;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Manrope', 'Trebuchet MS', 'Lucida Grande', sans-serif;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden; 
    max-width: 100vw; 
}

/* typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

p {
    color: var(--gray);
    margin-bottom: 0.875rem;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* utility classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    border: 3px solid transparent;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    border: 3px solid var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border: 3px solid var(--primary);
    background: var(--gray-lighter);
    transform: translateY(-2px);
}

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

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

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

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    background: var(--gradient);
    color: var(--white);
    border: 3px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-links a.btn-nav {
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.nav-links a.btn-nav::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    ) !important;
    transition: left 0.6s ease !important;
    z-index: -1 !important;
}

.nav-links a.btn-nav:hover::before {
    left: 100% !important;
}

.nav-links a.btn-nav {
    position: relative;
    z-index: 2;
}

.nav-links a.btn-nav:hover {
    background: transparent;
    color: var(--primary);
    border: 3px solid var(--primary);
}



/* sticky navigation header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-lighter);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(79, 123, 255, 0.1);
    color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle .theme-icon {
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.theme-toggle .theme-icon.rotate-out {
    transform: rotateY(90deg);
    opacity: 0;
}

.theme-toggle .theme-icon.rotate-in {
    transform: rotateY(0deg);
    opacity: 1;
}

.header img {
    width: 120px;
    height: 32px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo img {
    flex-shrink: 0;
    height: auto;
}

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


.nav-links a {
    color: var(--gray);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* main landing section */
.hero {
    padding: 8rem 0 4rem;
    background: #f9fafb;
    position: relative;
}

/* .hero .btn-outline:hover {
    border: 3px solid var(--gray-light) !important;
} */

.hero::before {
    content: '';
    position: absolute;.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn > * {
  position: relative;
  z-index: 2;
}

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

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

.btn-outline::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.4),
    transparent
  );
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--secondary-color);
}
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(30px) translateY(-30px); }
    66% { transform: translateX(-20px) translateY(20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}


.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        flex: none;
        width: 80%;
        max-width: 280px;
        min-width: auto;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: start;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray);
    font-size: 0.85rem;
    white-space: nowrap;
}

.hero-feature i {
    color: var(--success);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.hero-feature svg {
    color: var(--success);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* hero image */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockups {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* mobile device mockup */
.phone-mockup {
    position: absolute;
    left: calc(50% + 140px);
    top: calc(50% - 40px);
    transform: translate(-50%, -50%) scale(0.75);
    z-index: 2;
    animation: float-phone 4s ease-in-out infinite;
}

@keyframes float-phone {
    0%, 100% { transform: translate(-50%, -50%) scale(0.75) rotate(5deg); }
    50% { transform: translate(-50%, calc(-50% - 10px)) scale(0.75) rotate(3deg); }
}

.phone-frame {
    width: 180px;
    height: 360px;
    background: #1f2937;
    border-radius: 24px;
    padding: 4px 12px 12px 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: calc(100% - 20px);
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
}

.phone-screen img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    margin: 4px;
    border-radius: 12px;
}

.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

/* desktop device mockup */
.laptop-mockup {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 1;
    animation: float-laptop 4s ease-in-out infinite 2s;
}

@keyframes float-laptop {
    0%, 100% { transform: translate(-50%, -50%) scale(1.1); }
    50% { transform: translate(-50%, -55%) scale(1.1); }
}

.laptop-frame {
    width: 320px;
    height: 200px;
    background: #1f2937;
    border-radius: 12px 12px 4px 4px;
    padding: 8px 8px 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.laptop-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.laptop-screen img {
    width: calc(100% - 6px);
    /* height: calc(100% - 6px); */
    object-fit: cover;
    margin: 3px;
    border-radius: 3px;
}

.laptop-base {
    width: 340px;
    height: 20px;
    background: linear-gradient(to bottom, #374151, #1f2937);
    border-radius: 0 0 20px 20px;
    margin: -4px auto 0;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 14px;
    background: linear-gradient(to bottom, #4b5563, #374151);
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.laptop-base::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: #1f2937;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
}

/* features section */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

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

.feature-card {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.gradient-icon {
    background: var(--gradient);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-card i {
    font-size: 1.2rem;
}

/* demo section */
.demo-section {
    padding: 5rem 0;
    background: #f1f5f9;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-controls {
    text-align: center;
    margin-bottom: 3rem;
}

.form-toggle {
    position: relative;
    display: inline-flex;
    background: var(--gray-lighter);
    border-radius: 3rem;
    padding: 0.375rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-toggle::before {
    content: '';
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    width: calc(50% - 0.375rem);
    height: calc(100% - 0.75rem);
    background: var(--gradient);
    border-radius: calc(3rem - 0.375rem);
    box-shadow: 
        0 4px 12px rgba(79, 123, 255, 0.3),
        0 2px 6px rgba(79, 123, 255, 0.2);
    transition: all 0.55s cubic-bezier(0.85, -0.8, 0.2, 1.8);
    z-index: 1;
}

.form-toggle[data-active="full"]::before {
    transform: translateX(100%);
}

.toggle-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: calc(3rem - 0.375rem);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

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

.toggle-btn.active {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.demo-info p {
    color: var(--gray);
    font-size: 0.95rem;
    padding-left: 1rem;
}

.demo-preview {
    margin-bottom: 3rem;
}

.browser-mockup {
    background: #cbd5e1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.browser-bar {
    /* background: #94a3b8; */
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-address {
    flex: 1;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--gray);
    font-size: 0.875rem;
}

.browser-content {
    padding: 2rem;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    background-color: var(--border-color);
}

.demo-form {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.demo-form.active {
    display: block;
}

.demo-form contact-form,
.demo-form web-inquiry-form {
    width: 100%;
    display: block;
    min-width: 600px;
}

/* override any inherited styling that might interfere with web components */
.demo-form * {
    box-sizing: border-box;
}

/* Hide back-to-top button until web component initializes */
back-to-top:not(:defined) {
    opacity: 0;
    visibility: hidden;
}
    
.footer-bottom p {
    color: var(--text-muted);
}

.footer-column a {
    color: var(--text-secondary);
}

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

.footer-column h4 {
    color: var(--text-muted);
}

/* Accessibility: Focus indicators */
button:focus-visible,
a:focus-visible,
.feature-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.toggle-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: calc(3rem - 0.375rem);
}


/* mobile responsiveness for web components */
@media (max-width: 768px) {
    .demo-container {
        padding: 0;
    }
    
    .demo-preview {
        margin: 0;
    }
    
    .browser-mockup {
        border-radius: 0;
        box-shadow: none;
        margin: 0 -1.5rem;
    }
    
    .browser-content {
        padding: 1rem;
        width: 100%;
    }
    
    .demo-form {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    #form-container {
        width: 100%;
        padding: 0;
    }
    
    .demo-form contact-form,
    .demo-form web-inquiry-form {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
    
    .code-snippet {
        margin: 2rem auto 0;
        border-radius: 0;
    }
    
    .demo-login {
        margin: 2rem -1.5rem 0;
        border-radius: 0;
    }
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}




.code-snippet {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
}

.code-header {
    background: var(--dark-lighter);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.code-snippet pre {
    padding: 0.5rem 1rem 1.5rem;
    overflow-x: auto;
}

.demo-info p {
    line-height: 1.3;
}

.demo-info p small:nth-of-type(2) {
    margin-top: 0.5rem;
    display: inline-block;
}

.code-snippet code {
    color: #a5f3fc;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-snippet code .tag {
    color: #fbbf24;
}

.code-snippet code .attribute {
    color: #34d399;
}

.code-snippet code .value {
    color: #f472b6;
}

/* demo step styling */
.demo-step {
    margin-bottom: 4rem;
}

.demo-step:last-child {
    margin-bottom: 0;
}

.demo-step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.step-label {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--gray);
    order: 1;
    /* Initial state for fade animation */
    opacity: 0;
    transition: opacity 2.5s ease;
}

.step-label.animate {
    opacity: 1;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    order: 2;
    /* Initial position for rolling animation */
    transform: translateX(150px) rotate(540deg);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.step-badge.animate {
    /* Final position after rolling animation */
    transform: translateX(0) rotate(0deg);
    opacity: 1;
}

.demo-step-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}

.demo-step-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.demo-step-header .demo-disclaimer {
    font-size: 0.75rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.5;
    text-align: center;
}

.demo-step-header .demo-disclaimer .asterisk {
    color: var(--danger);
    font-weight: 700;
    margin-right: 0.25rem;
}

/* email showcase styling */
.email-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.email-example {
    text-align: center;
}

.email-example h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.email-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.email-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius);
}

.email-description {
    color: var(--gray);
    font-size: 0.95rem;
}

/* lead showcase styling */
.lead-showcase {
    margin-top: 2rem;
}

.dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.dashboard-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.dashboard-image {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-callout {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.dashboard-callout p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.dashboard-callout ul {
    list-style: none;
    padding: 0;
}

.dashboard-callout li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray);
    position: relative;
}

.dashboard-callout li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid var(--gray-light);
    border-radius: 1px;
    flex-shrink: 0;
    margin-top: 7px;
}

.dashboard-callout i {
    color: var(--success);
    font-size: 1.26rem;
    position: absolute;
    left: 2px;
    top: 2px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.34, 3, 0.64, 1);
}

.dashboard-callout i.animate {
    opacity: 1;
    transform: scale(1);
}

/* demo access styling */
.demo-access {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.login-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.login-image {
    width: 100%;
    height: auto;
    display: block;
}

.demo-info-box {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
}

.demo-info-box h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.demo-details p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.credentials {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid var(--primary);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

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

.credential-item .label {
    font-weight: 600;
    color: var(--dark);
    min-width: 80px;
}

.credential-item code {
    background: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--gray-light);
}

.demo-note {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
}

.demo-login {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.demo-login h3 {
    margin-bottom: 1rem;
}

.demo-login p {
    margin-bottom: 2rem;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    font-size: 1rem;
}

/* how it works */
.how-it-works {
    padding: 5rem 0;
    background: #fafbfc;
}

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

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* connecting line only when all 4 items are in one row */
@media (min-width: 1150px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #d1d5db;
        z-index: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 3.2s ease;
    }
    
    .steps-container.animate::before {
        transform: scaleX(1);
    }
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid var(--gray-lighter);
    color: var(--gray-light);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    transition: all 1.5s ease;
    position: relative;
    z-index: 2;
}

.step-number.animate {
    background: var(--gradient);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray);
}

/* call to action section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

.cta-section .btn {
    border: 3px solid transparent;
}

.cta-section .btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    border: 3px solid var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-outline-white {
    border: 3px solid var(--primary-dark) !important;
}

.cta-section .btn-white:hover,
.cta-section .btn-outline-white:hover {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-column .logo {
    margin-bottom: 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gray);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--dark-lighter);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-light);
    margin: 0;
}

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



/* manual theme overrides */
[data-theme="light"] {
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    --dark: #f8fafc;
    --dark-lighter: #e2e8f0;
    --gray: #cbd5e1;
    --gray-light: #94a3b8;
    --gray-lighter: #334155;
    --white: #0f172a;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #f87171;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
}

[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .logo {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary);
}

[data-theme="dark"] .nav-links .btn-nav {
    color: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .nav-links .btn-nav:hover {
    background: rgba(15, 23, 42, 0.95);
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(79, 123, 255, 0.1);
    color: var(--primary);
}

[data-theme="dark"] .mobile-menu-toggle span {
    background: var(--text-primary);
}

[data-theme="dark"] .hero {
    background: var(--bg-primary);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle at 50% 50%, rgba(79, 123, 255, 0.15) 0%, transparent 70%);
    animation: none;
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .hero-feature {
    color: var(--text-secondary);
}

[data-theme="dark"] .features {
    background: var(--bg-secondary);
}

[data-theme="dark"] .feature-details {
    background: var(--bg-primary);
}

[data-theme="dark"] .demo-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .how-it-works {
    background: var(--bg-secondary);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .browser-mockup {
    background: var(--bg-card);
}

/* [data-theme="dark"] .browser-bar {
    background: var(--border-color);
} */

[data-theme="dark"] .browser-address {
    background: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .form-toggle {
    background: var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-toggle::before {
    box-shadow: 
        0 4px 12px rgba(79, 123, 255, 0.4),
        0 2px 6px rgba(79, 123, 255, 0.3);
}

[data-theme="dark"] .toggle-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .email-preview {
    background: var(--bg-card);
}

[data-theme="dark"] .dashboard-callout {
    background: var(--bg-card);
}

[data-theme="dark"] .demo-info-box {
    background: var(--bg-card);
}

[data-theme="dark"] .demo-info-box h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .credentials {
    background: var(--gray-lighter);
}

[data-theme="dark"] .credential-item .label {
    color: var(--text-primary);
}

[data-theme="dark"] .credential-item code {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .demo-login {
    background: var(--bg-card);
}

[data-theme="dark"] .form-group input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-theme="dark"] p {
    color: var(--text-secondary);
}

[data-theme="dark"] .section-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .demo-step-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .demo-step-header p {
    color: var(--text-secondary);
}


[data-theme="dark"] .feature-detail-text h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .feature-benefits li {
    color: var(--text-secondary);
}

[data-theme="dark"] .feature-benefits li::before {
    border: 1px solid var(--gray-light);
}

[data-theme="dark"] .email-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .dashboard-callout li {
    color: var(--text-secondary);
}

[data-theme="dark"] .demo-note {
    color: var(--text-secondary);
}

[data-theme="dark"] .step-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .email-example h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .step-label {
    color: var(--text-muted);
}

[data-theme="dark"] .code-snippet {
    background: #1e293b;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .code-header {
    background: #0f172a;
    color: var(--text-primary);
}

[data-theme="dark"] .code-snippet code {
    color: #a5f3fc;
}

[data-theme="dark"] .code-snippet code .tag {
    color: #fbbf24;
}

[data-theme="dark"] .code-snippet code .attribute {
    color: #34d399;
}

[data-theme="dark"] .code-snippet code .value {
    color: #f472b6;
}

[data-theme="dark"] .footer {
    background: #000;
}

/* mobile menu for dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-links {
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
    }
}

/* dark theme support with automatic detection (only when no manual theme is set) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --dark: #f8fafc;
        --dark-lighter: #e2e8f0;
        --gray: #cbd5e1;
        --gray-light: #94a3b8;
        --gray-lighter: #334155;
        --white: #0f172a;
        --success: #22c55e;
        --warning: #eab308;
        --danger: #f87171;
        
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #475569;
    }
    
    .code-snippet code .tag {
        color: #fbbf24;
    }

    .code-snippet code .attribute {
        color: #34d399;
    }

    .code-snippet code .value {
        color: #f472b6;
    }
    }
    
    :root:not([data-theme]) body {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
    
    /* header */
    :root:not([data-theme]) .header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid var(--border-color);
    }
    
    .logo {
        color: var(--text-primary);
    }
    
    .nav-links a {
        color: var(--text-secondary);
    }
    
    .nav-links a:hover {
        color: var(--primary);
    }
    
    .nav-links .btn-nav {
        color: rgba(15, 23, 42, 0.95);
    }
    
    .nav-links .btn-nav:hover {
        background: rgba(15, 23, 42, 0.95);
        color: var(--primary);
    }
    
    .mobile-menu-toggle span {
        background: var(--text-primary);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

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

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

    .mobile-menu-toggle.active:hover span{
        background-color: var(--accent)
    }
    
    /* hero section */
    .hero {
        background: var(--bg-primary);
    }
    
    .hero::before {
        background: radial-gradient(circle at 50% 50%, rgba(79, 123, 255, 0.15) 0%, transparent 70%);
        animation: none;
    }
    
    .hero-description {
        color: var(--text-secondary);
    }
    
    .hero-feature {
        color: var(--text-secondary);
    }
    
    /* sections */
    .features {
        background: var(--bg-secondary);
    }
    
    .feature-details {
        background: var(--bg-primary);
    }
    
    .demo-section {
        background: var(--bg-secondary);
    }
    
    .how-it-works {
        background: var(--bg-secondary);
    }
    
    /* cards and components */
    .feature-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    
    .feature-card h3 {
        color: var(--text-primary);
    }
    
    .feature-card:hover {
        border-color: var(--primary);
    }
    
    .browser-mockup {
        background: #cbd5e1;
    }
    
    
    /* .browser-bar {
        background: var(--border-color);
    } */
    
    .browser-address {
        background: var(--bg-card);
        color: var(--text-secondary);
    }
    
    .form-toggle {
        background: var(--border-color);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .form-toggle::before {
        box-shadow: 
            0 4px 12px rgba(79, 123, 255, 0.4),
            0 2px 6px rgba(79, 123, 255, 0.3);
    }
    
    .toggle-btn {
        color: var(--text-secondary);
    }
    
    .email-preview {
        background: var(--bg-card);
    }
    
    .dashboard-callout {
        background: var(--bg-card);
    }
    
    .demo-info-box {
        background: var(--bg-card);
    }
    
    .demo-info-box h4 {
        color: var(--text-primary);
    }
    
    .credentials {
        background: var(--gray-lighter);
    }
    
    .credential-item .label {
        color: var(--text-primary);
    }
    
    .credential-item code {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    
    .demo-login {
        background: var(--bg-card);
    }
    
    .form-group input {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    
    /* text colors */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text-primary);
    }
    
    p {
        color: var(--text-secondary);
    }
    
    .section-header p {
        color: var(--text-secondary);
    }
    
    .demo-step-header h3 {
        color: var(--text-primary);
    }
    
    .demo-step-header p {
        color: var(--text-secondary);
    }
    
    .feature-detail-text h3 {
        color: var(--text-primary);
    }
    
    .feature-description {
        color: var(--text-secondary);
    }
    
    .feature-benefits li {
        color: var(--text-secondary);
    }
    
    .feature-benefits li::before {
        border: 1px solid var(--border-color);
    }
    
    .email-description {
        color: var(--text-secondary);
    }
    
    .dashboard-callout li {
        color: var(--text-secondary);
    }
    
    .demo-note {
        color: var(--text-secondary);
    }
    
    .step-content p {
        color: var(--text-secondary);
    }
    
    .email-example h4 {
        color: var(--text-primary);
    }
    
    .step-label {
        color: var(--text-muted);
    }
    
    /* mobile menu for dark mode */
    @media (max-width: 768px) {
        .nav-links {
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border-color);
        }
    }
    
    /* code snippet styling */
    .code-snippet {
        background: #1e293b;
        border: 1px solid var(--border-color);
    }
    
    .code-header {
        background: #0f172a;
        color: var(--text-primary);
    }
    
    .code-snippet code {
        color: #a5f3fc;
    }
    
    .code-snippet code .tag {
        color: #fbbf24;
    }

    .code-snippet code .attribute {
        color: #34d399;
    }

    .code-snippet code .value {
        color: #f472b6;
    }
    
    /* footer in dark mode stays dark as intended */
    .footer {
        background: #000;
    }



/* responsive design - only apply to desktop nav, not mobile menu */
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .btn-nav {
        padding: 0.45rem 1.1rem;
        font-size: 0.95rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle .theme-icon {
        font-size: 16px;
    }
    
}

@media (max-width: 950px) and (min-width: 769px) {
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .btn-nav {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .theme-toggle .theme-icon {
        font-size: 15px;
    }
    
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .device-mockups {
        transform: scale(0.8);
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--gray-lighter);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        background: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        z-index: auto !important;
        transition: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Add extra spacing after theme toggle in mobile menu */
    .nav-links li:nth-last-child(2) {
        margin-bottom: 1rem;
    }
    
    /* Reset desktop spacing for mobile */
    .nav-links li:last-child {
        margin-left: 0;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-top: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    
    .footer-content {
        display: block;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, auto);
        gap: 2.5rem;
        justify-items: start;
        align-items: start;
    }
    
    .footer-column:nth-child(even) {
        padding-left: 2rem;
    }
    
    .footer-column h4 {
        margin-top: 1rem;
    }
    
    /* responsive demo steps */
    .email-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dashboard-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-access {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-step-header h3 {
        font-size: 1.75rem;
    }
    
    .credential-item {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
    
    .credential-item .label {
        font-size: 0.7rem;
        min-width: 50px;
        flex-shrink: 0;
    }
    
    .credential-item code {
        flex: 1;
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
        min-width: 0;
    }
    
    .copy-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
        flex-shrink: 0;
        min-width: auto;
        width: auto;
    }
    
    .demo-info-box {
        padding: 1.25rem;
    }
    
    .footer-column:first-child .logo {
        margin-bottom: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }
    
    .device-mockups {
        transform: scale(0.6);
    }
}

@media (max-width: 600px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        
    }
    
    .hero-feature {
        font-size: 0.75rem;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .toggle-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-toggle {
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    .toggle-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
    }
    
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-block {
        width: 100%;
        max-width: none;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .browser-content {
        padding: 1.5rem;
    }
    
    .hero-feature {
        font-size: 0.7rem;
    }
    
    .hero-feature svg {
        width: 14px;
        height: 14px;
    }

    .hero-image {
        height: 200px;
    }
    
    .demo-info-box {
        padding: 1rem;
    }

    .features, .demo-section, .how-it-works {
        padding-top: 3rem; 
    }
}

/* feature details section */
.feature-details {
    padding: 5rem 0;
    background: var(--white);
}

.feature-detail {
    margin-bottom: 6rem;
}

.feature-detail-text {
    opacity: 0;
    transform: translateX(-80px) scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.feature-detail-images {
    opacity: 0;
    transform: translateX(80px) scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.feature-detail.reverse .feature-detail-text {
    transform: translateX(80px) scale(0.8);
}

.feature-detail.reverse .feature-detail-images {
    transform: translateX(-80px) scale(0.8);
}

.feature-detail.animate .feature-detail-text {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.feature-detail.animate .feature-detail-images {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Scroll direction exit animations */
.feature-detail.scroll-out-down .feature-detail-text,
.feature-detail.scroll-out-down .feature-detail-images {
    opacity: 0;
    transform: translateY(100px) scale(0.7);
}

.feature-detail.scroll-out-up .feature-detail-text,
.feature-detail.scroll-out-up .feature-detail-images {
    opacity: 0;
    transform: translateY(-100px) scale(0.7);
}


/* Disable scroll animations on smaller screens */
@media (max-width: 900px) {
    .feature-detail-text,
    .feature-detail-images {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.feature-detail:last-child {
    margin-bottom: 0;
}

.feature-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    max-width: 100%;
}

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

.feature-detail.reverse .feature-detail-text {
    order: 2;
}

.feature-detail.reverse .feature-detail-images {
    order: 1;
}

.feature-detail-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 2rem;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}


.feature-benefits li:last-child {
    margin-bottom: 0;
}

.feature-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 1rem;
    position: relative;
}

.feature-benefits li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid var(--gray-light);
    border-radius: 1px;
    flex-shrink: 0;
}

.feature-benefits i {
    color: var(--success);
    font-size: 1.26rem;
    position: absolute;
    left: 2px;
    top: 0px;
    /* Initial state for staggered animation */
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.34, 3, 0.64, 1);
}

.feature-benefits i.animate {
    opacity: 1;
    transform: scale(1);
}

.feature-detail-images {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.feature-detail-images picture,
.feature-image {
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 400px;
    height: auto;
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
}

.feature-detail.animate .feature-detail-images:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 15px 20px -8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* responsive styles for smaller screens */
@media (max-width: 900px) {
    .feature-detail-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
    }
    
    /* ensure consistent stacking: text first, then image */
    .feature-detail-text {
        order: 1 !important;
        width: 100%;
    }

    .feature-detail-images {
        order: 2 !important;
        width: 100%;
    }
    
    /* override reverse class behavior on smaller screens */
    .feature-detail.reverse .feature-detail-content {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .feature-detail.reverse .feature-detail-text {
        order: 1 !important;
    }

    .feature-detail.reverse .feature-detail-images {
        order: 2 !important;
    }
}

@media (max-width: 768px) {
    .feature-details {
        padding: 3rem 0;
    }
    
    .feature-detail {
        margin-bottom: 4rem;
    }
    
    .feature-detail-content {
        gap: 2rem;
    }
    
    .feature-detail-text h3 {
        font-size: 1.75rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .feature-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .feature-detail-text h3 {
        font-size: 1.5rem;
    }
    
    .feature-benefits li {
        font-size: 0.9rem;
    }
    
    .feature-image {
        max-height: 250px;
    }
}

@media (max-width: 319px) {
    .feature-benefits li {
        font-size: 0.8rem;
    }
}

/* Features Carousel Styles */
.features {
    opacity: 1;
    transform: translateY(0);
}

.features.fade-out {
    opacity: 0.3;
    transform: translateY(-50px);
}

.features-carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 350px;
    position: relative;
    perspective: 1000px;
    margin: 0 auto;
}

.features-carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.features-carousel-container .feature-card {
    position: absolute;
    width: 280px;
    height: 320px;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Initially show only the first card (center), hide others */
.features-carousel-container:not(.initialized) .feature-card:not(:first-child) {
    opacity: 0;
    transform: scale(0.8) translateZ(-100px);
}

.features-carousel-container:not(.initialized) .feature-card:first-child {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(79, 123, 255, 0.2);
}

/* Once initialized, let the position classes take over */
.features-carousel-container.initialized .feature-card:not(.center):not(.left-1):not(.left-2):not(.right-1):not(.right-2) {
    opacity: 0;
    pointer-events: none;
}

.features-carousel-container .feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.features-carousel-container .feature-card p {
    font-size: 0.875rem;
    line-height: 1.4;
}

.features-carousel-container .feature-card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(79, 123, 255, 0.2);
}

.features-carousel-container .feature-card.center .feature-icon {
    transform: scale(1.1);
}

.features-carousel-container .feature-card.left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.6;
}

.features-carousel-container .feature-card.left-2 .feature-icon,
.features-carousel-container .feature-card.left-2 h3,
.features-carousel-container .feature-card.left-2 p {
    filter: grayscale(70%);
}

.features-carousel-container .feature-card.left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
    opacity: 0.8;
}

.features-carousel-container .feature-card.left-1 .feature-icon,
.features-carousel-container .feature-card.left-1 h3,
.features-carousel-container .feature-card.left-1 p {
    filter: grayscale(40%);
}

.features-carousel-container .feature-card.right-1 {
    z-index: 5;
    transform: translateX(200px) scale(0.9) translateZ(-100px);
    opacity: 0.8;
}

.features-carousel-container .feature-card.right-1 .feature-icon,
.features-carousel-container .feature-card.right-1 h3,
.features-carousel-container .feature-card.right-1 p {
    filter: grayscale(40%);
}

.features-carousel-container .feature-card.right-2 {
    z-index: 1;
    transform: translateX(400px) scale(0.8) translateZ(-300px);
    opacity: 0.6;
}

.features-carousel-container .feature-card.right-2 .feature-icon,
.features-carousel-container .feature-card.right-2 h3,
.features-carousel-container .feature-card.right-2 p {
    filter: grayscale(70%);
}

.features-carousel-container .feature-card.hidden {
    opacity: 0;
    pointer-events: none;
}

.features-carousel-container .feature-card.center:hover {
    transform: scale(1.15) translateZ(50px);
}

.features-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.feature-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(79, 123, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.feature-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.feature-dot:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.feature-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(79, 123, 255, 0.9);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    font-weight: bold;
    line-height: 1;
}

.feature-nav-arrow::before {
    content: attr(data-arrow);
    position: relative;
    top: -2px;
}

.feature-nav-arrow:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.feature-nav-arrow.left {
    left: 20px;
}

.feature-nav-arrow.right {
    right: 20px;
}

.feature-nav-arrow.right::before {
    left: 2px;
}

/* Responsive Carousel Styles */
@media (max-width: 768px) {
    .features-carousel-container {
        height: 350px;
    }
    
    .features-carousel-container .feature-card {
        width: 240px;
        height: 320px;
        padding: 1.25rem;
    }

    .features-carousel-container .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .features-carousel-container .feature-card p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    
    .step-badge {
        transform: translateX(100px) rotate(360deg);
    }

    .features-carousel-container .feature-card .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
        flex-shrink: 0;
    }

    .features-carousel-container .feature-card.left-2 {
        transform: translateX(-250px) scale(0.65) translateZ(-300px);
    }

    .features-carousel-container .feature-card.left-1 {
        transform: translateX(-130px) scale(0.8) translateZ(-100px);
    }

    .features-carousel-container .feature-card.right-1 {
        transform: translateX(130px) scale(0.8) translateZ(-100px);
    }

    .features-carousel-container .feature-card.right-2 {
        transform: translateX(250px) scale(0.65) translateZ(-300px);
    }

    .features-carousel-container .feature-card.center {
        transform: scale(0.95) translateZ(0);
    }

    .feature-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        line-height: 1;
    }

    .feature-nav-arrow.left {
        left: 5px;
    }

    .feature-nav-arrow.right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .features-carousel-container {
        height: 320px;
    }
    
    .features-carousel-container .feature-card {
        width: 220px;
        height: auto;
        min-height: 240px;
        max-height: 280px;
        padding: 1rem;
        overflow: hidden;
    }

    .features-carousel-container .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .features-carousel-container .feature-card p {
        font-size: 0.7rem;
        line-height: 1.6;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        line-clamp: 6;
        -webkit-box-orient: vertical;
    }

    .features-carousel-container .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .features-carousel-container .feature-card .feature-icon i {
        font-size: 1rem;
    }

    .features-carousel-container .feature-card.center {
        transform: scale(0.9) translateZ(0);
    }

    .features-carousel-container .feature-card.left-2,
    .features-carousel-container .feature-card.right-2 {
        opacity: 0;
        pointer-events: none;
    }

    .features-carousel-container .feature-card.left-1 {
        transform: translateX(-110px) scale(0.65) translateZ(-100px);
    }

    .features-carousel-container .feature-card.right-1 {
        transform: translateX(110px) scale(0.65) translateZ(-100px);
    }

    .feature-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        line-height: 1;
    }

    .feature-nav-arrow.left {
        left: 2px;
    }

    .feature-nav-arrow.right {
        right: 2px;
    }
}