/* General Styles */
:root {
    --primary-green: #16a34a;
    --primary-dark-green: #15803d;
    --brand-dark: #111827;
    --text-regular: #374151;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --border-light: #e5e7eb;
    --card-background: #ffffff;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--card-background); color: var(--text-regular); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; left: 0.75rem; top: 0.75rem; width: auto; height: auto; padding: 0.5rem 0.75rem; background: var(--brand-dark); color: white; z-index: 9999; border-radius: 6px; }

/* Focus-visible for accessibility */
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.25);
    outline-offset: 3px;
}

/* Slight off-white background for more professional contrast */
body { background-color: #fbfdff; }

/* Animations */
.animate-on-load { animation: fadeInUp 0.8s 0.2s ease-out forwards; opacity: 0; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; transition-delay: var(--animation-delay, 0s); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Header & Navigation */
.header { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 50; padding: 1rem 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.75rem; font-weight: 800; color: var(--brand-dark); text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { text-decoration: none; color: var(--text-regular); font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-green); }
.login-button { background-color: var(--brand-dark); color: white !important; padding: 0.6rem 1.4rem; border-radius: 8px; text-decoration: none; font-weight: 500; transition: all 0.3s; }
.login-button:hover { background-color: #000; color: white !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0; z-index: 100; }
.hamburger-line { display: block; width: 25px; height: 3px; background-color: var(--brand-dark); margin: 5px 0; transition: all 0.3s ease-in-out; }

/* Hero Section */
.hero { text-align: center; padding: 7rem 0; background-color: #f0fdf4; border-bottom: 1px solid var(--border-light); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; color: var(--brand-dark); line-height: 1.2; margin-bottom: 1.5rem; }
.gradient-text { background: linear-gradient(to right, #22c55e, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .subtitle { font-size: 1.25rem; max-width: 650px; color: var(--text-light); margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; }
.button { text-decoration: none; padding: 0.9rem 2.2rem; font-weight: 600; border-radius: 8px; transition: transform 0.2s, box-shadow 0.2s; display: inline-block; border: 2px solid transparent; cursor: pointer; }
.button-primary { background-color: var(--primary-green); color: white; }
.button-primary:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(22, 163, 74, 0.2); }
.button-secondary { background-color: transparent; color: var(--primary-green); border-color: var(--primary-green); }
.button-secondary:hover { background-color: rgba(22, 163, 74, 0.05); transform: translateY(-3px); }

/* Enterprise CTA strip */
.enterprise-strip { background: linear-gradient(90deg, #f8fff9, #f0fdf4); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 1rem 0; }
.enterprise-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.enterprise-text strong { display: block; font-weight: 700; color: var(--brand-dark); }
.enterprise-text span { color: var(--text-light); display: block; }

/* Header scroll shadow for subtle depth */
.header.scrolled { box-shadow: 0 6px 18px rgba(2,6,23,0.08); }

/* Trusted By Section */
.trusted-by-section { padding: 3rem 0; background-color: #f0fdf4; }
.trusted-by-section .container { text-align: center; }
.trusted-by-section p { font-size: 0.8rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.1em; margin-bottom: 1.5rem; text-transform: uppercase; }
.logos { display: flex; justify-content: center; align-items: center; gap: clamp(1.5rem, 5vw, 3rem); flex-wrap: wrap; }
.logos span { font-size: 1.1rem; font-weight: 500; color: #9ca3af; filter: grayscale(100%); opacity: 0.7; }

/* General Section Styling */
.section { padding: 6rem 0; }
.bg-light { background-color: var(--background-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--brand-dark); margin: 0; padding: 0; line-height: 1.2; }
.section-header p { font-size: 1.125rem; max-width: 600px; margin: 0.75rem auto 0; color: var(--text-light); }
.grid { display: grid; gap: 2rem; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* How it works */
.step-card { background: var(--card-background); padding: 2.5rem 2rem; text-align: center; border-radius: 12px; border: 1px solid var(--border-light); box-shadow: 0 4px 6px rgba(0,0,0,0.03); }
.step-number { width: 50px; height: 50px; background-color: #e6f6f0; color: var(--primary-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 1.5rem; }
.step-card h3 { font-size: 1.25rem; color: var(--brand-dark); margin-bottom: 0.5rem; }

/* Features & Use Cases */
.feature-card, .use-case-card { background-color: var(--card-background); padding: 2.5rem 2rem; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--border-light); }
.feature-card:hover, .use-case-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.feature-card h3, .use-case-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--brand-dark); margin-top: 0; margin-bottom: 0.5rem; }
.icon-wrapper { background-color: #e6f6f0; color: var(--primary-green); width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-wrapper svg { width: 24px; height: 24px; }

/* Testimonials */
.bg-gradient-green { background-image: linear-gradient(to right, #16a34a, #10b981); color: white; }
.section-header.text-white p { color: #d1d5db; }
.testimonial-card { background-color: rgba(255, 255, 255, 0.08); padding: 2rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; }
.testimonial-card blockquote { margin: 0 0 1.5rem; font-style: italic; color: #d1d5db; flex-grow: 1; font-size: 1.1rem; }
.cite-wrapper { margin-top: auto; }
.stars { color: #facc15; margin-bottom: 0.75rem; }
.cite { display: flex; align-items: center; gap: 1rem; }
.cite img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); }
.cite-details { display: flex; flex-direction: column; }
.cite-details strong { font-weight: 600; color: white; font-style: normal; }
.cite-details span { font-size: 0.875rem; color: #a7f3d0; }

/* Pricing */
.pricing-grid { align-items: stretch; }
.pricing-card { background-color: var(--card-background); border: 1px solid var(--border-light); border-radius: 12px; padding: 2.5rem 2rem; text-align: center; display: flex; flex-direction: column; position: relative; box-shadow: 0 8px 24px rgba(22,163,74,0.08); transition: transform 0.3s, box-shadow 0.3s; overflow: visible; min-height: 360px; }
.pricing-card.popular { border: 2px solid var(--primary-green); transform: scale(1.05); z-index: 10; }
.popular-badge { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background-color: var(--primary-green); color: white; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px; }
.pricing-card h3 { font-size: 1.5rem; font-weight: 600; color: var(--brand-dark); margin-top: 0; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--brand-dark); margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.pricing-card ul li::before { content: '✓'; color: var(--primary-green); position: absolute; left: 0; }
.pricing-card .button { width: 100%; margin-top: auto; padding: 0.8rem 1.5rem; font-size: 1rem; }

/* Ensure buttons stay inside pricing card by making list scrollable if needed */
.pricing-card ul { margin: 1.5rem 0; }

/* Step cards (styled like feature cards on live site) */
.step-card {
    background: var(--card-background);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 18px 40px rgba(22,163,74,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    overflow: visible;
}
.step-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(22,163,74,0.18); }
.step-number {
    width: 64px;
    height: 64px;
    background-color: #e6f6f0;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.step-card h3 { font-size: 1.125rem; color: var(--brand-dark); margin: 0; }
.step-card p { color: var(--text-light); margin: 0.5rem 0 0; max-width: 18rem; }

/* Footer social icons */
.footer-social { display: flex; gap: 0.75rem; align-items: center; }
.social-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.04); color: #e6eef6; text-decoration: none; }
.social-icon:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* Contact */
.contact-form-container { max-width: 700px; margin: 0 auto; background-color: var(--card-background); padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.07); }
.contact-form-container form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* Phone group styles */
.phone-group { display: flex; gap: 0.5rem; align-items: center; }
.country-select { background: white; border: 1px solid var(--border-light); border-radius: 8px; padding: 0.45rem 0.5rem; font-size: 0.9rem; min-width: 120px; max-width: 160px; }
/* Make phone input take the remaining space and be more comfortable to type into */
#phone-input { flex: 1 1 auto; min-width: 0; padding-left: 0.85rem; }

/* Screen-reader only */
.sr-only { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.contact-form-container input, .contact-form-container textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border-light); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; box-sizing: border-box; }
.contact-form-container input:focus, .contact-form-container textarea:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2); }

/* Footer */
.footer { background-color: var(--brand-dark); color: #a0aec0; padding-top: 4rem; }
.footer-container { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-container { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-about .logo { color: white; }
.footer-about p { font-size: 0.9rem; max-width: 300px; }
.footer-links h4 { color: white; font-weight: 600; margin-top: 0; margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a { text-decoration: none; color: #a0aec0; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-green); }
.footer-bottom { border-top: 1px solid #4a5568; text-align: center; padding: 1.5rem 0; }
.footer-bottom p { margin: 0; font-size: 0.875rem; }

/* Mobile Responsive */
@media (max-width: 900px) {
    .grid-cols-3 { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: white; flex-direction: column; padding: 1rem; gap: 1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .main-nav.visible { display: flex; }
    .mobile-nav-toggle { display: block; }
    .header.nav-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .header.nav-open .hamburger-line:nth-child(2) { opacity: 0; }
    .header.nav-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}