/* ============================================
   eeeif.com — Meaning & Story Styles
   ============================================ */

:root {
    --bg-primary: #06060e;
    --bg-secondary: #0c0c18;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.07);

    --text-primary: #e4e4ec;
    --text-secondary: #8a8aa6;
    --text-muted: #555570;

    --accent-1: #7c3aed;
    --accent-2: #3b82f6;
    --accent-3: #06b6d4;

    --gradient-text: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
    --gradient-main: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.04));

    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.10);

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-serif: 'Noto Serif SC', 'Georgia', serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--accent-3);
    text-decoration: none;
}

.section-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.serif-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

.reveal-delay-4 {
    transition-delay: 0.48s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.06);
    pointer-events: none;
    z-index: 0;
}

.ring-1 {
    width: 520px;
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin-slow 80s linear infinite;
}

.ring-2 {
    width: 760px;
    height: 760px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(59, 130, 246, 0.04);
    animation: spin-slow 120s linear infinite reverse;
}

@keyframes spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-orb 14s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-orb 18s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 28px;
    animation: fadeInUp 1s ease-out;
}

.hero-title .tld {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.45em;
    vertical-align: baseline;
}

/* Letter color animation */
.letter {
    display: inline-block;
    transition: color 0.3s ease;
}

.e1 {
    color: #a78bfa;
}

.e2 {
    color: #818cf8;
}

.e3 {
    color: #60a5fa;
}

.i {
    color: #38bdf8;
}

.f {
    color: #34d399;
}

.letter:hover {
    transform: translateY(-4px);
    filter: brightness(1.3);
    transition: transform 0.2s ease, filter 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-meaning {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    animation: bounce-down 2.5s ease-in-out infinite;
}

.scroll-indicator .arrow {
    width: 14px;
    height: 14px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================
   MEANING SECTION
   ============================================ */
.meaning {
    padding: 120px 0 100px;
    position: relative;
}

.meaning-block {
    text-align: center;
    margin-bottom: 80px;
}

.meaning-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 2.2;
    max-width: 560px;
    margin: 0 auto;
}

.meaning-text em {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: normal;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2em;
}

.highlight-word {
    color: var(--text-primary);
    font-weight: 600;
}

/* Three E cards */
.letters-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.letter-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.letter-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

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

.letter-symbol {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.letter-word {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.letter-cn {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.letter-card p {
    font-family: var(--font-serif);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* IF block */
.if-block {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.if-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--glass-border);
}

.if-symbol {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    font-style: italic;
    line-height: 1;
}

.if-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2.2;
    max-width: 400px;
    margin: 0 auto;
}

.if-text em {
    color: var(--text-primary);
    font-style: italic;
}

.if-text strong {
    color: var(--text-primary);
    font-size: 1.15em;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.philosophy-text p {
    font-family: var(--font-serif);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 20px;
}

.quote-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    backdrop-filter: blur(12px);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.8;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.quote-text {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.quote-text em {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.15em;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values {
    padding: 100px 0;
}

.section-sub {
    font-family: var(--font-serif);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: -12px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition-smooth);
    cursor: default;
    overflow: hidden;
}

.value-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
}

.value-card:hover .value-accent {
    opacity: 1;
}

/* Accent colors per card */
[data-accent="violet"] .value-accent {
    background: linear-gradient(90deg, #a78bfa, #c084fc);
}

[data-accent="blue"] .value-accent {
    background: linear-gradient(90deg, #60a5fa, #818cf8);
}

[data-accent="orange"] .value-accent {
    background: linear-gradient(90deg, #fb923c, #f97316);
}

[data-accent="cyan"] .value-accent {
    background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

[data-accent="green"] .value-accent {
    background: linear-gradient(90deg, #34d399, #10b981);
}

[data-accent="pink"] .value-accent {
    background: linear-gradient(90deg, #f472b6, #ec4899);
}

[data-accent="violet"]:hover {
    box-shadow: 0 4px 40px rgba(167, 139, 250, 0.12);
}

[data-accent="blue"]:hover {
    box-shadow: 0 4px 40px rgba(96, 165, 250, 0.12);
}

[data-accent="orange"]:hover {
    box-shadow: 0 4px 40px rgba(251, 146, 60, 0.12);
}

[data-accent="cyan"]:hover {
    box-shadow: 0 4px 40px rgba(34, 211, 238, 0.12);
}

[data-accent="green"]:hover {
    box-shadow: 0 4px 40px rgba(52, 211, 153, 0.12);
}

[data-accent="pink"]:hover {
    box-shadow: 0 4px 40px rgba(244, 114, 182, 0.12);
}

.value-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.10);
}

.value-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.value-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.value-word {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.3;
}

.value-en {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: capitalize;
}

.value-desc {
    font-family: var(--font-serif);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    .meaning,
    .philosophy,
    .values {
        padding: 80px 0;
    }

    .letters-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}