/* ============================
   CSS Variables (Design System)
   ============================ */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 0%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 0%);
    --primary: hsl(262, 83%, 58%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-light: hsl(262, 100%, 95%);
    --primary-glow: hsl(270, 91%, 75%);
    --secondary: hsl(270, 91%, 75%);
    --secondary-foreground: hsl(0, 0%, 0%);
    --muted: hsl(270, 60%, 98%);
    --muted-foreground: hsl(240, 5%, 45%);
    --border: hsl(270, 30%, 90%);
    --radius: 0.75rem;
    --gradient-primary: linear-gradient(135deg, hsl(262, 83%, 58%), hsl(270, 91%, 75%));
    --gradient-hero: linear-gradient(180deg, hsl(270, 60%, 98%), hsl(0, 0%, 100%));
    --gradient-dark: linear-gradient(135deg, hsl(0, 0%, 0%), hsl(262, 83%, 20%));
    --shadow-glow: 0 10px 60px -10px hsla(262, 83%, 58%, 0.4);
    --shadow-soft: 0 4px 20px -2px hsla(262, 30%, 50%, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* ============================
   Utility Classes
   ============================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: hsla(262, 83%, 58%, 0.9);
    transform: scale(1.05);
    box-shadow: 0 15px 40px -10px hsla(262, 83%, 58%, 0.5);
}

.btn-cta {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.btn-cta:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 20px 60px -15px hsla(262, 83%, 58%, 0.5);
}

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

.btn-white:hover {
    background-color: hsla(0, 0%, 100%, 0.9);
}

.btn-xl {
    padding: 2rem 3rem;
    font-size: 1.125rem;
}

.icon-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn:hover .icon-arrow {
    transform: translateX(4px);
}

/* ============================
   Animations
   ============================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* ============================
   Section Header
   ============================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.75rem);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, hsla(262, 83%, 58%, 0.1), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 0;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

.hero-content h1 span {
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted-foreground);
    line-height: 1.6;
}

.hero-tagline {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

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

.hero-image {
    position: relative;
    height: 400px;
}

@media (min-width: 1024px) {
    .hero-image {
        height: 600px;
    }
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-glow);
}

/* ============================
   Diagnosis Section
   ============================ */
.diagnosis {
    padding: 6rem 0;
    background: var(--background);
}

.diagnosis-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.diagnosis-content h2 {
    font-size: clamp(2rem, 5vw, 3.75rem);
}

.diagnosis-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .diagnosis-card {
        padding: 3rem;
    }
}

.diagnosis-card p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--muted-foreground);
}

.diagnosis-card strong {
    color: var(--foreground);
}

.diagnosis-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diagnosis-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.diagnosis-list .bullet {
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================
   Benefits Section
   ============================ */
.benefits {
    padding: 6rem 0;
    background: hsla(270, 60%, 98%, 0.3);
}

.benefits-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-glow);
}

.benefit-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.benefit-card p {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
}

.benefits-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.benefits-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================
   Method Section
   ============================ */
.method {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}

.method-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, hsla(262, 83%, 58%, 0.2), transparent 50%);
}

.method-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.method-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: hsla(262, 100%, 95%, 0.1);
    border: 1px solid hsla(270, 91%, 75%, 0.3);
    border-radius: 9999px;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.method-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: hsla(0, 0%, 100%, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 91%, 75%, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.method-card:hover {
    background: hsla(0, 0%, 100%, 0.1);
    transform: scale(1.05);
}

.method-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.method-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.method-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.method-content p {
    font-size: 1.125rem;
    opacity: 0.8;
    line-height: 1.6;
}

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

/* ============================
   Services Section
   ============================ */
.services {
    padding: 6rem 0;
    background: var(--background);
}

.services-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.service-item:hover .service-icon {
    background: var(--primary);
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-item:hover .service-icon svg {
    color: var(--primary-foreground);
}

.service-item p {
    font-size: 1.125rem;
    font-weight: 600;
}

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

/* ============================
   Testimonials Section
   ============================ */
.testimonials {
    padding: 6rem 0;
    background: hsla(270, 60%, 98%, 0.3);
}

.testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.3s ease;
}

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

.testimonial-card:hover {
    box-shadow: var(--shadow-glow);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.quote-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    fill: var(--primary);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.author-role {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

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

/* ============================
   About Section
   ============================ */
.about {
    padding: 6rem 0;
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-image {
    position: relative;
    height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    order: 2;
}

@media (min-width: 1024px) {
    .about-image {
        height: 500px;
        order: 1;
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(0, 0%, 100%, 0.8), transparent);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    order: 1;
}

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

.about-content h2 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.2;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

.about-text .highlight {
    color: var(--foreground);
    font-weight: 600;
}

/* ============================
   Final CTA Section
   ============================ */
.final-cta {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, hsla(262, 83%, 58%, 0.3), transparent 70%);
}

.final-cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTM2IDM0djItMnptMCAwdjJoLTJ2LTJoMnptLTIgMmgtMnYtMmgydjJ6bS0yLTJoLTJ2LTJoMnYyem0tMi0yaC0ydi0yaDJ2MnptLTItMmgtMnYtMmgydjJ6bS0yLTJoLTJ2LTJoMnYyem0tMi0yaC0ydi0yaDJ2MnoiLz48L2c+PC9nPjwvc3ZnPg==");
    opacity: 0.3;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.final-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(270, 91%, 75%, 0.2);
    border: 1px solid hsla(270, 91%, 75%, 0.3);
    border-radius: 9999px;
}

.final-cta-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--secondary);
}

.final-cta-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
}

.final-cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.2;
}

.final-cta-content > p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 700px;
}

.final-cta-note {
    font-size: 0.875rem;
    opacity: 0.6;
    padding-top: 1rem;
}

/* ============================
   Responsive Adjustments
   ============================ */
@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .btn-cta {
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-xl {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
}
