* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

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

header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 3rem;
}

.intro-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.model-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.model-card:hover::before {
    opacity: 1;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2);
}

.model-card.pbac {
    border-top: 3px solid #ff6b6b;
}

.model-card.rebac {
    border-top: 3px solid #feca57;
}

.model-card.xacml {
    border-top: 3px solid #48dbfb;
}

.model-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.model-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}

.pbac .model-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.rebac .model-icon {
    background: linear-gradient(135deg, #feca57, #f8b500);
}

.xacml .model-icon {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.model-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: #5eb3f6;
    font-size: 1.2rem;
}

.use-cases-section {
    margin-bottom: 3rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.use-case-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.use-case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.use-case-card.pbac h3 {
    color: #ff6b6b;
}

.use-case-card.rebac h3 {
    color: #feca57;
}

.use-case-card.xacml h3 {
    color: #48dbfb;
}

.use-case-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

.interactive-demo {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #f8fafc;
}

.scenario-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scenario-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(94, 179, 246, 0.1);
    color: #5eb3f6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid rgba(94, 179, 246, 0.3);
}

.scenario-btn:hover {
    background: rgba(94, 179, 246, 0.2);
    border-color: rgba(94, 179, 246, 0.5);
}

.scenario-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
    color: #1a1a2e;
    border: none;
}

.demo-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.demo-model {
    background: rgba(15, 52, 96, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-model h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #f8fafc;
}

.policy-display {
    background: rgba(10, 25, 47, 0.5);
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 180px;
    white-space: pre-line;
    color: #5eb3f6;
    border: 1px solid rgba(94, 179, 246, 0.2);
    transition: opacity 0.3s ease;
}

.access-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.access-granted {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.access-denied {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-table {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    font-weight: 600;
    color: #ff6b6b;
}

td {
    color: #cbd5e1;
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

.key-differences {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(254, 202, 87, 0.05));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-differences h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #f8fafc;
}

.difference-point {
    background: rgba(15, 52, 96, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.difference-point:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 107, 107, 0.03));
    border-left: 3px solid #ff6b6b;
}

.difference-point:nth-child(3) {
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.08), rgba(254, 202, 87, 0.03));
    border-left: 3px solid #feca57;
}

.difference-point:nth-child(4) {
    background: linear-gradient(135deg, rgba(94, 179, 246, 0.08), rgba(94, 179, 246, 0.03));
    border-left: 3px solid #5eb3f6;
}

.difference-point:nth-child(5) {
    background: linear-gradient(135deg, rgba(72, 219, 251, 0.08), rgba(72, 219, 251, 0.03));
    border-left: 3px solid #48dbfb;
}

.difference-point:nth-child(6) {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.03));
    border-left: 3px solid #34d399;
}

.difference-point h3 {
    margin-bottom: 0.5rem;
}

.difference-point:nth-child(2) h3 {
    color: #ff6b6b;
}

.difference-point:nth-child(3) h3 {
    color: #feca57;
}

.difference-point:nth-child(4) h3 {
    color: #5eb3f6;
}

.difference-point:nth-child(5) h3 {
    color: #48dbfb;
}

.difference-point:nth-child(6) h3 {
    color: #34d399;
}

.difference-point p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.difference-point p strong {
    color: #f8fafc;
    font-weight: 600;
}

.difference-point:hover {
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.difference-point:nth-child(2):hover {
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.2);
}

.difference-point:nth-child(3):hover {
    box-shadow: 0 5px 20px rgba(254, 202, 87, 0.2);
}

.difference-point:nth-child(4):hover {
    box-shadow: 0 5px 20px rgba(94, 179, 246, 0.2);
}

.difference-point:nth-child(5):hover {
    box-shadow: 0 5px 20px rgba(72, 219, 251, 0.2);
}

.difference-point:nth-child(6):hover {
    box-shadow: 0 5px 20px rgba(52, 211, 153, 0.2);
}

.recommendation {
    background: linear-gradient(135deg, rgba(94, 179, 246, 0.1), rgba(52, 211, 153, 0.1));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.decision-tree {
    background: rgba(10, 25, 47, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid rgba(94, 179, 246, 0.2);
}

.decision-tree h3 {
    color: #5eb3f6;
    margin-bottom: 1rem;
}

.decision-tree ul {
    list-style: none;
    padding-left: 1rem;
}

.decision-tree li {
    padding: 0.5rem 0;
    color: #cbd5e1;
}

.decision-tree li:before {
    content: "→ ";
    color: #feca57;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #64748b;
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .comparison-grid,
    .demo-content,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .scenario-selector {
        flex-direction: column;
    }
}
