/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #CCDCDB, #ffffff, #A1D8B5);
}

/* Color Variables */
:root {
    --color-primary: #4CB572;
    --color-secondary: #A1D8B5;
    --color-accent: #CCDCDB;
    --color-text: #585858;
    --color-white: #ffffff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    transform: translateY(0);
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.login-btn {
    padding: 0.5rem 1.5rem;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    opacity: 0.9;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    padding: 6rem 1rem 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container-split {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #4CB572;
    color: white;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(76, 181, 114, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: var(--color-white);
    background: linear-gradient(135deg, #4CB572 0%, #3a9b5f 100%);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(76, 181, 114, 0.3);
    justify-content: center;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(76, 181, 114, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: var(--color-primary);
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.3s, transform 0.2s;
    justify-content: center;
}

.btn-hero-secondary:hover {
    background-color: rgba(76, 181, 114, 0.05);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.hero-trust {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-text {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-visual {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

.hero-image-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(161, 216, 181, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

/* Hero Sensor Images */
.hero-sensor {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.hero-sensor-1 {
    bottom: 10%;
    left: -5%;
    animation: floatSensor1 5s ease-in-out infinite;
}

.hero-sensor-2 {
    bottom: 5%;
    right: -5%;
    animation: floatSensor2 6s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSensor1 {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(-8deg);
    }
}

@keyframes floatSensor2 {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

/* Features Section */
.features-section {
    padding: 5rem 1rem;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1;
}

.section-title-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
    vertical-align: baseline;
    display: inline-block;
    margin-bottom: -0.3rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text);
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--color-text);
}


/* CTA Section */
.cta-section {
    padding: 5rem 1rem;
    background-color: var(--color-primary);
}

.cta-container {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta-primary {
    padding: 1rem 2rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.btn-cta-primary:hover {
    background-color: #f9fafb;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.btn-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 3rem 1rem;
    position: relative;
    overflow: visible;
    background-image: url('img/girl.svg');
    background-position: right 50%;
    background-repeat: no-repeat;
    background-size: 300px auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(2);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid var(--color-accent);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-cta-buttons {
        flex-direction: row;
        max-width: fit-content;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .section-title-logo {
        height: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-container-split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-sensor {
        width: 100px;
    }


    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        background-size: 340px auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .hero-section {
        padding: 8rem 2rem 6rem;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-sensor {
        width: 120px;
    }


    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-title {
        font-size: 3rem;
    }

    .footer {
        background-size: 400px auto;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Additional utility for buttons in general */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Slide-in Panel Styles */
.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-panel.active {
    display: block;
    opacity: 1;
}

.slide-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.slide-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background-color: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.slide-panel.active .slide-panel-content {
    transform: translateX(0);
}

.slide-panel-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.slide-panel-close:hover {
    color: var(--color-text);
}

.slide-panel-body {
    padding: 3rem 2rem;
    padding-top: 4rem;
}

/* Panel Header */
.panel-header {
    margin-bottom: 2rem;
}

.panel-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.panel-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #CCDCDB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
    color: #554D4D;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%234CB572' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-group select:hover {
    border-color: #A1D8B5;
}

.form-group select option {
    color: #554D4D;
    padding: 0.75rem;
    background-color: white;
}

.form-group select option:hover,
.form-group select option:checked,
.form-group select option:focus {
    background-color: #4CB572 !important;
    color: white !important;
    background: #4CB572 !important;
}

.form-group select option:checked {
    background: linear-gradient(#4CB572, #4CB572);
    background-color: #4CB572 !important;
    color: white !important;
}

/* For Firefox */
.form-group select option:hover {
    background: #4CB572 !important;
}

/* For WebKit browsers */
.form-group select option:active {
    background-color: #4CB572 !important;
    color: white !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CB572;
    box-shadow: 0 0 0 3px rgba(76, 181, 114, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Card Grid */
.radio-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border: 2px solid #CCDCDB;
    border-radius: 10px;
    background-color: white;
    transition: all 0.3s ease;
    min-height: 80px;
}

.radio-card:hover .radio-card-content {
    border-color: #A1D8B5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 181, 114, 0.15);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: #4CB572;
    background-color: #f0fdf4;
    box-shadow: 0 4px 16px rgba(76, 181, 114, 0.2);
}

.radio-card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.5rem;
    display: block;
    color: #585858;
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-card-icon {
    color: #4CB572;
}

.radio-card-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #585858;
    text-align: center;
    line-height: 1.2;
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-card-label {
    color: #4CB572;
}

/* Amount Pills */
.amount-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.amount-pill {
    cursor: pointer;
}

.amount-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.amount-pill-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #CCDCDB;
    border-radius: 24px;
    background-color: white;
    color: #554D4D;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.amount-pill:hover .amount-pill-label {
    border-color: #A1D8B5;
    background-color: #f9fafb;
    transform: translateY(-2px);
}

.amount-pill input[type="radio"]:checked + .amount-pill-label {
    border-color: #4CB572;
    background-color: #4CB572;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 181, 114, 0.3);
}

/* Mobile responsiveness for radio cards */
@media (max-width: 640px) {
    .radio-card-grid {
        grid-template-columns: 1fr;
    }

    .amount-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .amount-pill-label {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

.form-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4CB572 0%, #3a9b5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(76, 181, 114, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 181, 114, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success View */
.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CB572 0%, #3a9b5f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(76, 181, 114, 0.3);
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.success-content p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.success-note {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.success-note strong {
    color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .slide-panel-content {
        max-width: 100%;
    }

    .slide-panel-body {
        padding: 2.5rem 1.5rem;
    }

    .panel-header h2 {
        font-size: 1.75rem;
    }
}