/* CSS Variables */
:root {
    --color-accent: #1AA6A0;
    --color-heading: #0F5160;
    --color-text-primary: #1B1B1B;
    --color-text-secondary: #6E6E6E;
    --color-background: #F9FAFA;
    --color-background-tinted: rgba(26, 166, 160, 0.03);
    --color-card: #FFFFFF;
    --color-border: #E3E8E8;

    --border-radius: 12px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.06);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-card);
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-heading);
}

.highlight-teal {
    color: #1AA6A0;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
}

h6 {
    font-size: 0.9375rem;
    font-weight: 600;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Header */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 166, 160, 0.04) 0%, rgba(15, 81, 96, 0.03) 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.logo-hippo {
    color: #0F5160;
}

.logo-money {
    color: #1AA6A0;
}

/* Drawer - Mobile only */
.drawer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.5rem;
    color: var(--color-heading);
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

body.drawer-open .drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 85vw);
    z-index: 1001;
    background-color: var(--color-card);
    border-right: 1px solid var(--color-border);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 16px;
}

body.drawer-open .drawer {
    transform: translateX(0);
}

.drawer-close {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-heading);
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    gap: 4px;
}

.drawer-nav a {
    display: block;
    padding: 16px 20px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-heading);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
    background-color: var(--color-background-tinted);
    color: var(--color-accent);
}

/* Layout - Mobile First */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 72px 0;
}

/* Section Headers with Accent Underline */
section h2 {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 36px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(26, 166, 160, 0.4) 100%);
    border-radius: 2px;
}

/* Hero Section - Mobile First with Gradient */
#hero {
    padding: 56px 0 72px;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 166, 160, 0.05) 0%, rgba(15, 81, 96, 0.04) 100%);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

#hero h1 {
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    position: relative;
}

#hero .hero-subtext {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

#hero .hero-status {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    line-height: 1.5;
    margin-top: 24px;
}

/* Problem Section */
#problem {
    background-color: var(--color-background);
    margin-left: -20px;
    margin-right: -20px;
    padding: 72px 20px;
}

#problem h2 {
    padding-bottom: 16px;
    margin-bottom: 32px;
}

#problem p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

#problem p:last-of-type {
    margin-bottom: 0;
}

/* Solution Section */
#solution {
    background-color: var(--color-card);
}

#solution h2 {
    padding-bottom: 16px;
    margin-bottom: 36px;
}

/* Audience Section */
#audience {
    background-color: var(--color-background-tinted);
    margin-left: -20px;
    margin-right: -20px;
    padding: 72px 20px;
}

/* Differentiation Section */
#differentiation {
    background-color: var(--color-card);
}

#differentiation h2 {
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.diff-list {
    list-style: none;
    margin-bottom: 28px;
}

.diff-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.diff-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.25rem;
}

.closing-line {
    font-size: 1rem;
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.5;
}

/* Cards - Mobile First with Enhanced Styling */
.card {
    background-color: var(--color-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--color-heading);
}

.card h4 {
    margin-bottom: 12px;
    color: var(--color-heading);
}

.card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Footer */
#footer {
    padding: 72px 0 48px;
    background-color: var(--color-background);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

#footer .reach-us {
    margin-bottom: 40px;
}

#footer .reach-us h3 {
    font-size: 1.125rem;
    color: var(--color-heading);
    margin-bottom: 12px;
}

#footer .contact-email {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

#footer .contact-email a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .contact-email a:hover {
    color: #158B86;
    text-decoration: underline;
}

#footer .divider {
    margin-bottom: 32px;
}

#footer .logo {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

#footer .footer-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--color-border) 0%, transparent 100%);
    border: none;
    opacity: 0.7;
}

/* Buttons - Mobile First */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(26, 166, 160, 0.2);
}

.btn-primary:hover {
    background-color: #158B86;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 166, 160, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-heading);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(26, 166, 160, 0.02);
}

/* Tablet and Up (min-width: 640px) */
@media (min-width: 640px) {
    header {
        padding: 24px 32px;
    }

    header .logo {
        font-size: 2rem;
    }

    main {
        padding: 0 32px;
    }

    section {
        padding: 96px 0;
    }

    section h2 {
        padding-bottom: 20px;
        margin-bottom: 44px;
    }

    section h2::after {
        width: 56px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    #hero {
        padding: 80px 32px 96px;
        margin-left: -32px;
        margin-right: -32px;
    }

    #hero h1 {
        margin-bottom: 24px;
    }

    #hero .hero-subtext {
        font-size: 1.0625rem;
    }

    #hero .hero-status {
        font-size: 0.875rem;
        margin-top: 28px;
    }

    #problem {
        margin-left: -32px;
        margin-right: -32px;
        padding: 96px 32px;
    }

    #problem p {
        font-size: 1.0625rem;
    }

    #audience {
        margin-left: -32px;
        margin-right: -32px;
        padding: 96px 32px;
    }

    .card {
        padding: 28px;
    }

    .card p {
        font-size: 1rem;
    }

    .card-grid {
        gap: 22px;
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-list li {
        font-size: 1.0625rem;
    }

    .closing-line {
        font-size: 1.0625rem;
    }

    #footer {
        padding: 96px 32px 56px;
        margin-left: -32px;
        margin-right: -32px;
    }

    #footer .reach-us {
        margin-bottom: 48px;
    }

    #footer .reach-us h3 {
        font-size: 1.25rem;
    }

    #footer .contact-email {
        font-size: 1rem;
    }

    #footer .divider {
        margin-bottom: 40px;
    }

    #footer .logo {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    #footer .footer-description {
        font-size: 0.9375rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .drawer-toggle,
    .drawer-backdrop,
    .drawer {
        display: none !important;
    }
}

/* Desktop and Up (min-width: 1024px) */
@media (min-width: 1024px) {
    header {
        padding: 28px 48px;
    }

    main {
        padding: 0 48px;
    }

    section {
        padding: 140px 0;
    }

    section h2 {
        padding-bottom: 24px;
        margin-bottom: 52px;
    }

    section h2::after {
        width: 64px;
        height: 4px;
    }

    h1 {
        font-size: 3rem;
        letter-spacing: -0.025em;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.375rem;
    }

    #hero {
        padding: 100px 48px 140px;
        max-width: 800px;
        margin-left: -48px;
        margin-right: -48px;
    }

    #hero h1 {
        margin-bottom: 28px;
        max-width: 700px;
    }

    #hero .hero-subtext {
        font-size: 1.125rem;
        max-width: 680px;
        margin-bottom: 24px;
    }

    #hero .hero-status {
        margin-top: 32px;
    }

    #problem {
        max-width: 800px;
        margin-left: -48px;
        margin-right: -48px;
        padding: 140px 48px;
    }

    #problem h2 {
        margin-bottom: 40px;
    }

    #audience {
        margin-left: -48px;
        margin-right: -48px;
        padding: 140px 48px;
    }

    #differentiation {
        max-width: 800px;
    }

    .card {
        padding: 32px;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-card-hover);
        border-color: rgba(26, 166, 160, 0.3);
    }

    .card-grid {
        gap: 26px;
        grid-template-columns: repeat(3, 1fr);
    }

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

    #footer {
        padding: 112px 48px 64px;
        margin-left: -48px;
        margin-right: -48px;
    }

    #footer .reach-us {
        margin-bottom: 56px;
    }

    #footer .reach-us h3 {
        font-size: 1.375rem;
    }

    #footer .divider {
        margin-bottom: 48px;
    }

    .btn {
        padding: 14px 32px;
    }
}

/* Large Desktop (min-width: 1280px) */
@media (min-width: 1280px) {
    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.75rem;
    }

    section {
        padding: 160px 0;
    }

    #hero {
        padding: 120px 48px 160px;
    }

    #hero .hero-subtext {
        max-width: 720px;
    }

    #problem {
        padding: 160px 48px;
    }

    #audience {
        padding: 160px 48px;
    }

    #footer {
        padding: 128px 48px 72px;
    }
}
