/* =========================================================
   AILEARNIST — ABOUT STYLES (mirrored from Sqlism about.css)
   Page tokens are namespaced --pg-* so they never override the
   sitewide tokens in /assets/css/base.css (navbar, footer,
   cookies and share keep the shared theme). Light/dark follow
   [data-theme] set by includes/theme_boot.php.
   ========================================================= */
:root {
  --pg-primary: #8b5cf6;
  --pg-primary-dark: #7c3aed;
  --pg-secondary: #22d3ee;
  --pg-accent: #8b5cf6;
  --pg-bg-primary: var(--bg);
  --pg-bg-secondary: var(--bg-alt);
  --pg-bg-card: var(--bg-card);
  --pg-text-primary: var(--text);
  --pg-text-secondary: var(--text-muted);
  --pg-border: var(--border);
  --pg-shadow: rgba(15, 23, 42, 0.1);
  --pg-shadow-lg: rgba(15, 23, 42, 0.15);
  --pg-navbar-bg: var(--bg-card);
  --pg-success: #10b981;
  --pg-error: #ef4444;
  --pg-warning: #f59e0b;
  --pg-info: #3b82f6;
}
[data-theme="dark"] {
  --pg-shadow: rgba(0, 0, 0, 0.3);
  --pg-shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15),
        rgba(34, 211, 238, 0.15));
    border-bottom: 2px solid var(--pg-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--pg-text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--pg-bg-card);
    border-radius: 50px;
    box-shadow: 0 4px 12px var(--pg-shadow);
    transition: transform 0.3s ease;
}

.hero-stats .stat:hover {
    transform: translateY(-4px);
}

.hero-stats .stat i {
    color: var(--pg-primary);
    font-size: 1.25rem;
}

.hero-stats .stat span {
    font-weight: 600;
    color: var(--pg-text-primary);
}

/* Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Mission Section */
.mission-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--pg-primary);
}

.mission-text p {
    color: var(--pg-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.mission-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--pg-bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--pg-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--pg-shadow-lg);
}

.stat-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--pg-text-secondary);
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--pg-primary);
}

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

.feature-card {
    background: var(--pg-bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--pg-border);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--pg-shadow-lg);
    border-color: var(--pg-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--pg-text-secondary);
}

/* Journey Timeline */
.journey-section {
    margin-bottom: 4rem;
}

.journey-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--pg-primary);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--pg-primary), var(--pg-secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--pg-primary);
    border: 3px solid var(--pg-bg-primary);
    border-radius: 50%;
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--pg-primary);
}

.timeline-item p {
    color: var(--pg-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .mission-section {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mission-visual {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }
}

/* ============================================================
   MODERN HERO (Studio v2) — appended override. Markup unchanged.
   Scoped by data-page so it overrides light + dark existing rules.
   Matches the dark glassy hero card used on quiz/challenge/interview.
   ============================================================ */
body[data-page="about"] .hero{
  position:relative; margin:clamp(16px,3vw,30px) clamp(12px,4vw,48px);
  padding:clamp(38px,6vw,68px) clamp(22px,4vw,48px);
  border-radius:24px; text-align:center; color:#fff; overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(120% 130% at 10% -10%, rgba(124,92,255,0.40), transparent 60%),
    radial-gradient(90% 120% at 100% 112%, rgba(34,211,238,0.22), transparent 58%),
    linear-gradient(158deg,#0c1024 0%,#0a0d1a 55%,#090b16 100%);
  box-shadow:0 40px 90px -42px rgba(10,13,26,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
body[data-page="about"] .hero::before{
  content:''; position:absolute; inset:0; opacity:1; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.03) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%,#000 42%,transparent 82%);
  mask-image:radial-gradient(120% 90% at 50% 0%,#000 42%,transparent 82%);
}
body[data-page="about"] .hero-content{position:relative;z-index:1;max-width:920px;margin:0 auto;}
body[data-page="about"] .hero h1{
  font-family:'Space Grotesk',sans-serif; font-size:clamp(2.1rem,5vw,4rem);
  font-weight:800; letter-spacing:-0.03em; line-height:1.07; color:#fff;
  -webkit-text-fill-color:#fff; background:none; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; text-align:center;
  animation:none;
}
body[data-page="about"] .hero h1 i{
  background:linear-gradient(120deg,#a3e635,#22d3ee 55%,#7c5cff);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  transform:translateX(-4px); padding-right:4px;
}
body[data-page="about"] .hero p,
body[data-page="about"] .hero .hero-para{
  font-family:'Space Grotesk',sans-serif; color:rgba(226,232,240,0.82);
  -webkit-text-fill-color:rgba(226,232,240,0.82); background:none; opacity:1;
  font-size:clamp(1rem,1.5vw,1.22rem); line-height:1.7; max-width:680px; margin:0 auto;
}
body[data-page="about"] .hero-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:30px;}
body[data-page="about"] .hero-stats .stat{
  display:inline-flex;align-items:center;gap:9px;padding:10px 18px;border-radius:999px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
body[data-page="about"] .hero-stats .stat:hover{transform:translateY(-2px);border-color:rgba(124,92,255,0.5);background:rgba(124,92,255,0.14);}
body[data-page="about"] .hero-stats .stat i{color:#a3e635;font-size:1rem;}
body[data-page="about"] .hero-stats .stat span{color:#e7eaf5;font-weight:600;font-size:0.92rem;}

/* ============================================================
   ailearnist STUDIO — MODERN CONTENT CARDS (v1)
   Purely additive — no selector renamed, no markup/JS touched.
   Refines stat-card / feature-card / timeline below the hero to
   feel like one product with the Studio-era hero above.
   ============================================================ */
body[data-page="about"] {
    --about-border: rgba(124, 92, 255, 0.16);
    --about-gradient: linear-gradient(120deg, #a3e635, #22d3ee 55%, #7c5cff);
}
[data-theme="dark"] body[data-page="about"] {
    --about-border: rgba(124, 92, 255, 0.26);
}

/* Section headings get the Studio eyebrow treatment */
body[data-page="about"] .mission-text h2,
body[data-page="about"] .features-section h2,
body[data-page="about"] .journey-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Mission stat cards */
body[data-page="about"] .stat-card {
    border-radius: 18px;
    border: 1px solid var(--about-border);
    box-shadow: 0 1px 2px var(--pg-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
body[data-page="about"] .stat-card:hover {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 16px 32px -18px var(--pg-shadow-lg);
}
body[data-page="about"] .stat-card i {
    background: var(--about-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Feature cards + icon badges */
body[data-page="about"] .feature-card {
    border-radius: 18px;
    border: 1px solid var(--about-border);
    box-shadow: 0 1px 2px var(--pg-shadow);
}
body[data-page="about"] .feature-card:hover {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 16px 32px -18px var(--pg-shadow-lg);
}
body[data-page="about"] .feature-icon {
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.14), rgba(34, 211, 238, 0.14), rgba(124, 92, 255, 0.14));
    border: 1px solid var(--about-border);
    border-radius: 14px;
}
body[data-page="about"] .feature-icon i {
    background: var(--about-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Journey timeline */
body[data-page="about"] .timeline::before {
    background: var(--about-gradient);
}
body[data-page="about"] .timeline-item::before {
    background: #22d3ee;
}
