/* CSS Reset & Variables */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: rgba(22, 28, 45, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --color-accent: #3b82f6;
    --color-accent-glow: rgba(59, 130, 246, 0.25);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #10b981 100%);
    --gradient-text: linear-gradient(135deg, #a5b4fc 0%, #60a5fa 100%);

    --color-cal-easy: #ef4444;
    --color-high-eng: #f59e0b;
    --color-junior-eng: #10b981;
    --color-math-quiz: #3b82f6;
    --color-reflect: #8b5cf6;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 1px 1px 0 rgba(255, 255, 255, 0.05) inset;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Decorative Gradients */
.background-decor {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.background-decor::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(139, 92, 246, 0.05) 60%, rgba(0, 0, 0, 0) 100%);
    filter: blur(80px);
}

@keyframes float-bg {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(30px, 20px) rotate(180deg); }
    100% { transform: translate(0px, 0px) rotate(360deg); }
}

.animate-bg {
    animation: float-bg 20s infinite alternate ease-in-out;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
    padding: 50px 0 32px 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Policy Card Content */
.policy-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.policy-header-wrapper {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.policy-target-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
}

/* Policy Sections */
.policy-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.policy-section h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    border-left: 3px solid var(--color-accent);
    padding-left: 10px;
}

.policy-section p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* App List styling */
.app-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.app-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.app-list li:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.app-bullet-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Icons styling */
.cal-easy { background: linear-gradient(135deg, #ff6b6b, #ef4444); }
.high-eng { background: linear-gradient(135deg, #f59e0b, #d97706); }
.junior-eng { background: linear-gradient(135deg, #10b981, #059669); }
.math-quiz { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.reflect { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.app-list-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-list-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-list-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 1px;
}

/* Tables styling */
.info-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.info-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-table td {
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

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

.info-table td strong {
    color: var(--text-primary);
}

.info-table td small {
    color: var(--text-muted);
}

/* Third-Party Tools List */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.tool-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-name {
    font-weight: 600;
    color: var(--text-primary);
}

.tool-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.tool-link {
    font-size: 13px;
    color: var(--color-accent);
    text-decoration: none;
    align-self: flex-start;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tool-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Contact Window Styling */
.email-box {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 12px;
}

.email-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 8px;
    font-family: monospace;
}

.email-value {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    font-family: monospace;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.email-value:hover {
    color: white;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .policy-card {
        padding: 24px;
    }
    
    .app-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
}
