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

/* Variables */
:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #2d2d2d;
    --color-text-muted: #6b6b6b;
    --color-accent: #7c5cff;
    --color-accent-hover: #5a3de6;
    --color-border: #e8e8e8;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 680px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background: url("/images/flower_path.webp") center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 70%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.scroll-hint {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

/* Notice */
.notice {
    background: linear-gradient(135deg, #f0edff 0%, #e8e4ff 100%);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.notice p {
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice strong {
    color: var(--color-accent);
}

/* Content blocks from markdown */
.prose p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose strong {
    color: var(--color-text);
    font-weight: 600;
}

.prose ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.prose li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.prose a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.prose a:hover {
    color: var(--color-accent-hover);
}

/* CTA Link */
.cta-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 0.875rem 2rem;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition:
        background 0.2s,
        transform 0.2s;
}

.cta-link:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
