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

:root {
    /* Primary Brand Colors (Soft Orange) - Matching App Theme */
    --primary: #fb923c;
    --primary-hover: #f97316;
    --primary-light: #fed7aa;
    --primary-muted: #fdba74;
    
    /* Semantic Status Colors */
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #facc15;
    --warning-light: #fef9c3;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Background & Surface Colors */
    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --bg-muted: #f5f5f5;
    --surface: #ffffff;
    --surface-hover: #fafafa;
    
    /* Border Colors */
    --border: #e5e5e5;
    --border-light: #f5f5f5;
    --border-strong: #d4d4d4;
    
    /* Text Colors */
    --text: #171717;
    --text-secondary: #737373;
    --text-muted: #a3a3a3;
    --text-inverse: #ffffff;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ensure minimum touch target size for mobile */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        min-height: 44px;
    }
    
    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

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

/* Responsive container padding and max-width */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

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

@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }
}

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 4px 6px -1px rgba(251, 146, 60, 0.3), 0 2px 4px -1px rgba(251, 146, 60, 0.2);
    color: var(--text-inverse);
    flex-shrink: 0;
}

.logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo-text-accent {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        display: block;
    }
    
    .nav-links a:not(.btn-primary) {
        font-size: 1rem;
    }
    
    .nav-links .btn-primary {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
}

@media (min-width: 1024px) {
    nav {
        padding: 1.25rem 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .logo-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    nav {
        padding: 1.5rem 0;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 1rem;
    }
    
    .logo-icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .btn-large {
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 50%, var(--primary-muted) 100%);
    color: var(--text-inverse);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--text-inverse);
    color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.hero .btn-primary:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero .btn-primary,
    .hero .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 7rem 0;
    }
    
    .hero h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
        margin-bottom: 3rem;
        max-width: 800px;
    }
    
    .hero-cta {
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .hero {
        padding: 8rem 0;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 900px;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-subtle);
}

.features h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .features {
        padding: 3rem 0;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .features {
        padding: 6rem 0;
    }
    
    .features h2 {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.625rem;
    }
}

@media (min-width: 1280px) {
    .features {
        padding: 7rem 0;
    }
    
    .features-grid {
        gap: 3rem;
    }
    
    .feature-card {
        padding: 3rem;
    }
    
    .feature-icon {
        font-size: 3.5rem;
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg);
}

.about h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 700;
}

.about p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.about-cta {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 0;
    }
}

@media (max-width: 640px) {
    .about {
        padding: 3rem 0;
    }
    
    .about p {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .about {
        padding: 6rem 0;
    }
    
    .about h2 {
        font-size: 3rem;
        margin-bottom: 2.5rem;
    }
    
    .about p {
        font-size: 1.25rem;
        max-width: 900px;
        margin-bottom: 3rem;
    }
}

@media (min-width: 1280px) {
    .about {
        padding: 7rem 0;
    }
    
    .about p {
        font-size: 1.375rem;
        max-width: 1000px;
    }
}

/* Footer */
footer {
    background: var(--text);
    color: var(--text-inverse);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    footer {
        padding: 2rem 0;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    footer {
        padding: 3rem 0;
    }
    
    footer .container {
        gap: 2rem;
    }
    
    .footer-links {
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    footer {
        padding: 3.5rem 0;
    }
    
    footer p {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 1rem;
    }
}

