/* public/css/app.css */

/* ---------- BASIC RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* ---------- BASE STYLES ---------- */

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
    /* Background gradient (to bottom-right) using your palette */
    background: linear-gradient(
            135deg,
            #2c6372 0%,
            #2b525f 50%,
            #284651 100%
    );
    color: #f9fafb;
}

/* Anchor defaults */
a {
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

/* Root layout container */
.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- HEADER ---------- */

.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 20;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 36px;
    width: auto;
    display: block;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: rgba(249, 250, 251, 0.8);
}

.header-nav a:hover {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Show header navigation on medium+ screens */
@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}

.btn-primary {
    background: #34d399;
    color: #0f172a;
    border-color: #34d399;
}

.btn-primary:hover {
    background: #6ee7b7;
    border-color: #6ee7b7;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #f9fafb;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-outline-emerald {
    border-color: rgba(52, 211, 153, 0.7);
    color: rgba(209, 250, 229, 0.9);
}

.btn-outline-emerald:hover {
    background: rgba(52, 211, 153, 0.2);
}

/* ---------- SECTIONS LAYOUT ---------- */

.main {
    flex: 1;
}

/* Generic section wrapper */
.section {
    padding: 2.5rem 1rem;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* Section headings */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
}

.section-subtitle {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 1.25rem;
    max-width: 36rem;
}

/* ---------- HERO ---------- */

.hero {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 3.5rem;
    }
}

/* Hero badge (small uppercase text above title) */
.hero-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(167, 243, 208, 0.9);
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0.4rem 0 0.75rem;
}

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

.hero-title span {
    color: #6ee7b7;
}

.hero-text {
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.9);
    line-height: 1.6;
    max-width: 36rem;
}

/* Small feature cards inside hero */
.hero-features-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero-feature-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.9rem;
    padding: 0.8rem;
    border: 1px solid rgba(248, 250, 252, 0.18);
}

.hero-feature-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a7f3d0;
    margin-bottom: 0.15rem;
}

.hero-feature-text {
    font-size: 0.8rem;
    color: rgba(241, 245, 249, 0.9);
}

/* Hero call-to-actions */
.hero-cta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- HERO IMAGE CARD (GLASSMORPHISM) ---------- */

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(248, 250, 252, 0.3);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.6);
    padding: 1.25rem;
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

/* Container for the hero image itself */
.hero-image-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 240px;
    width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.9));
}

.hero-image-text {
    font-size: 0.75rem;
    text-align: center;
    color: rgba(241, 245, 249, 0.9);
}

/* Small "chips" under the hero image */
.chip-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    text-align: center;
    font-size: 0.7rem;
}

.chip {
    padding: 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
}

.chip-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.chip-text {
    font-size: 0.65rem;
}

.chip-green {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
}

.chip-sky {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(125, 211, 252, 0.4);
    color: #e0f2fe;
}

.chip-amber {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(252, 211, 77, 0.4);
    color: #fef3c7;
}

/* ---------- FEATURES SECTION ---------- */

.cards-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card-feature {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(248, 250, 252, 0.2);
}

.card-feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a7f3d0;
    margin-bottom: 0.25rem;
}

.card-feature-text {
    font-size: 0.8rem;
    color: rgba(241, 245, 249, 0.9);
}

/* ---------- HOW IT WORKS SECTION ---------- */

.cards-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .cards-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card-step {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(248, 250, 252, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-step-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a7f3d0;
}

.card-step-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.card-step-text {
    font-size: 0.75rem;
    color: rgba(241, 245, 249, 0.9);
}

/* ---------- BENEFITS / PROFILES SECTION ---------- */

.cards-grid-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .cards-grid-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card-benefit {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(248, 250, 252, 0.2);
}

.card-benefit-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a7f3d0;
    margin-bottom: 0.2rem;
}

.card-benefit-text {
    font-size: 0.75rem;
    color: rgba(241, 245, 249, 0.9);
}

/* ---------- CONTACT / FINAL CTA SECTION ---------- */

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-meta {
    font-size: 0.7rem;
    color: rgba(241, 245, 249, 0.8);
    text-align: right;
}

@media (min-width: 768px) {
    .contact-layout {
        flex-direction: row;
        align-items: center;
    }
}

/* ---------- FOOTER ---------- */

.footer {
    border-top: 1px solid rgba(248, 250, 252, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(241, 245, 249, 0.8);
}

.footer-links {
    display: flex;
    gap: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}
