/* ============================================
   SOLON LANDING PAGE - NEW UI STYLES
   Font: Urbanist
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-primary: #084734;
    --color-primary-light: #0a5a43;
    --color-secondary: #CEF17B;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e0e0e0;
    --color-gray-500: #9e9e9e;
    --color-gray-700: #616161;
    --color-gray-900: #212121;

    /* Typography */
    --font-family: 'Urbanist', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--color-primary);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   BACKGROUND LAYER WITH GRID TEXTURE
   ============================================ */
.bg-layer {
    background: var(--color-primary-light);
    min-height: 100vh;
    position: relative;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: relative;
    z-index: 100;
    padding: 20px 40px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

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

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 241, 123, 0.3);
}

.btn-cta {
    background: var(--color-secondary);
    color: var(--color-primary);
    padding: 16px 32px;
    font-size: 16px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(206, 241, 123, 0.4);
}

.btn-submit {
    background: var(--color-secondary);
    color: var(--color-primary);
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
}

.btn-submit:hover {
    box-shadow: 0 8px 24px rgba(206, 241, 123, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px 60px;
    text-align: center;
    background:
        url('grid-texture.png') center top / cover no-repeat,
        linear-gradient(180deg,
            var(--color-primary-light) 0%,
            var(--color-primary) 100%);
}

.hero-content {
    max-width: 700px;
    margin-bottom: 40px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 32px;
}

.badge-new {
    background: var(--color-secondary);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-white);
    padding: 0 16px;
}

/* Hero Title */
.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-white);
}

.hero-title span {
    color: var(--color-secondary);
    font-weight: 500;
    font-style: italic;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 36px;
    color: var(--color-white);
}

/* Hero Form - Inline Email */
.hero-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 6px;
    max-width: 480px;
    margin: 0 auto;
}

.hero-email-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-white);
    padding: 12px 20px;
    outline: none;
    min-width: 0;
}

.hero-email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-form .btn-cta {
    padding: 14px 24px;
    font-size: 14px;
    white-space: nowrap;
}

/* ============================================
   CHAT SECTION
   ============================================ */
.chat-section {
    width: 100%;
    max-width: 750px;
    text-align: center;
}

/* Chat Card with floating shadow effect */
.chat-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Title inside card - HIGHLIGHTED */
.chat-title {
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-gray-700);
    margin-bottom: 20px;
    text-align: center;
}

/* Messages area */
.chat-messages {
    min-height: 0;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
    text-align: left;
}

/* Suggestion Cards */
.suggestion-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(206, 241, 123, 0.15);
    border: 1px solid rgba(206, 241, 123, 0.4);
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.suggestion-card:hover {
    background: rgba(206, 241, 123, 0.3);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Input wrapper */
.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-gray-100);
    border-radius: 12px;
    padding: 10px 12px 10px 16px;
}

/* Input field */
.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-gray-900);
    outline: none;
    min-width: 0;
}

.chat-input::placeholder {
    color: var(--color-gray-500);
}

/* Send button - GREEN (brand color) */
.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-medium);
    font-size: 16px;
}

.send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(206, 241, 123, 0.5);
}

/* Chat Messages Styling */
.message {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

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

.message.user {
    background: var(--color-primary);
    color: var(--color-white);
    margin-left: auto;
}

.message.bot {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-gray-500);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-medium);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-gray-100);
    border: none;
    color: var(--color-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-gray-200);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-gray-900);
    outline: none;
    transition: border-color var(--transition-fast);
}

.modal-input:focus {
    border-color: var(--color-primary);
}

.modal-input::placeholder {
    color: var(--color-gray-500);
}

/* Success Modal Specific */
.position-container {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.position-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.position-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.modal-description {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-description strong {
    color: var(--color-primary);
}

.referral-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.referral-input {
    flex: 1;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--color-gray-900);
    text-align: center;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.copy-btn.copied {
    background: #4CAF50;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.share-btn.twitter {
    background: #000;
    color: white;
}

.share-btn.twitter:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .nav {
        display: none;
    }

    .btn-header {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-content {
        margin-bottom: 32px;
    }

    .hero-badge {
        flex-direction: column;
        gap: 0;
        padding: 8px 12px;
    }

    .badge-new {
        margin-bottom: 4px;
    }

    .badge-text {
        padding: 0;
        font-size: 12px;
    }

    .hero-title br {
        display: none;
    }

    /* Hero Form - Stack vertically */
    .hero-form {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        max-width: 100%;
    }

    .hero-email-input {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    .hero-form .btn-cta {
        width: 100%;
    }

    /* Chat Section */
    .chat-section {
        max-width: 100%;
    }

    .chat-card {
        padding: 24px 20px;
    }

    .chat-title {
        font-size: 16px;
    }

    /* Suggestion Cards - Vertical layout */
    .suggestion-cards {
        flex-direction: column;
        gap: 8px;
    }

    .suggestion-card {
        width: 100%;
        justify-content: center;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 30px 24px;
        max-width: 95%;
    }

    .referral-container {
        flex-direction: column;
    }

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

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        justify-content: space-between;
    }

    .logo img {
        height: 28px;
    }

    .btn-header {
        display: none;
    }

    .hero {
        padding: 40px 16px 30px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-form {
        padding: 10px;
    }

    .btn-cta {
        padding: 14px 20px;
        font-size: 14px;
    }

    .chat-card {
        padding: 20px 16px;
    }

    .chat-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .suggestion-card {
        padding: 8px 14px;
        font-size: 12px;
    }

    .chat-input-wrapper {
        padding: 8px 10px 8px 14px;
        gap: 8px;
    }

    .chat-input {
        font-size: 14px;
    }

    .send-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .modal-content {
        padding: 24px 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .position-number {
        font-size: 36px;
    }
}