/* ==========================================================================
   LINGUAPLAY DESIGN SYSTEM
   Kids EdTech · Fun · Modern · Professional
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka:wght@400;500;600;700&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Primary Colors */
    --lp-primary: #4361EE;
    --lp-primary-light: #6B83F2;
    --lp-primary-dark: #3A56D4;
    --lp-primary-bg: rgba(67, 97, 238, 0.08);

    /* Secondary */
    --lp-secondary: #FFD60A;
    --lp-secondary-dark: #E6C009;

    /* Accent */
    --lp-accent: #FF6B35;
    --lp-accent-light: #FF8A5C;

    /* Success / Warning / Danger */
    --lp-success: #06D6A0;
    --lp-success-bg: rgba(6, 214, 160, 0.1);
    --lp-warning: #FFB703;
    --lp-danger: #EF476F;
    --lp-danger-bg: rgba(239, 71, 111, 0.1);

    /* Supporting */
    --lp-purple: #7B2FF7;
    --lp-pink: #F72585;
    --lp-teal: #26C6DA;

    /* Neutrals */
    --lp-text: #1A1A2E;
    --lp-text-secondary: #555770;
    --lp-text-muted: #8E8EA0;
    --lp-border: #E8E8F0;
    --lp-bg: #FAFBFF;
    --lp-bg-alt: #F0F3FF;
    --lp-white: #FFFFFF;
    --lp-dark: #16213E;

    /* Radius */
    --lp-radius-sm: 10px;
    --lp-radius-md: 16px;
    --lp-radius-lg: 24px;
    --lp-radius-xl: 32px;
    --lp-radius-full: 999px;

    /* Shadows */
    --lp-shadow-sm: 0 2px 8px rgba(67, 97, 238, 0.08);
    --lp-shadow-md: 0 4px 20px rgba(67, 97, 238, 0.1);
    --lp-shadow-lg: 0 8px 40px rgba(67, 97, 238, 0.12);
    --lp-shadow-card: 0 4px 0px var(--lp-border);
    --lp-shadow-card-hover: 0 8px 0px rgba(67, 97, 238, 0.15);

    /* Typography */
    --lp-font-heading: 'Fredoka', sans-serif;
    --lp-font-body: 'Nunito', sans-serif;

    /* Transitions */
    --lp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--lp-font-body);
    font-weight: 600;
    color: var(--lp-text);
    background-color: var(--lp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lp-font-heading);
    font-weight: 700;
    color: var(--lp-text);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--lp-ease);
}

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

ul { list-style: none; padding: 0; }

/* ---------- CONTAINER ---------- */
.lp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.lp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--lp-border);
    transition: box-shadow 0.3s var(--lp-ease);
}
.lp-navbar.scrolled {
    box-shadow: var(--lp-shadow-md);
}

.lp-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.lp-logo {
    font-family: var(--lp-font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-logo img {
    height: 36px;
    width: 36px;
    border-radius: 10px;
}
.lp-logo span {
    color: var(--lp-accent);
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.lp-nav-links a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s var(--lp-ease);
}
.lp-nav-links a:hover,
.lp-nav-links a.active {
    color: var(--lp-primary);
}
.lp-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--lp-primary);
    border-radius: 2px;
}

.lp-nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--lp-text);
    cursor: pointer;
    padding: 8px;
}

/* ---------- BUTTONS ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--lp-font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--lp-radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--lp-ease);
    position: relative;
    top: 0;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.lp-btn-primary {
    background: var(--lp-primary);
    color: var(--lp-white);
    box-shadow: 0 4px 0px var(--lp-primary-dark);
}
.lp-btn-primary:hover {
    background: var(--lp-primary-light);
    color: var(--lp-white);
    top: 2px;
    box-shadow: 0 2px 0px var(--lp-primary-dark);
}
.lp-btn-primary:active {
    top: 4px;
    box-shadow: 0 0px 0px var(--lp-primary-dark);
}

.lp-btn-accent {
    background: var(--lp-accent);
    color: var(--lp-white);
    box-shadow: 0 4px 0px #cc5529;
}
.lp-btn-accent:hover {
    background: var(--lp-accent-light);
    color: var(--lp-white);
    top: 2px;
    box-shadow: 0 2px 0px #cc5529;
}

.lp-btn-secondary {
    background: var(--lp-secondary);
    color: var(--lp-text);
    box-shadow: 0 4px 0px var(--lp-secondary-dark);
}
.lp-btn-secondary:hover {
    top: 2px;
    box-shadow: 0 2px 0px var(--lp-secondary-dark);
}

.lp-btn-outline {
    background: transparent;
    color: var(--lp-primary);
    border: 2px solid var(--lp-primary);
    box-shadow: none;
}
.lp-btn-outline:hover {
    background: var(--lp-primary-bg);
    color: var(--lp-primary);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--lp-text-secondary);
    box-shadow: none;
    padding: 12px 20px;
}
.lp-btn-ghost:hover {
    color: var(--lp-primary);
    background: var(--lp-primary-bg);
}

.lp-btn-sm {
    font-size: 0.875rem;
    padding: 8px 20px;
}
.lp-btn-lg {
    font-size: 1.125rem;
    padding: 16px 36px;
}
.lp-btn-block {
    width: 100%;
}

/* ---------- CARDS ---------- */
.lp-card {
    background: var(--lp-white);
    border: 2px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 32px;
    box-shadow: var(--lp-shadow-card);
    transition: all 0.3s var(--lp-ease);
}
.lp-card:hover {
    border-color: rgba(67, 97, 238, 0.2);
    box-shadow: var(--lp-shadow-card-hover);
    transform: translateY(-4px);
}

/* ---------- SECTION HEADERS ---------- */
.lp-section {
    padding: 80px 0;
}
.lp-section-alt {
    background: var(--lp-bg-alt);
}
.lp-section-dark {
    background: var(--lp-dark);
    color: var(--lp-white);
}
.lp-section-dark h2,
.lp-section-dark h3 {
    color: var(--lp-white);
}

.lp-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.lp-section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}
.lp-section-header p {
    font-size: 1.1rem;
    color: var(--lp-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.lp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lp-primary-bg);
    color: var(--lp-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--lp-radius-full);
    margin-bottom: 12px;
}

/* ---------- FEATURE CARD ---------- */
.lp-feature-card {
    text-align: center;
    padding: 40px 24px;
}
.lp-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: inset 0 -3px 0px rgba(0,0,0,0.08);
}
.lp-feature-icon.blue { background: rgba(67,97,238,0.12); color: var(--lp-primary); }
.lp-feature-icon.orange { background: rgba(255,107,53,0.12); color: var(--lp-accent); }
.lp-feature-icon.green { background: rgba(6,214,160,0.12); color: var(--lp-success); }
.lp-feature-icon.purple { background: rgba(123,47,247,0.12); color: var(--lp-purple); }
.lp-feature-icon.pink { background: rgba(247,37,133,0.12); color: var(--lp-pink); }
.lp-feature-icon.teal { background: rgba(38,198,218,0.12); color: var(--lp-teal); }
.lp-feature-icon.yellow { background: rgba(255,183,3,0.12); color: var(--lp-warning); }
.lp-feature-icon.red { background: rgba(239,71,111,0.12); color: var(--lp-danger); }

.lp-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.lp-feature-card p {
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
    line-height: 1.5;
}

/* ---------- STEP CARD ---------- */
.lp-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}
.lp-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lp-primary);
    color: var(--lp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lp-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 0px var(--lp-primary-dark);
}
.lp-step h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.lp-step p {
    font-size: 0.9rem;
    color: var(--lp-text-secondary);
}

/* ---------- PRICING CARD ---------- */
.lp-pricing-card {
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.lp-pricing-card.featured {
    border-color: var(--lp-primary);
    box-shadow: 0 6px 0px var(--lp-primary);
    position: relative;
    z-index: 2;
}
.lp-pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-primary);
    color: var(--lp-white);
    font-family: var(--lp-font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 20px;
    border-radius: var(--lp-radius-full);
}
.lp-pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.lp-pricing-price {
    font-family: var(--lp-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lp-primary);
    margin: 16px 0 24px;
}
.lp-pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--lp-text-muted);
}
.lp-pricing-features {
    text-align: left;
    margin-bottom: 32px;
    flex-grow: 1;
}
.lp-pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
}
.lp-pricing-features li i {
    font-size: 1.1rem;
}
.lp-pricing-features li i.fa-check-circle { color: var(--lp-success); }
.lp-pricing-features li i.fa-times-circle { color: var(--lp-text-muted); }
.lp-pricing-features li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ---------- FORM CARD ---------- */
.lp-form-card {
    background: var(--lp-white);
    border: 2px solid var(--lp-border);
    border-radius: var(--lp-radius-xl);
    padding: 48px;
    box-shadow: var(--lp-shadow-lg);
    width: 100%;
    max-width: 480px;
}
.lp-form-card h2 {
    text-align: center;
    margin-bottom: 8px;
}
.lp-form-card .lp-subtitle {
    text-align: center;
    color: var(--lp-text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.lp-input-group {
    margin-bottom: 20px;
}
.lp-input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lp-text);
    margin-bottom: 6px;
}
.lp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    font-family: var(--lp-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--lp-text);
    background: var(--lp-white);
    transition: border-color 0.2s var(--lp-ease), box-shadow 0.2s var(--lp-ease);
    outline: none;
    box-sizing: border-box;
}
.lp-input:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 4px var(--lp-primary-bg);
}
.lp-input::placeholder {
    color: var(--lp-text-muted);
    font-weight: 500;
}

select.lp-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555770' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.lp-alert {
    padding: 14px 18px;
    border-radius: var(--lp-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.lp-alert-danger {
    background: var(--lp-danger-bg);
    color: var(--lp-danger);
    border: 1px solid rgba(239, 71, 111, 0.2);
}
.lp-alert-success {
    background: var(--lp-success-bg);
    color: #05a87d;
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.lp-divider {
    border: none;
    border-top: 2px solid var(--lp-border);
    margin: 24px 0;
}

/* ---------- BADGE ---------- */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--lp-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}
.lp-badge-primary { background: var(--lp-primary-bg); color: var(--lp-primary); }
.lp-badge-success { background: var(--lp-success-bg); color: var(--lp-success); }
.lp-badge-warning { background: rgba(255,183,3,0.12); color: #b88100; }

/* ---------- FOOTER ---------- */
.lp-footer {
    background: var(--lp-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 24px;
}
.lp-footer h4 {
    font-family: var(--lp-font-heading);
    color: var(--lp-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.lp-footer-logo {
    font-family: var(--lp-font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--lp-white);
    margin-bottom: 12px;
}
.lp-footer-logo span { color: var(--lp-accent); }
.lp-footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}
.lp-footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.lp-footer-links a:hover {
    color: var(--lp-white);
    padding-left: 4px;
}
.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- GRID ---------- */
.lp-grid {
    display: grid;
    gap: 24px;
}
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- FLEX UTILS ---------- */
.lp-flex { display: flex; }
.lp-flex-center { align-items: center; justify-content: center; }
.lp-flex-between { justify-content: space-between; }
.lp-flex-col { flex-direction: column; }
.lp-flex-wrap { flex-wrap: wrap; }
.lp-gap-8 { gap: 8px; }
.lp-gap-12 { gap: 12px; }
.lp-gap-16 { gap: 16px; }
.lp-gap-24 { gap: 24px; }

/* ---------- TEXT UTILS ---------- */
.lp-text-center { text-align: center; }
.lp-text-primary { color: var(--lp-primary); }
.lp-text-accent { color: var(--lp-accent); }
.lp-text-muted { color: var(--lp-text-muted); }
.lp-text-white { color: var(--lp-white); }

/* ---------- ANIMATIONS ---------- */
.lp-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--lp-ease), transform 0.6s var(--lp-ease);
}
.lp-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.lp-float { animation: lp-float 4s ease-in-out infinite; }

@keyframes lp-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67,97,238,0.4); }
    70% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(67,97,238,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67,97,238,0); }
}
.lp-pulse { animation: lp-pulse 2s infinite; }

/* ---------- MOBILE MENU HIDDEN BY DEFAULT ---------- */
.lp-mobile-menu {
    display: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lp-nav-links,
    .lp-nav-auth { display: none; }
    .lp-hamburger { display: block; }

    .lp-mobile-menu {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--lp-white);
        border-bottom: 2px solid var(--lp-border);
        padding: 16px 24px 24px;
        box-shadow: var(--lp-shadow-lg);
        z-index: 999;
    }
    .lp-mobile-menu.open { display: block; }
    .lp-mobile-menu a {
        display: block;
        padding: 12px 0;
        font-weight: 700;
        font-size: 1rem;
        color: var(--lp-text-secondary);
        border-bottom: 1px solid var(--lp-border);
    }
    .lp-mobile-menu a:last-child { border: none; }
    .lp-mobile-menu .lp-btn {
        margin-top: 16px;
        width: 100%;
    }

    .lp-section { padding: 56px 0; }
    .lp-section-header h2 { font-size: 1.75rem; }
    .lp-grid-2,
    .lp-grid-3,
    .lp-grid-4 { grid-template-columns: 1fr; }
    .lp-form-card { padding: 32px 24px; }
    .lp-hero-row { flex-direction: column; text-align: center; }
    .lp-hero-text { order: 2; }
    .lp-hero-visual { order: 1; }
}

@media (max-width: 480px) {
    .lp-container { padding: 0 16px; }
    .lp-pricing-card { padding: 32px 20px; }
}

/* ---------- AUTH PAGE LAYOUT ---------- */
.lp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--lp-bg);
    background-image:
        radial-gradient(circle at 15% 25%, rgba(67,97,238,0.06) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(255,107,53,0.05) 0%, transparent 25%);
}

/* ---------- STATUS PAGES ---------- */
.lp-status-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}
.lp-status-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.lp-status-icon.success {
    background: var(--lp-success-bg);
    color: var(--lp-success);
}
.lp-status-icon.warning {
    background: rgba(255,183,3,0.12);
    color: var(--lp-warning);
}
.lp-status-icon.danger {
    background: var(--lp-danger-bg);
    color: var(--lp-danger);
}
