:root {
    --primary-yellow: #FFC900;
    --primary-orange: #FF6200;
    --primary-red: #E63946;
    --bg-yellow: #FFD600;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --border-radius-xl: 30px;
    --border-radius-lg: 20px;
    --border-radius-md: 10px;
    --font-main: 'Poppins', sans-serif;
    --shadow-card: 10px 10px 0px rgba(0, 0, 0, 0.9);
    --shadow-card-hover: 15px 15px 0px rgba(0, 0, 0, 0.9);
    --shadow-input: 5px 5px 0px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 900;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-light);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

@keyframes vortex-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-icon {
    animation: vortex-spin 3s linear infinite;
    transform-origin: 50% 50%;
}

.status-bar {
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-dark);
    border-radius: 50%;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-yellow);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.emoji-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.2));
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji-inner {
    display: inline-block;
    font-size: var(--size, 80px);
    transform: rotate(var(--rot, 0deg));
    transform-origin: center;
    will-change: transform;
}

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(25px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-15px) scale(1.05); } }

.anim-1 { animation: float1 4s ease-in-out infinite; }
.anim-2 { animation: float2 5.5s ease-in-out infinite; }
.anim-3 { animation: float3 7s ease-in-out infinite; }
.anim-4 { animation: float1 6s ease-in-out infinite reverse; }

.e1 { top: 8%; left: 5%; --size: 90px; --rot: -15deg; }
.e2 { top: 22%; left: 12%; --size: 110px; --rot: 10deg; }
.e3 { top: 45%; left: 4%; --size: 140px; --rot: -20deg; }
.e4 { top: 68%; left: 10%; --size: 160px; --rot: 15deg; }
.e5 { top: 88%; left: 25%; --size: 60px; --rot: -10deg; }

.e6 { top: 8%; right: 8%; --size: 90px; --rot: 15deg; }
.e7 { top: 25%; right: 4%; --size: 150px; --rot: -10deg; }
.e8 { top: 50%; right: 10%; --size: 130px; --rot: 25deg; }
.e9 { top: 75%; right: 5%; --size: 140px; --rot: -15deg; }
.e10 { top: 92%; right: 22%; --size: 70px; --rot: 10deg; }

.e-peek { 
    top: 25px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 5px; 
    --size: 140px;
    z-index: 2;
}

/* Form Card */
.form-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 60px;
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-card);
    border: 4px solid var(--text-dark);
    text-align: center;
    margin-top: 50px;
}

.form-card h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.form-card > p {
    font-size: 16px;
    margin-bottom: 40px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

/* Slider value display */
.slider-value-display {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    line-height: 1;
}

input.sliderValue {
    min-width: 0;
    max-width: 240px;
    background: transparent;
    border: none;
    font-size: inherit;
    font-family: var(--font-main);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    color: var(--text-dark);
    padding: 0;
    box-shadow: none;
}

input.sliderValue:focus {
    outline: none;
}

/* Slider wrapper */
.slider-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

/* Range slider */
.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
    outline: none;
    border-radius: 20px;
    height: 16px;
    background: rgba(26,26,26,0.15);
    border: none;
    box-shadow: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    width: 30px;
    background: var(--white);
    border: 3px solid #FA3E4C;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
}

.range-input::-moz-range-thumb {
    height: 30px;
    width: 30px;
    background: var(--white);
    border: 3px solid #FA3E4C;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
}

.range-input::-webkit-slider-thumb:hover,
.range-input:active::-webkit-slider-thumb,
.range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(250, 62, 76, 0.2);
}

.range-input::-moz-range-thumb:hover,
.range-input:active::-moz-range-thumb,
.range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(250, 62, 76, 0.2);
}

/* Email input */
#emailInput {
    width: 100%;
    padding: 18px 20px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    background-color: var(--white);
    box-shadow: var(--shadow-input);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#emailInput:focus {
    border-color: #FA3E4C;
    box-shadow: 0 0 0 4px rgba(250, 62, 76, 0.15);
}

#emailInput::placeholder {
    color: rgba(26,26,26,0.4);
    font-weight: normal;
}

/* Button loading state */
.btn-primary.loading {
    opacity: 0.75;
    pointer-events: none;
    position: relative;
}

.btn-primary.loading span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.input-wrapper {
    position: relative;
}

select, input[type="text"] {
    width: 100%;
    padding: 18px 20px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--text-dark);
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-main);
    appearance: none;
    background-color: transparent;
    box-shadow: var(--shadow-input);
}

input[type="text"][disabled] {
    background-color: #F0F0F0;
    color: #888;
    border-color: #CCC;
    box-shadow: none;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.btn-primary {
    background-color: #FA3E4C;
    color: var(--white);
    border: 3px solid var(--text-dark);
    border-radius: var(--border-radius-lg);
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.2s ease;
    box-shadow: 4px 6px 0px var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 8px 0px var(--text-dark);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-dark);
}

/* Features Section */
.features-section {
    background-color: var(--primary-orange);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.bg-lightning, .bg-rocket, .bg-cloud {
    position: absolute;
    pointer-events: none;
    opacity: 0.8;
    font-size: 80px;
}
.bl1 { top: 10%; left: 10%; transform: rotate(-20deg); }
.bl2 { top: 50%; right: 5%; transform: rotate(15deg); }
.br1 { bottom: 10%; left: 5%; transform: rotate(45deg); font-size: 120px;}
.br2 { top: 20%; right: 15%; transform: rotate(-30deg); font-size: 100px;}

.section-title {
    text-align: center;
    font-size: 54px;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
    z-index: 10;
}

.section-title-white {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 50px 40px;
    border: 4px solid var(--text-dark);
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.feature-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--primary-yellow);
    -webkit-text-stroke: 2px var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-icon-wrapper {
    position: absolute;
    top: -30px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0px var(--text-dark);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    font-weight: 600;
    font-size: 16px;
}

/* Comparison Section */
.comparison-section {
    background-color: var(--primary-red);
    padding: 100px 20px;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 20;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.vs-badge {
    align-self: center;
    font-size: 80px;
    font-weight: 900;
    color: var(--primary-yellow);
    -webkit-text-stroke: 4px var(--text-dark);
    filter: drop-shadow(5px 5px 0px var(--text-dark));
    z-index: 30;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-lightning {
    position: absolute;
    font-size: 120px;
    z-index: -1;
    color: yellow;
    -webkit-text-stroke: 0;
    filter: drop-shadow(2px 2px 0 #000);
}

.comp-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 50px 40px;
    border: 4px solid var(--text-dark);
    box-shadow: var(--shadow-card);
    position: relative;
}

.comp-card.bad {
    transform: rotate(-2deg);
}
.comp-card.good {
    transform: rotate(2deg);
}

.comp-icon-top {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 100px;
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.3));
}

.comp-card h3 {
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 40px;
    text-align: center;
}

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

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
}

.icon-cross { color: var(--primary-red); font-weight: bold; font-size: 20px;}
.icon-check { color: #4CAF50; font-weight: bold; font-size: 20px;}

/* FAQ Section */
.faq-section {
    background-color: var(--primary-yellow);
    padding: 150px 20px 100px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-card {
    position: relative;
    min-height: 270px;
    perspective: 1500px;
    cursor: pointer;
}

.faq-card-inner {
    width: 100%;
    height: 100%;
    display: grid;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.faq-card.is-flipped .faq-card-inner {
    transform: rotateY(180deg) rotateZ(360deg);
}

.faq-card:nth-child(1) { transform: rotate(-3deg); }
.faq-card:nth-child(2) { transform: rotate(1deg); margin-top: -20px;}
.faq-card:nth-child(3) { transform: rotate(3deg); }

.faq-front, .faq-back {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    border: 4px solid var(--text-dark);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.faq-back {
    transform: rotateY(180deg);
    background-color: var(--bg-yellow);
}

.faq-back p {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 15px 0 20px 0;
}

.faq-question-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 4px 4px 0px var(--text-dark);
    z-index: 5;
}

.faq-front h3 {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.btn-outline {
    border: 2px solid var(--text-dark);
    background: transparent;
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-orange);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content {
    max-width: 500px;
    z-index: 10;
    position: relative;
}

.cta-content h2 {
    font-size: 64px;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1;
}

.cta-content p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-emoji-large {
    position: absolute;
    right: -20px;
    bottom: -70px;
    width: min(52vw, 780px);
    z-index: 5;
    pointer-events: none;
}

.cta-emoji-large img {
    display: block;
    width: 100%;
    height: auto;
}

.bg-palms {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🌴</text></svg>');
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.back-to-top {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-weight: 800;
    cursor: pointer;
}

.icon-placeholder {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--icon-url) no-repeat center / contain;
    mask: var(--icon-url) no-repeat center / contain;
}

/* Legal Footer */
.legal-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    position: relative;
    z-index: 20;
}

.legal-footer p {
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legal-footer p:last-child {
    margin-bottom: 0;
}

.legal-footer strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

/* Application pages */
.apply {
    min-height: 100vh;
    padding: 140px 20px 80px;
    background-color: var(--bg-yellow);
    position: relative;
    overflow: hidden;
}

.apply__inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
    background-color: var(--white);
    border: 4px solid var(--text-dark);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 10;
}

.apply__header {
    margin-bottom: 28px;
    text-align: center;
}

.apply__header h2 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 36px;
}

.apply__subtitle {
    font-size: 15px;
    font-weight: 600;
}

.apply__form,
.apply__form #form-iframe,
.apply__form iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

.apply__form {
    min-width: 0;
    overflow: hidden;
}

.apply__form iframe {
    border: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid, .comparison-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    .comparison-grid {
        justify-items: center;
    }
    .vs-badge {
        margin: 20px 0;
    }
    .cta-section {
        flex-direction: column;
        text-align: center;
    }
    .cta-emoji-large {
        right: -80px;
        bottom: -35px;
        width: min(58vw, 600px);
    }
    .hero-section {
        padding-top: 150px;
    }
    
    .comp-card.bad, .comp-card.good,
    .faq-card:nth-child(1), .faq-card:nth-child(2), .faq-card:nth-child(3) {
        transform: rotate(0deg) !important;
        margin-top: 0 !important;
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 12px;
    }
    .logo { font-size: 24px; }
    .status-bar { font-size: 11px; }

    .form-card h1 { font-size: 28px; margin-bottom: 15px; }
    .form-card > p { font-size: 14px; margin-bottom: 25px; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    .section-title-white { margin-bottom: 50px !important; }
    h3 { font-size: 22px !important; }

    .hero-section { padding-top: 150px; padding-bottom: 60px; }
    .features-section, .comparison-section, .cta-section { padding: 60px 15px; }
    .faq-section { padding: 100px 15px 60px; }
    
    .form-card { padding: 30px 20px; margin-top: 30px; }
    .feature-card, .comp-card, .faq-front, .faq-back { padding: 30px 20px; }
    .faq-card { min-height: 320px; }
    
    select, input[type="text"] { padding: 14px 15px; font-size: 16px; }
    .btn-primary { padding: 15px 20px; font-size: 16px; width: 100%; justify-content: center; }
    
    .feature-icon-wrapper { width: 60px; height: 60px; font-size: 30px; top: -20px; }
    .comp-icon-top { font-size: 70px; top: -40px; }
    
    .vs-badge { font-size: 50px; -webkit-text-stroke: 2px var(--text-dark); }
    .vs-lightning { font-size: 80px; }

    .cta-content { max-width: 100%; padding: 0 10px; }
    .cta-content h2 { font-size: 42px; margin-bottom: 15px; }
    .cta-content p { font-size: 16px; margin-bottom: 30px; }
    .cta-emoji-large { display: none; }
    
    #scrollToTopBtn { 
        font-size: 15px !important; 
        padding: 18px 20px !important; 
        width: 100% !important; 
        max-width: 350px; 
        margin-left: auto; 
        margin-right: auto; 
        white-space: nowrap;
    }
    .back-to-top { font-size: 14px; margin-top: 25px; position: relative; z-index: 15; }

    .e1, .e4, .e5, .e6, .e9, .e10 { display: none; }
    .e2 { top: 16%; left: 2%; --size: 60px; }
    .e3 { top: 80%; left: 2%; --size: 70px; }
    .e7 { top: 16%; right: 2%; --size: 60px; }
    .e8 { top: 82%; right: 2%; --size: 70px; }
    .e-peek { --size: 80px; top: 110px; }
    
    .bg-palms { background-size: 150px; opacity: 0.15; }
    .bg-lightning, .bg-rocket, .bg-cloud { transform: scale(0.5); opacity: 0.5; }
    .bl1 { top: 2%; left: -5%; }
    .br1 { bottom: 2%; left: -5%; }
    .bl2 { top: 40%; right: -5%; }
    .br2 { top: 10%; right: -10%; }

    .apply {
        padding: 130px 14px 50px;
    }

    .apply__inner {
        padding: 28px 16px;
        border-width: 3px;
        border-radius: var(--border-radius-lg);
        box-shadow: 6px 7px 0 var(--text-dark);
    }

    .apply__header {
        margin-bottom: 20px;
    }

    .apply__header h2 {
        font-size: 27px;
    }

    .apply__subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 26px; }
    .form-card h1 { font-size: 22px; }
    .cta-content h2 { font-size: 30px; }
    .comp-list li { font-size: 14px; align-items: center; }
    .vs-badge { font-size: 40px; }
    .vs-lightning { font-size: 60px; }
    .btn-primary { font-size: 14px; }
}
