/* === PLSA Token Launch Toolkit === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e4e4ef;
    --text-dim: #7a7a8e;
    --accent: #14f195;
    --accent-dim: #14f19520;
    --purple: #9945ff;
    --purple-dim: #9945ff20;
    --gradient: linear-gradient(135deg, #14f195, #9945ff);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* === Background Effects === */
.grid-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(20, 241, 149, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 241, 149, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}
.glow-orb.green { background: #14f195; top: -200px; right: -100px; }
.glow-orb.purple { background: #9945ff; bottom: -200px; left: -100px; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

/* === Layout === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 24px;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-sub {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 48px;
}

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

.text-dim { color: var(--text-dim); }
.accent { color: var(--accent); }

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

/* === Navigation === */
nav {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo:hover { text-decoration: none; }
.logo-symbol { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--gradient);
    color: #0a0a0f;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(20, 241, 149, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-icon { font-size: 1.1em; }

/* === Hero === */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(20, 241, 149, 0.15);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: inline-flex;
}

.stat { text-align: center; }
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(20, 241, 149, 0); }
}

/* === Token Cards === */
.token-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.token-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
}
.token-card:hover {
    border-color: rgba(20, 241, 149, 0.2);
    transform: translateY(-2px);
}
.token-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.05), rgba(153, 69, 255, 0.05));
    border-color: rgba(20, 241, 149, 0.15);
}

.token-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.token-card h3 {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.token-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.token-value.accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.token-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.permission-banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 32px;
    background: var(--accent-dim);
    border: 1px solid rgba(20, 241, 149, 0.15);
    border-radius: 12px;
}
.permission-icon { font-size: 2rem; flex-shrink: 0; }
.permission-banner h4 {
    color: var(--accent);
    margin-bottom: 4px;
    font-size: 1rem;
}
.permission-banner p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* === Agent Mode Flow === */
.flow-diagram {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 48px;
}

.flow-step {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: border-color 0.2s;
}
.flow-step:hover { border-color: rgba(20, 241, 149, 0.2); }

.flow-number {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.flow-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.flow-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Agent Terminal Card */
.agent-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--accent);
}

.agent-card-body {
    padding: 24px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.terminal-line:last-child { margin-bottom: 0; }

.term-prompt { color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }
.term-text { color: var(--text-dim); font-size: 0.8rem; }

.typing {
    color: var(--text);
    position: relative;
}
.typing::after {
    content: '▋';
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.2s;
}
.why-card:hover { border-color: rgba(20, 241, 149, 0.2); }
.why-card h4 { margin-bottom: 8px; font-size: 1rem; }
.why-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* === Brand Assets === */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.brand-card:hover {
    border-color: rgba(20, 241, 149, 0.2);
    transform: translateY(-2px);
}

.brand-preview {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08080d;
    aspect-ratio: 1;
}
.brand-preview svg {
    width: 100%;
    height: 100%;
    max-width: 160px;
}

.brand-info {
    padding: 16px 20px;
}
.brand-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.brand-info p { font-size: 0.7rem; margin-bottom: 12px; }

/* Brand Guidelines */
.brand-guidelines {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}
.brand-guidelines h4 { margin-bottom: 20px; }

.color-swatches {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.swatch { display: flex; align-items: center; gap: 12px; }
.swatch-color {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.swatch .mono { font-size: 0.8rem; }
.swatch .text-dim { font-size: 0.75rem; }

/* === FAQ === */
.faq-list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }

.faq-chevron {
    font-size: 1.4rem;
    color: var(--text-dim);
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-item.open .faq-chevron {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.faq-answer ul {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 20px;
    margin: 8px 0;
}
.faq-answer li { margin-bottom: 4px; }
.faq-answer strong { color: var(--text); }

/* === CTA Section === */
.cta-section {
    padding-bottom: 60px;
}

.cta-box {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.05), rgba(153, 69, 255, 0.05));
    border: 1px solid var(--border);
    border-radius: 24px;
}
.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.cta-box p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Footer === */
footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.footer-left p { font-size: 0.85rem; margin-top: 4px; }
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-links a:hover { color: var(--text); }

.footer-disclaimer {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; padding: 20px 24px; }
    .stat-divider { display: none; }
    .nav-links { display: none; }
    nav { padding: 16px 20px; }
    .section h2 { font-size: 1.8rem; }

    .token-grid { grid-template-columns: 1fr; }
    .token-card.featured { grid-column: auto; }

    .flow-diagram { flex-direction: column; gap: 12px; }
    .flow-arrow { transform: rotate(90deg); justify-content: center; padding: 8px 0; }

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

    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
    .cta-box { padding: 40px 24px; }

    .color-swatches { flex-direction: column; gap: 16px; }
    .permission-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-badge { font-size: 0.6rem; padding: 6px 14px; }
    .brand-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; }
}

/* === Smooth Scrolling === */
html { scroll-behavior: smooth; }

/* === Selection === */
::selection {
    background: rgba(20, 241, 149, 0.2);
    color: var(--text);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
