/* Root Variables */
:root {
    --primary-color: #46b7ef;
    --primary-dark: #3a9cd6;
    --primary-light: #6bc7f3;
    --secondary-color: #46b7ef;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --gradient-primary: linear-gradient(135deg, #46b7ef 0%, #3a9cd6 100%);
    --gradient-secondary: linear-gradient(135deg, #6bc7f3 0%, #46b7ef 100%);
    --gradient-accent: linear-gradient(135deg, #46b7ef 0%, #6bc7f3 100%);
}

/* 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, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    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-color);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 60px;
    width: auto;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #46b7ef 0%, #3a9cd6 50%, #6bc7f3 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(70, 183, 239, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(70, 183, 239, 0.1), rgba(58, 156, 214, 0.1));
    border: 1px solid rgba(70, 183, 239, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

.hero-cta {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(70, 183, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 183, 239, 0.4);
}

/* Problem Section */
.problem-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.problem-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.problem-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Laws Overview Section */
.laws-overview {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.law-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.law-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.law-card:hover::before {
    transform: scaleX(1);
}

.law-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.law-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.law-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.law-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Detailed Laws Section */
.detailed-laws {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.laws-detailed-container {
    max-width: 900px;
    margin: 0 auto;
}

.law-detailed {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.law-detailed:hover {
    box-shadow: var(--shadow-lg);
}

.law-detailed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: white;
    transition: background 0.3s ease;
}

.law-detailed-header:hover {
    background: var(--bg-tertiary);
}

.law-detailed-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.law-detailed-number {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 50px;
    text-align: center;
}

.law-detailed-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.law-detailed-header i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.law-detailed.active .law-detailed-header i {
    transform: rotate(180deg);
}

.law-detailed-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.law-detailed.active .law-detailed-content {
    max-height: 5000px;
}

.law-detailed-content > div {
    padding: 0 2rem 2rem;
}

.law-principle {
    background: linear-gradient(135deg, rgba(70, 183, 239, 0.05), rgba(58, 156, 214, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.law-principle strong {
    color: var(--primary-color);
    font-weight: 700;
}

.why-matters,
.examples,
.checklist {
    margin-bottom: 2rem;
}

.why-matters h4,
.examples h4,
.checklist h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.why-matters i {
    color: var(--warning-color);
}

.why-matters p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Examples */
.example-bad,
.example-good {
    margin-bottom: 1.5rem;
}

.example-bad h4 {
    color: var(--danger-color);
}

.example-bad i {
    color: var(--danger-color);
}

.example-good h4 {
    color: var(--success-color);
}

.example-good i {
    color: var(--success-color);
}

.example-box {
    background: var(--bg-tertiary);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    border-left: 4px solid;
}

.example-bad .example-box {
    border-color: var(--danger-color);
}

.example-good .example-box {
    border-color: var(--success-color);
}

.example-box p {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.example-reason {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

.example-reason strong {
    font-weight: 600;
    font-style: normal;
}

/* Checklist */
.checklist i.fa-tasks {
    color: var(--primary-color);
}

.checklist ul {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.checklist li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checklist li i.fa-check {
    color: var(--success-color);
}

.checklist li i.fa-times {
    color: var(--danger-color);
}

/* Mastery Section */
.mastery-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #46b7ef 0%, #3a9cd6 100%);
    color: white;
}

.mastery-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mastery-content h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.mastery-intro {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0.95;
    line-height: 1.8;
}

.mastery-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit p {
    opacity: 0.9;
    line-height: 1.6;
}

.next-steps {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.next-steps h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9375rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.final-message h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.final-message p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtext {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    height: 80px;
    width: auto;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .laws-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .mastery-content h2 {
        font-size: 2rem;
    }
    
    .law-detailed-content > div {
        padding: 0 1.5rem 1.5rem;
    }
    
    .law-detailed-header {
        padding: 1.25rem 1.5rem;
    }
    
    .steps-vertical {
        padding: 0 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .law-card {
        padding: 1.5rem;
    }
    
    .next-steps {
        padding: 2rem 1.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .law-detailed-content {
        max-height: none !important;
    }
}