/* ==========================================================================
   Linksellr - Premium Light Theme CSS
   Inspired by clean, highly-converting SaaS aesthetics.
   ========================================================================== */

:root {
    /* Brand Colors */
    --brand-primary: #5544E6; /* Vibrant, premium blurple */
    --brand-primary-hover: #4535CC;
    --brand-light: #F0EEFE;
    
    /* Text Colors */
    --text-main: #111827; /* Very dark gray, softer than black */
    --text-muted: #4B5563; /* Medium gray for subtitles */
    --text-light: #9CA3AF;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-off-white: #F3F4F6;
    
    /* UI Elements */
    --border-color: #E5E7EB;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-subtitle.centered {
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--brand-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.nav-cta {
    background-color: var(--text-main);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.nav-cta:hover {
    background-color: var(--brand-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 8rem 0 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, var(--brand-light) 0%, transparent 40%);
    z-index: -1;
    opacity: 0.6;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 540px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--brand-light);
    color: var(--brand-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.hero-guarantee {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.2s forwards;
}

/* Device Frame (iPhone style) */
.device-frame {
    width: 320px;
    height: 650px;
    background-color: #1a1a1a; /* Dark bezel */
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        inset 0 0 4px rgba(255, 255, 255, 0.2),
        0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.device-frame:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

/* The notch */
.device-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Image Sequence Animation */
.image-sequence {
    position: relative;
    width: 100%;
    height: 100%;
}

.seq-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transform: scale(0.95) translateY(20px); /* Start slightly smaller and lower */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.seq-img.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
}

/* For sliding out */
.seq-img.slide-out {
    opacity: 0;
    transform: scale(1.05) translateY(-20px); /* Move up and slightly scale up when leaving */
    z-index: 1;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Social Proof / Audience Cloud
   ========================================================================== */
.social-proof {
    padding: 2rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
}

.social-proof-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.audiences {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.audience-item {
    padding: 0.5rem 1.5rem;
    background-color: var(--bg-off-white);
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Feature Blocks (The "Why Switch" Section)
   ========================================================================== */
.why-switch {
    padding: 6rem 0;
}

.feature-blocks {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.block-content {
    flex: 1;
    max-width: 500px;
}

.block-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.block-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.feature-list .icon {
    width: 24px;
    height: 24px;
    color: var(--brand-primary);
}

.block-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-mockup {
    max-width: 450px;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
}

/* ==========================================================================
   Pricing Comparison
   ========================================================================== */
.pricing-comparison {
    padding: 6rem 0;
}

.comparison-table-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, 
.comparison-table td {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--bg-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
}

.comparison-table .text-left {
    text-align: left;
}

.comparison-table .brand-col {
    background-color: var(--brand-light);
    color: var(--brand-primary);
    font-weight: 700;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Migration Steps
   ========================================================================== */
.migration-steps {
    padding: 6rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: var(--transition-fast);
}

.step:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.step-num {
    width: 48px;
    height: 48px;
    background-color: var(--brand-light);
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
}

/* ==========================================================================
   Waitlist CTA
   ========================================================================== */
.cta-section {
    padding: 6rem 0;
}

.cta-card {
    background-color: var(--brand-primary);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-medium);
}

.cta-card h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto;
}

.waitlist-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition-fast);
}

.waitlist-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-card .btn-primary {
    background-color: var(--text-main);
    color: white;
}

.cta-card .btn-primary:hover {
    background-color: #000;
}

.form-message {
    margin-top: 1.5rem;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-split, .feature-block, .feature-block.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-cta-group {
        align-items: center;
    }
    .block-content { max-width: 100%; }
    .feature-list li { justify-content: center; }
    .steps-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* Hide links on mobile for simplicity, keep logo and CTA */
    .waitlist-form { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
}
