/* ==============================================================================
   LetLogic Holding Page Styles
   Aligned with LetLogic Platform Brand & Design System
   Brand Colors: Navy (#1E3A5F), Blue (#4A7FC1), Light (#EBF3FB)
   ============================================================================== */

/* ------------------------------------------------------------------------------
   CSS Custom Properties (LetLogic Brand)
   ------------------------------------------------------------------------------ */
:root {
    /* Brand Colors */
    --ll-navy:       #1E3A5F;
    --ll-blue:       #4A7FC1;
    --ll-light:      #EBF3FB;
    --ll-dark:       #1A1A2E;
    --ll-gray:       #6B7280;
    --ll-success:    #10B981;
    --ll-warning:    #F59E0B;
    --ll-danger:     #EF4444;
    
    /* WhatsApp Color */
    --ll-whatsapp:   #25D366;
    
    /* Spacing */
    --ll-spacing-xs: 0.5rem;
    --ll-spacing-sm: 1rem;
    --ll-spacing-md: 2rem;
    --ll-spacing-lg: 4rem;
    --ll-spacing-xl: 6rem;
    
    /* Border Radius */
    --ll-radius:     0.5rem;
    --ll-radius-lg:  0.625rem;
    --ll-radius-xl:  1rem;
    
    /* Shadows */
    --ll-shadow:     0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --ll-shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --ll-shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --ll-shadow-xl:  0 20px 40px -8px rgba(30,58,95,0.18), 0 8px 16px -4px rgba(30,58,95,0.10);
    
    /* Transitions */
    --ll-transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--ll-dark);
    background: #ffffff;
    min-height: 100vh;
}

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

/* ------------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ll-spacing-md);
    width: 100%;
}

/* ------------------------------------------------------------------------------
   Typography (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.ll-heading-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ll-heading-lg {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.ll-heading-md {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.ll-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ll-gray);
}

.ll-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ll-gray);
}

/* ------------------------------------------------------------------------------
   Buttons (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.ll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--ll-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
}

.ll-btn:focus-visible {
    outline: 2px solid var(--ll-blue);
    outline-offset: 2px;
}

.ll-btn-primary {
    background-color: var(--ll-navy);
    color: #ffffff;
    border-color: var(--ll-navy);
}

.ll-btn-primary:hover {
    background-color: var(--ll-blue);
    border-color: var(--ll-blue);
}

.ll-btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--ll-radius-lg);
}

/* Hero CTA Button */
.ll-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--ll-radius-lg);
    background: var(--ll-blue);
    color: #ffffff;
    border: 2px solid var(--ll-blue);
    box-shadow: 0 4px 20px 0 rgba(74,127,193,0.45);
    transition: all var(--ll-transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    cursor: pointer;
    outline: none;
}

.ll-hero-cta-primary:hover {
    background: #5a8fd1;
    border-color: #5a8fd1;
    box-shadow: 0 6px 28px 0 rgba(74,127,193,0.55);
    transform: translateY(-1px);
    color: #ffffff;
}

.ll-hero-cta-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ll-hero-cta-primary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ------------------------------------------------------------------------------
   Form Controls (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.ll-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--ll-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.ll-input:focus {
    border-color: var(--ll-blue);
    box-shadow: 0 0 0 3px rgba(74, 127, 193, 0.15);
}

.ll-input::placeholder {
    color: #9ca3af;
}

.ll-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------------------
   Hero Section (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.hero {
    background: linear-gradient(180deg, var(--ll-light) 0%, #b8d4f0 30%, var(--ll-navy) 70%, var(--ll-navy) 100%);
    color: #ffffff;
    padding: 6.5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Decorative geometric accents */
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 127, 193, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.logo {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2), 0 0 40px rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
    max-width: 38rem;
    margin: 0 auto 3rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

/* Email Form */
.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.email-form-row {
    display: flex;
    gap: 0.75rem;
}

.email-input {
    flex: 1;
}

.submit-btn {
    flex: 0 0 auto;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ll-radius);
    font-size: 0.9375rem;
    display: none;
    animation: ll-slide-in 0.3s ease forwards;
}

@keyframes ll-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-message.success {
    display: block;
    background: #d1fae5;
    border: 1px solid var(--ll-success);
    color: #065f46;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    border: 1px solid var(--ll-danger);
    color: #991b1b;
}

.form-message.loading {
    display: block;
    background: var(--ll-light);
    border: 1px solid var(--ll-blue);
    color: var(--ll-navy);
}

/* Animated fade-up */
@keyframes ll-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ll-animate-fade-up {
    animation: ll-fade-up 0.65s ease both;
}

.ll-animate-delay-1 { animation-delay: 0.1s; }
.ll-animate-delay-2 { animation-delay: 0.22s; }
.ll-animate-delay-3 { animation-delay: 0.36s; }

/* ------------------------------------------------------------------------------
   Section Styles (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.ll-section {
    padding: 5.5rem 0;
}

.ll-section-alt {
    background-color: #f7fafd;
    background-image: linear-gradient(180deg, #f0f6fc 0%, #f7fafd 100%);
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ll-section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ll-blue);
    margin-bottom: 0.625rem;
    display: block;
}

.ll-section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--ll-navy);
    margin-bottom: 0.75rem;
}

.ll-section-subheading {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.ll-section-rule {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--ll-blue), rgba(74,127,193,0.3));
    border-radius: 2px;
    margin: 0.75rem auto 0;
    display: block;
}

/* ------------------------------------------------------------------------------
   Role Cards (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.ll-role-card {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: var(--ll-radius-xl);
    padding: 2.25rem 2rem;
    transition: box-shadow var(--ll-transition), transform var(--ll-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ll-role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--ll-radius-xl) var(--ll-radius-xl) 0 0;
}

.ll-role-card-tenant::before   { background: linear-gradient(90deg, #10B981, #34d399); }
.ll-role-card-landlord::before { background: linear-gradient(90deg, var(--ll-blue), #7FB3E8); }
.ll-role-card-pm::before       { background: linear-gradient(90deg, #8B5CF6, #a78bfa); }

.ll-role-card:hover {
    box-shadow: var(--ll-shadow-xl);
    transform: translateY(-4px);
}

.ll-feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--ll-light) 0%, #d6e8f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.375rem;
    color: var(--ll-navy);
    box-shadow: 0 2px 8px 0 rgba(74,127,193,0.18);
    transition: transform var(--ll-transition), box-shadow var(--ll-transition);
    font-size: 2rem;
}

.ll-role-card:hover .ll-feature-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 4px 16px 0 rgba(74,127,193,0.28);
}

.ll-role-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ll-navy);
    margin-bottom: 0.75rem;
}

.ll-role-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ll-gray);
}

/* Role Cards Grid */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ------------------------------------------------------------------------------
   WhatsApp Section
   ------------------------------------------------------------------------------ */
.whatsapp-section {
    background: #f7fafd;
    padding: 5.5rem 0;
    text-align: center;
}

.whatsapp-card {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: var(--ll-radius-xl);
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--ll-shadow-lg);
}

.whatsapp-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ll-navy);
    margin-bottom: 1rem;
}

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

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--ll-radius-lg);
    background: var(--ll-whatsapp);
    color: #ffffff;
    text-decoration: none;
    transition: all var(--ll-transition);
    box-shadow: 0 4px 16px 0 rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px 0 rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

/* ------------------------------------------------------------------------------
   Footer (LetLogic Brand)
   ------------------------------------------------------------------------------ */
.ll-public-footer {
    background: var(--ll-navy);
    background-image:
        radial-gradient(ellipse at 0% 100%, rgba(74,127,193,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(74,127,193,0.10) 0%, transparent 50%);
    color: rgba(255,255,255,0.85);
    padding: 4.5rem 0 2rem;
    position: relative;
}

.ll-public-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,127,193,0.5), transparent);
}

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

.footer-logo {
    max-width: 200px;
    margin: 0 auto 1.5rem;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}

.footer-whatsapp {
    color: #7FB3E8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--ll-transition);
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-whatsapp:hover {
    color: #ffffff;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ------------------------------------------------------------------------------
   Responsive Design
   ------------------------------------------------------------------------------ */
@media (max-width: 1023px) {
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .ll-section, .ll-section-alt, .whatsapp-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero::before {
        top: -80px;
        right: -60px;
        width: 320px;
        height: 320px;
    }
    
    .hero::after {
        bottom: -40px;
        left: -30px;
        width: 240px;
        height: 240px;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .email-form-row {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .role-grid {
        grid-template-columns: 1fr;
    }
    
    .ll-section, .ll-section-alt, .whatsapp-section {
        padding: 3rem 0;
    }
    
    .ll-role-card {
        padding: 1.75rem 1.5rem;
    }
    
    .whatsapp-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .logo {
        max-width: 240px;
    }
    
    .ll-section-heading {
        font-size: 1.75rem;
    }
}

/* ------------------------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--ll-blue);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------------ */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }