/* ========================================
   devleads landing page styles
   ======================================== */

/* color and design system variables */
: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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent horizontal scrolling */
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden; /* prevent horizontal scrolling */
    max-width: 100vw; /* ensure body doesn't exceed viewport width */
}

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

h1 {
    font-size: clamp(2rem, 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;
}

.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;
    transition: all 0.3s ease;
}

/* 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;
}

.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: 2rem;
    list-style: none;
}

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

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

.nav-links .btn-nav {
    color: var(--white);
}

.nav-links .btn-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 3px solid var(--primary);
    transform: translateY(-1px);
}

.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;
}

/* 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;
    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 0 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: 4rem;
}

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

.section-header p {
    font-size: 1.125rem;
    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 {
    display: inline-flex;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--gradient);
    color: var(--white);
}

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

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

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

.browser-bar {
    background: var(--gray-lighter);
    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%;
}

.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;
}

/* 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: 1.5rem;
    overflow-x: auto;
}

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

/* 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;
}

.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;
}

.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;
}

/* 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: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray);
}

.dashboard-callout li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

/* 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: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.demo-info-box h4 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

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

.credentials {
    background: var(--gray-lighter);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.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: 1000px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #d1d5db;
        z-index: 0;
    }
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    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(--white);
}

.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);
}



/* dark theme support with automatic detection */
@media (prefers-color-scheme: dark) {
    :root {
        --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;
    }
    
    body {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
    
    /* header */
    .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:hover {
        background: rgba(15, 23, 42, 0.95);
        color: var(--primary);
    }
    
    .mobile-menu-toggle span {
        background: var(--text-primary);
    }
    
    /* 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: var(--bg-card);
    }
    
    
    .browser-bar {
        background: var(--border-color);
    }
    
    .browser-address {
        background: var(--bg-card);
        color: var(--text-secondary);
    }
    
    .form-toggle {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
    }
    
    .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);
    }
    
    .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;
    }
    
    /* footer in dark mode stays dark as intended */
    .footer {
        background: #000;
    }
    
    .footer-bottom p {
        color: var(--text-muted);
    }
    
    .footer-column a {
        color: var(--text-secondary);
    }
    
    .footer-column a:hover {
        color: var(--text-primary);
    }
    
    .footer-column h4 {
        color: var(--text-muted);
    }
}

/* responsive design */
@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;
    }
    
    h1 {
        font-size: 2.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;
        justify-items: center;
    }
    
    .hero-feature {
        font-size: 0.75rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    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-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .browser-content {
        padding: 1.5rem;
    }
    
    .hero-feature {
        font-size: 0.7rem;
    }
    
    .hero-feature svg {
        width: 14px;
        height: 14px;
    }
    
    .demo-info-box {
        padding: 1rem;
    }
}

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

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

.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 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 1rem;
}

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

.feature-benefits i {
    color: var(--success);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-detail-images {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    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-image {
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 400px;
    height: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.feature-detail-images:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 15px 20px -8px rgba(0, 0, 0, 0.15);
}

/* 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;
    }
}