* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #045eb1;
    --gray-50: #f9fafb;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.header-content {
    display: flex;
    height: 5rem;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3.5rem;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #eff6ff, var(--white));
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 3rem 0;
    }
}

.hero-text {
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-text {
        margin: 0;
    }
}

.hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--gray-600);
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-cta-text {
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.app-store-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 640px) {
    .app-store-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    background: #000;
    padding: 0.75rem 1.5rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn:active {
    transform: scale(0.95);
}

.app-store-btn svg {
    height: 2.5rem;
    width: 2.5rem;
    fill: white;
}

.app-store-btn-text {
    text-align: left;
}

.app-store-btn-text-top {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.app-store-btn-text-bottom {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.phone-mockup {
    position: relative;
    margin: 0 auto;
    display: flex;
    height: 500px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .phone-mockup {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .phone-mockup {
        margin: 0;
    }
}

.phone-img {
    position: relative;
    z-index: 10;
    height: 450px;
    width: 220px;
    transform: none;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

@media (min-width: 640px) {
    .phone-img {
        height: 550px;
        width: 270px;
    }
}

.phone-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.hero-decoration {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -10;
    transform: translateX(-50%);
    filter: blur(3rem);
    opacity: 0.3;
}

.hero-decoration div {
    aspect-ratio: 1155 / 678;
    width: 72.1875rem;
    background: linear-gradient(to top right, #bfdbfe, #93c5fd);
    clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%);
}

/* Features Section */
.features-section {
    background: var(--white);
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .features-section {
        padding: 5rem 0;
    }
}

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

.features-header {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 1024px) {
    .features-header {
        max-width: 56rem;
    }
}

.features-subtitle {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75rem;
    color: var(--primary-blue);
}

.features-title {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
}

@media (min-width: 640px) {
    .features-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .features-title {
        white-space: nowrap;
    }
}

.features-grid {
    margin-top: 4rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .features-grid {
        margin-top: 6rem;
        max-width: none;
    }
}

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

@media (min-width: 1024px) {
    .features-list {
        max-width: none;
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75rem;
    color: var(--gray-900);
}

.feature-icon-wrapper {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #eff6ff;
}

.feature-icon-wrapper svg {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--primary-blue);
}

.feature-description {
    margin-top: 1rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.75rem;
    color: var(--gray-600);
}

/* About Section */
.about-section {
    background: var(--gray-50);
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .about-section {
        padding: 5rem 0;
    }
}

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

.about-content {
    max-width: 48rem;
    margin: 0 auto;
}

.about-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
}

@media (min-width: 640px) {
    .about-title {
        font-size: 2.25rem;
    }
}

.about-text {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1rem;
    line-height: 1.75rem;
    color: var(--gray-600);
}

.about-text p {
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .contact-section {
        padding: 5rem 0;
    }
}

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

.contact-content {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
}

@media (min-width: 640px) {
    .contact-title {
        font-size: 2.25rem;
    }
}

.contact-text {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1rem;
    line-height: 1.75rem;
    color: var(--gray-600);
}

.contact-text p {
    margin: 0;
}

.contact-text a {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-button-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.contact-button {
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-blue);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.contact-button:hover {
    opacity: 0.9;
}

/* Content Section (for privacy and terms pages) */
.content-section {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.content-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.content-text ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--gray-600);
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text a {
    color: var(--primary-blue);
    text-decoration: none;
}

.content-text a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-blue);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

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

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

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-app-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-app-btn {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background: var(--white);
    padding: 0.375rem 0.625rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.footer-app-btn:hover {
    transform: scale(1.05);
}

.footer-app-btn svg {
    height: 1.5rem;
    width: 1.5rem;
    fill: black;
}

.footer-app-btn-text {
    text-align: left;
}

.footer-app-btn-text-top {
    font-size: 0.5625rem;
    line-height: 1.25;
    color: rgba(0, 0, 0, 0.7);
}

.footer-app-btn-text-bottom {
    font-size: 0.75rem;
    font-weight: 600;
    color: black;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 640px) {
    .header-content {
        height: 4rem;
    }
    
    .logo-img {
        height: 3rem;
    }
    
    nav {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .content-title {
        font-size: 2rem;
    }
}
