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

:root {
    /* Colors */
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --accent: #ff6b35;
    --accent-hover: #e65a2b;
    --background: #ffffff;
    --foreground: #1a1a1a;
    --secondary: #f5f5f5;
    --muted: #6b7280;
    --border: #e5e7eb;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 5rem 0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

@media (min-width: 768px) {
    .nav-container {
        height: 5rem;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
}

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

@media (min-width: 768px) {
    .nav-logo {
        height: 3rem;
    }
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    color: var(--foreground);
    transition: color 0.2s;
}

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

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.nav-mobile.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

.nav-mobile-link {
    padding: 0.5rem 0;
    color: var(--foreground);
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    line-height: 1;
}

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

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

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

.btn-full {
    width: 100%;
}

.icon-arrow {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 5rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.95), rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.75));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 8rem 0;
    }
}

.hero-text {
    max-width: 48rem;
}

.hero-title {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 1.5rem;
}

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

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

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

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

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

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

.section-header {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

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

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
}

.text-white {
    color: white !important;
}

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

.mb-8 {
    margin-bottom: 2rem;
}

/* Cards */
.cards {
    display: grid;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

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

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

.card-hover:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    stroke: var(--accent);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--muted);
    line-height: 1.6;
}

/* Grid */
.grid-2 {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.solution-text {
    order: 2;
}

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

.solution-image {
    order: 1;
}

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

.text-lg {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.rounded-img {
    border-radius: var(--radius);
}

.shadow-lg {
    box-shadow: var(--shadow-xl);
}

/* Benefits */
.benefits-grid {
    display: grid;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

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

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    flex-shrink: 0;
    stroke: var(--accent);
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Steps */
.trust-content {
    max-width: 64rem;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contact */
.contact-wrapper {
    max-width: 64rem;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    stroke: var(--accent);
}

.contact-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.contact-link:hover {
    color: var(--accent);
}

.contact-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.contact-card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-card-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.check-icon {
    flex-shrink: 0;
    stroke: var(--accent);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    transform: translateY(200%);
    transition: transform 0.3s;
    z-index: 9999;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Legal Pages */
.legal-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--primary);
}

.legal-title {
    font-size: 2.5rem;
}

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

.legal-content {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .legal-content {
        padding: 4rem 0;
    }
}

.legal-wrapper {
    max-width: 48rem;
    margin: 0 auto;
}

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

.legal-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-subheading {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

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

.legal-section p strong {
    color: var(--foreground);
}

.legal-link {
    color: var(--accent);
    text-decoration: underline;
}

.legal-link:hover {
    color: var(--accent-hover);
}

.legal-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
    color: var(--muted);
    line-height: 1.75;
}

.legal-source {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-source p {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
