/* PrediJuris - Theme & Styles */

/* === CSS Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === Theme Variables === */
:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 18%;
    --border: 0 0% 90%;
    --primary: 219 60% 15%;
    --primary-foreground: 0 0% 100%;
    --secondary: 44 55% 54%;
    --secondary-foreground: 219 60% 15%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 40%;
    --accent: 44 55% 54%;
    --accent-foreground: 219 60% 15%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --radius: 0rem;
    --font-sans: "Inter", sans-serif;
    --font-serif: "Playfair Display", serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === Selection === */
::selection {
    background: hsl(var(--secondary));
    color: hsl(var(--primary));
}

/* === Typography === */
.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

/* === Utility Colors === */
.bg-primary {
    background-color: hsl(var(--primary));
}

.bg-white {
    background-color: #fff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.text-white {
    color: #fff;
}

.text-primary {
    color: hsl(var(--primary));
}

.text-secondary {
    color: hsl(var(--secondary));
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

/* === Layout === */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-xl {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsla(var(--primary) / 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header .logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--secondary));
}

.site-header .logo-text {
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.site-header nav {
    display: none;
}

@media (min-width: 768px) {
    .site-header nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.site-header nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    transition: color 0.15s;
}

.site-header nav a:hover {
    color: #fff;
}

.site-header nav a.accent {
    color: hsl(var(--secondary));
}

.site-header nav a.accent:hover {
    color: #fff;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: hsl(var(--primary));
    color: #fff;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
}

.hero-section .noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-section .glow-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: hsla(var(--secondary) / 0.1);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-section .glow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: hsla(219 60% 25% / 0.2);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 2rem;
    border: 1px solid hsla(var(--secondary) / 0.3);
    background: hsla(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.hero-badge svg {
    width: 1rem;
    height: 1rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title .muted {
    color: #9ca3af;
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-note svg {
    width: 1rem;
    height: 1rem;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        display: block;
    }
}

.hero-image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(var(--primary) / 0.6), transparent, transparent);
    pointer-events: none;
}

.hero-image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.hero-image-caption-inner {
    background: hsla(var(--primary) / 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(var(--secondary) / 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-image-caption-inner svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--secondary));
    flex-shrink: 0;
}

.hero-image-caption-inner p {
    font-size: 0.875rem;
    color: #fff;
    font-weight: 500;
}

.hero-image-glow-1 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: hsla(var(--secondary) / 0.2);
    border-radius: 50%;
    filter: blur(16px);
    pointer-events: none;
}

.hero-image-glow-2 {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: hsla(219 60% 25% / 0.3);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

/* === CTA Form === */
.cta-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cta-form {
        flex-direction: row;
    }
}

.cta-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.15s;
}

.cta-form input[type="email"]::placeholder {
    color: #9ca3af;
}

.cta-form input[type="email"]:focus {
    box-shadow: 0 0 0 2px hsl(var(--secondary));
    border-color: transparent;
}

.cta-form button {
    padding: 1rem 2rem;
    background: hsl(var(--secondary));
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s;
}

.cta-form button:hover {
    opacity: 0.9;
}

.cta-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cta-form button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* === Problem Section === */
.problem-section {
    padding: 6rem 0;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.problem-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.problem-title {
    font-family: var(--font-serif);
    color: hsl(var(--primary));
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .problem-title {
        font-size: 3rem;
    }
}

.problem-text {
    font-size: 1.125rem;
    color: hsla(var(--foreground) / 0.8);
    line-height: 1.625;
}

.problem-text p {
    margin-bottom: 1.5rem;
}

.problem-text p:last-child {
    margin-bottom: 0;
}

.problem-text strong {
    color: hsl(var(--primary));
    font-weight: 600;
}

/* Teses Box */
.teses-box {
    position: relative;
    aspect-ratio: 1;
    background: #f9fafb;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.teses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tese-item {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tese-item span {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.tese-item svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tese-item svg.active {
    color: #16a34a;
}

.tese-item svg.inactive {
    color: #d1d5db;
}

.teses-quote {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    background: hsl(var(--primary));
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-width: 18rem;
}

.teses-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
}

/* === Solution Section === */
.solution-section {
    padding: 6rem 0;
    background: #f9fafb;
}

.solution-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.solution-header h2 {
    font-family: var(--font-serif);
    color: hsl(var(--primary));
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .solution-header h2 {
        font-size: 3rem;
    }
}

.solution-header p {
    font-size: 1.125rem;
    color: hsla(var(--foreground) / 0.8);
}

.features-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-card:hover {
    border-color: hsla(var(--secondary) / 0.5);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.feature-card .feature-icon {
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

.feature-card .feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.feature-card p {
    color: hsla(var(--foreground) / 0.7);
    line-height: 1.625;
}

/* === CTA Section === */
.cta-section {
    padding: 6rem 0;
    background: hsl(var(--primary));
    color: #fff;
    border-top: 4px solid hsl(var(--secondary));
}

.cta-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 3rem;
    }
}

.cta-section .cta-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
}

.cta-form-wrapper {
    max-width: 36rem;
    margin: 0 auto;
}

.cta-microcopy {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
}

/* === Trust Bar === */
.trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 640px) {
    .trust-bar {
        grid-template-columns: repeat(4, auto);
        gap: 1.5rem;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.trust-icon {
    font-size: 1rem;
    line-height: 1;
}

/* === How It Works Section === */
.how-it-works-section {
    padding: 6rem 0;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.how-it-works-section .solution-header h2 {
    font-family: var(--font-serif);
    color: hsl(var(--primary));
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .how-it-works-section .solution-header h2 {
        font-size: 3rem;
    }
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: #f9fafb;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.step-card:hover {
    border-color: hsla(var(--secondary) / 0.5);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--primary));
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.step-card .feature-icon {
    margin-bottom: 1.25rem;
    color: hsl(var(--secondary));
}

.step-card .feature-icon svg {
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
}

.step-card h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.step-card p {
    color: hsla(var(--foreground) / 0.7);
    line-height: 1.625;
    font-size: 0.9375rem;
}

/* === Testimonials Section === */
.testimonials-section {
    padding: 6rem 0;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.testimonials-section .solution-header h2 {
    font-family: var(--font-serif);
    color: hsl(var(--primary));
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-section .solution-header h2 {
        font-size: 3rem;
    }
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: #f9fafb;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #d1d5db;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.testimonial-card blockquote {
    margin: 0;
    flex: 1;
}

.testimonial-card blockquote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: hsl(var(--foreground));
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    font-size: 0.9375rem;
    color: hsl(var(--primary));
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* === FAQ Section === */
.faq-section {
    padding: 6rem 0;
    background: #f9fafb;
}

.faq-section .solution-header h2 {
    font-family: var(--font-serif);
    color: hsl(var(--primary));
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .faq-section .solution-header h2 {
        font-size: 3rem;
    }
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-bottom: none;
    background: #fff;
}

.accordion-item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
    cursor: pointer;
    list-style: none;
    transition: background 0.15s;
}

.accordion-trigger:hover {
    background: #f9fafb;
}

.accordion-trigger::-webkit-details-marker {
    display: none;
}

.accordion-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] > .accordion-trigger .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem 1.25rem;
}

.accordion-content p {
    font-size: 0.9375rem;
    color: hsla(var(--foreground) / 0.75);
    line-height: 1.7;
}

/* === Footer === */
.site-footer {
    background: hsl(var(--primary));
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        align-items: flex-start;
    }
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--secondary));
}

.footer-brand .footer-logo span {
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.footer-brand p {
    color: #9ca3af;
    max-width: 24rem;
    font-size: 0.875rem;
    line-height: 1.625;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        text-align: left;
    }
}

/* === SVG Icons inline === */
.icon {
    display: inline-block;
    vertical-align: middle;
}

/* === Toast / Success Message === */
.toast-message {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid hsla(var(--secondary) / 0.3);
    background: hsla(var(--secondary) / 0.15);
    color: hsl(var(--secondary));
    font-weight: 500;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease;
}

.toast-message.show {
    display: block;
}

.toast-message.error {
    border-color: hsla(var(--destructive) / 0.3);
    background: hsla(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Animations (simple CSS alternatives to framer-motion) === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1);
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
