/* ===== CSS Variables ===== */
:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary: #F1F5F9;
    --background: #FFFFFF;
    --foreground: #0F172A;
    --muted: #64748B;
    --muted-light: #94A3B8;
    --border: #E2E8F0;
    --success: #10B981;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

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

.nav {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--secondary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 5rem 0 8rem;
    background: linear-gradient(to bottom, var(--background), var(--secondary));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

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

@media (min-width: 768px) {
    .hero {
        padding: 8rem 0;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

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

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section {
        padding: 7rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* ===== Benefits Grid ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.benefit-text {
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Solution Section ===== */
.solution-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.solution-text {
    order: 2;
}

.solution-image {
    order: 1;
}

@media (min-width: 768px) {
    .solution-text {
        order: 1;
    }
    
    .solution-image {
        order: 2;
    }
}

.text-content {
    margin-bottom: 2rem;
}

.text-content p {
    margin-bottom: 1rem;
    color: var(--foreground);
    line-height: 1.7;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.check-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary);
}

.img-rounded {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* ===== Text Utilities ===== */
.text-center {
    text-align: center;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Pricing Section ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

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

.pricing-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-xl);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.pricing-desc {
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.price-period {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.pricing-feature svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary);
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-option {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
}

.contact-option-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.contact-option-content {
    flex: 1;
}

.contact-option-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.contact-option-desc {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.contact-info {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-info p {
    font-size: 0.875rem;
    color: var(--foreground);
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--background);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    font-size: 0.875rem;
}

.footer-link {
    color: var(--muted);
    transition: color 0.2s;
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: var(--muted);
    padding-top: 1rem;
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 4rem 0;
    min-height: calc(100vh - 16rem);
}

.legal-content {
    max-width: 56rem;
    margin: 0 auto;
}

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

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--foreground);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .legal-page {
        padding: 6rem 0;
    }
    
    .legal-title {
        font-size: 3rem;
    }
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--foreground);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: #EF4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}
