/* =========================================
   VARIABLES & DESIGN SYSTEM (SaaS Premium)
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #4f46e5;
    /* Indigo */
    --primary-hover: #4338ca;
    --secondary-color: #3b82f6;
    /* Blue */
    --accent-color: #10b981;
    /* Emerald Green (Success/WhatsApp vibe) */

    --bg-color: #0f172a;
    /* Deep Navy/Black Background */
    --bg-secondary: #1e293b;
    /* Slightly lighter navy */
    --bg-card: rgba(30, 41, 59, 0.7);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Variables for constraints */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.5);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   TYPOGRAPHY & UTILS
   ========================================= */
.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =========================================
   BUTTONS & BADGES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(79, 70, 229, 0.1);
    color: #818cf8;
    border: 1px solid rgba(79, 70, 229, 0.2);
    margin-bottom: 1.5rem;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-links a:not(.btn):hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    text-align: left;
}

.hero-notes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-note i {
    color: var(--accent-color);
}

.hero-note i {
    color: var(--accent-color);
}

/* Phone Mockup Animation & Styling */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #111b21;
    /* WhatsApp dark mode */
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #202c33;
    padding: 16px;
    display: flex;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.contact-info h4 {
    font-size: 1rem;
    margin: 0;
}

.contact-info span {
    font-size: 0.75rem;
    color: #8fade0;
}

.chat-body {
    padding: 16px;
    flex: 1;
    background-image: linear-gradient(rgba(11, 20, 26, 0.9), rgba(11, 20, 26, 0.9)), url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/></svg>');
    /* bg pattern simulation */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 0.875rem;
    animation: popIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.message.received {
    background: #202c33;
    align-self: flex-start;
    border-top-left-radius: 0;
    animation-delay: 0.5s;
}

.message.sent {
    background: #005c4b;
    align-self: flex-end;
    border-top-right-radius: 0;
    animation-delay: 2s;
}

.message:nth-child(3) {
    animation-delay: 3.5s;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Blur Shapes */
.blur-shape {
    position: absolute;
    filter: blur(100px);
    z-index: 1;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.4);
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.3);
    bottom: -10%;
    left: 20%;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    position: relative;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-line {
    flex: 0 0 100px;
    height: 2px;
    background: dashed 2px var(--border-color);
    margin-top: 40px;
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing {
    padding: 6rem 0;
    background: var(--bg-color);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.pricing-body {
    margin-top: 2rem;
}

.pricing-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.pricing-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.pricing-item p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.pricing-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pricing-feature i {
    font-size: 2rem;
    color: var(--accent-color);
}

.pricing-feature span {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =========================================
   FEATURES / FORM SECTION
   ========================================= */
.features {
    padding: 8rem 0;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon-small {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.signup-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.signup-box h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.signup-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-footer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.success-message p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #020617;
    /* Darker than body */
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-trust {
    margin-top: 1.5rem;
}

.trust-badge {
    max-height: 40px;
    width: auto;
    filter: brightness(0.9) contrast(1.1);
    opacity: 0.9;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =========================================
   RESPONSIVE DESIGN (Mobiles/Tablets)
   ========================================= */
@media (max-width: 992px) {

    .hero-container,
    .form-layout,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero {
        text-align: center;
        padding-top: 8rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-note {
        justify-content: center;
        text-align: center;
    }

    .hero-notes {
        align-items: center;
    }

    .steps-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .hidden-mobile {
        display: none;
    }

    .step-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile menu handling */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .signup-box {
        padding: 2rem;
    }
}