/* ===========================
   Variables
   =========================== */
:root {
    --bg: #F5F1EB;
    --bg-dark: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #666;
    --accent: #FECA57;
    
    --blue: #4A90D9;
    --pink: #FFB5C5;
    --yellow: #FECA57;
    --orange: #FF6B6B;
    --green: #26DE81;
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* ===========================
   Reset
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--yellow);
    color: var(--text);
}

/* ===========================
   Floating Elements
   =========================== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-item {
    position: absolute;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.float-item svg {
    width: 50px;
    height: 50px;
    opacity: 0.7;
}

.float-1 {
    top: 15%;
    left: 3%;
    color: var(--blue);
    animation-delay: 0s;
}

.float-2 {
    top: 8%;
    right: 8%;
    color: var(--green);
    animation-delay: -5s;
}

.float-3 {
    top: 45%;
    left: 2%;
    color: var(--orange);
    animation-delay: -10s;
}

.float-4 {
    top: 30%;
    right: 3%;
    font-size: 2rem;
    animation-delay: -3s;
}

.float-5 {
    top: 65%;
    right: 5%;
    font-size: 1.75rem;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 10px) rotate(3deg);
    }
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem;
}

.nav-link:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* ===========================
   Main
   =========================== */
.main {
    position: relative;
    z-index: 2;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 9rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
}

.title-serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.title-accent {
    color: var(--orange);
}

.letter {
    display: inline-block;
    transition: transform 0.3s ease;
}

.letter:hover {
    transform: translateY(-10px) rotate(-5deg);
    color: var(--yellow);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.9;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 6rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-num {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-light);
}

.section-text .highlight {
    color: var(--text);
    font-weight: 500;
}

/* Claude Badge */
.claude-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1) 0%, rgba(38, 222, 129, 0.1) 100%);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 100px;
}

.claude-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.claude-text strong {
    color: var(--blue);
    font-weight: 600;
}

/* ===========================
   Colors Section
   =========================== */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.color-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.color-card::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card-color);
    margin-bottom: 1rem;
}

.color-name {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--card-color);
    margin-bottom: 0.25rem;
}

.color-mood {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.color-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===========================
   Goals Section
   =========================== */
.goals-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.goal-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.goal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.goal-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.goal-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 100%);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    min-width: 40px;
}

/* ===========================
   Daily Photo Section
   =========================== */
.daily-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.daily-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.daily-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.daily-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--text);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 100px;
    z-index: 2;
}

.daily-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.daily-date {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ===========================
   Photo Section
   =========================== */
.section-photo {
    padding: 4rem 2rem;
    text-align: center;
}

.photo-container {
    max-width: 500px;
    margin: 0 auto 3rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.edward-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
}

.char {
    display: inline-block;
    transition: all 0.3s ease;
}

.char:hover {
    color: var(--orange);
    transform: translateY(-5px);
}

/* ===========================
   Marquee
   =========================== */
.marquee {
    padding: 1.5rem 0;
    background: var(--text);
    color: var(--bg);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   Rituals Section
   =========================== */
.rituals-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.ritual-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.ritual-item:hover {
    padding-left: 1rem;
    background: white;
}

.ritual-num {
    font-size: 0.85rem;
    color: var(--text-light);
    min-width: 30px;
}

.ritual-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
}

/* ===========================
   Token Section
   =========================== */
.token-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-value {
    transition: opacity 0.3s;
}

.stat-value:empty,
.stat-value:contains('Loading') {
    opacity: 0.5;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
}

.contract-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.contract-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.contract-code {
    display: block;
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    color: var(--orange);
    word-break: break-all;
    margin-bottom: 1rem;
    background: none;
}

.copy-btn {
    padding: 0.6rem 1.5rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--orange);
    color: var(--text);
}

/* ===========================
   Color Blocks
   =========================== */
.color-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.block {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    transition: all 0.3s;
}

.block:hover {
    filter: brightness(0.95);
}

.block-blue { background: var(--blue); color: white; }
.block-yellow { background: var(--yellow); }
.block-pink { background: var(--pink); }
.block-green { background: var(--green); }

/* ===========================
   CTA Section
   =========================== */
.section-cta {
    text-align: center;
    padding: 8rem 2rem;
}

.cta-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.5;
    margin-bottom: 3rem;
}

.char-anim {
    display: inline-block;
    transition: all 0.3s ease;
}

.char-anim:hover {
    transform: translateY(-5px);
}

.char-anim.highlight {
    color: var(--orange);
}

.cta-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--orange);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

/* ===========================
   Footer
   =========================== */
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 3rem;
    background: var(--text);
    color: var(--bg);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--bg);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-right {
    text-align: right;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 1rem 0;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    font-weight: 400;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .colors-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-card {
        padding: 1.5rem;
    }
    
    .claude-badge {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .token-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .color-blocks {
        grid-template-columns: 1fr 1fr;
    }
    
    .block {
        padding: 3rem 1.5rem;
    }
    
    .footer {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .float-item svg {
        width: 40px;
        height: 40px;
    }
    
    .float-4, .float-5 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .colors-grid {
        grid-template-columns: 1fr;
    }
    
    .color-blocks {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
