/* ===================================
   FlowLaunch - Modern SaaS Template
   ================================== */

/* ===================================
   CSS 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===================================
   TYPOGRAPHY
   ================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

/* ===================================
   LAYOUT
   ================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* ===================================
   HEADER & NAVIGATION
   ================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6366f1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6366f1;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 24px;
    justify-content: center;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #111827;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   BUTTONS
   ================================== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background-color: #6366f1;
    color: #ffffff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   HERO SECTION
   ================================== */

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #111827 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-image {
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.placeholder-box {
    width: 80%;
    height: 80%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================
   SECTION HEADERS
   ================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

/* ===================================
   FEATURES SECTION
   ================================== */

.features {
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #6366f1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    color: #6366f1;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.feature-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===================================
   HOW IT WORKS SECTION
   ================================== */

.how-it-works {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 24px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step-description {
    color: #6b7280;
}

/* ===================================
   TESTIMONIALS SECTION
   ================================== */

.testimonials {
    background-color: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.author-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ===================================
   PRICING SECTION
   ================================== */

.pricing {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toggle-label.active {
    color: #6366f1;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: #6366f1;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #6366f1;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    padding: 40px;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pricing-card-featured {
    border-color: #6366f1;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-description {
    color: #6b7280;
    margin-bottom: 24px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 32px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}

.period {
    font-size: 1rem;
    color: #6b7280;
    margin-left: 4px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: #4b5563;
    font-size: 0.9375rem;
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
}

/* ===================================
   FAQ SECTION
   ================================== */

.faq {
    background-color: #ffffff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #6366f1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #6366f1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: #6b7280;
    line-height: 1.6;
}

/* ===================================
   CTA SECTION
   ================================== */

.cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta .btn-primary {
    background-color: #ffffff;
    color: #6366f1;
}

.cta .btn-primary:hover {
    background-color: #f3f4f6;
}

.cta .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===================================
   FOOTER
   ================================== */

.footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2937;
    border-radius: 8px;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===================================
   BACK TO TOP BUTTON
   ================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* ===================================
   PAGE HEADER (INTERNAL PAGES)
   ================================== */

.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
}

/* ===================================
   ABOUT PAGE STYLES
   ================================== */

.about-story {
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-image .image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-radius: 16px;
}

.mission-vision {
    background-color: #f9fafb;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mv-card {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.mv-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #6366f1;
}

.mv-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

.stats-section {
    background-color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-box {
    text-align: center;
    padding: 32px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
}

.team {
    background-color: #f9fafb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.member-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.member-role {
    font-size: 0.9375rem;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 12px;
}

.member-bio {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.values {
    background-color: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.value-card {
    padding: 32px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #111827;
}

.value-description {
    color: #6b7280;
    line-height: 1.6;
}

/* ===================================
   PRICING PAGE STYLES
   ================================== */

.pricing-page {
    padding-top: 0;
}

.feature-comparison {
    background-color: #f9fafb;
}

.comparison-table {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
}

.comparison-header {
    background-color: #f9fafb;
    font-weight: 600;
}

.comparison-cell {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-row:last-child .comparison-cell {
    border-bottom: none;
}

.comparison-category {
    padding: 16px 24px;
    background-color: #f3f4f6;
    font-weight: 600;
    color: #6366f1;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   CONTACT PAGE STYLES
   ================================== */

.contact-section {
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: #e0e7ff;
    color: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.contact-text p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.contact-hours {
    padding: 24px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-hours h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.contact-hours p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.support-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #6366f1;
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: #f9fafb;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 16px;
}

.map-section {
    padding: 0;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    text-align: center;
    color: #6b7280;
}

.map-overlay p {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.map-note {
    font-size: 0.875rem;
}
