/* CSS Variables */
:root {
    --bg-dark: #0a1a14;
    --bg-card: rgba(20, 45, 35, 0.6);
    --text-primary: #e8f5e9;
    --text-secondary: rgba(232, 245, 233, 0.7);
    --accent: #52b788;
    --accent-glow: rgba(82, 183, 136, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -ms-overflow-style: none;
}

.page-wrapper {
    position: relative;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(10, 26, 20, 0.95);
    border-bottom: 1px solid rgba(82, 183, 136, 0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #52b788;
    letter-spacing: -0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--text-primary);
    background: rgba(82, 183, 136, 0.2);
}

.lang-divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: #5fc794;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 60px 24px 50px;
    overflow: hidden;
}

/* Background Glows */
.bg-glow-1 {
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.2) 0%, rgba(45, 106, 79, 0.08) 25%, rgba(45, 106, 79, 0.02) 50%, transparent 70%);
    top: -300px;
    right: -350px;
}

.bg-glow-2 {
    width: 1100px;
    height: 1100px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.25) 0%, rgba(27, 67, 50, 0.1) 25%, rgba(27, 67, 50, 0.03) 50%, transparent 70%);
    top: 400px;
    left: -400px;
}

.bg-glow-3 {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.15) 0%, rgba(45, 106, 79, 0.06) 25%, rgba(45, 106, 79, 0.02) 50%, transparent 70%);
    top: 1000px;
    right: 50px;
}

.bg-glow-4 {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.2) 0%, rgba(27, 67, 50, 0.08) 25%, rgba(27, 67, 50, 0.02) 50%, transparent 70%);
    top: 1800px;
    left: -300px;
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

/* Hero Content */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.circle-container {
    position: relative;
    width: min(850px, 95vw, 70vh);
    height: min(850px, 95vw, 70vh);
    overflow: visible;
}

.outer-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.outer-ring-rotating {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: rotateOuter 20s linear infinite reverse;
}

@keyframes rotateOuter {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.circle-svg {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.progress-ring {
    stroke-dasharray: 578;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: center;
    animation: fillRing 2s ease-out forwards;
}

@keyframes fillRing {
    from { stroke-dashoffset: 578; }
    to { stroke-dashoffset: 0; }
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 75%;
}

.circle-text h1 {
    font-size: clamp(24px, min(4vw, 5vh), 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.circle-text .subtitle {
    font-size: clamp(14px, min(2vw, 2.5vh), 20px);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(82, 183, 136, 0.3);
}

.cta-button:hover {
    background: #5fc794;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(82, 183, 136, 0.4);
}

.cta-button.large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: clamp(12px, 1.5vh, 14px);
    animation: bounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
}

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

/* Sections */
.section {
    padding: 80px 24px;
    position: relative;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.bento-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
    z-index: 10;
}

/* Features Layout */
.features-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.features-layout .phone-mockup {
    position: sticky;
    top: 100px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 40px;
    padding: 6px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 100;
    isolation: isolate;
}

.features-layout .phone-frame {
    width: 320px;
    height: 690px;
    border-radius: 40px;
    padding: 6px;
}

.features-layout .phone-video {
    border-radius: 35px;
    object-fit: cover;
    object-position: top;
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px;
    background: var(--bg-dark);
    position: relative;
    z-index: 11;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(165px, auto);
    gap: 14px;
    max-width: 750px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(82, 183, 136, 0.15);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.bento-card:hover {
    border-color: rgba(82, 183, 136, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Card Sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}


/* Bento Content */
.bento-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(82, 183, 136, 0.15);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}

.bento-icon svg,
.bento-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(52%) sepia(32%) saturate(567%) hue-rotate(101deg) brightness(95%) contrast(87%) drop-shadow(0 0 5px rgba(82, 183, 136, 0.9));
}

.bento-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bento-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bento-large h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.bento-large p {
    font-size: 13px;
}

/* Bento Visuals */

/* Work Log Card */
.bento-wide {
    grid-column: span 4;
    grid-row: span 1;
}

.worklog-card {
    display: flex;
    gap: 40px;
    align-items: center;
}

.worklog-content {
    flex: 1;
}

.worklog-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.worklog-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.worklog-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.worklog-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(82, 183, 136, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(82, 183, 136, 0.1);
}

.worklog-entry.entry-active {
    background: rgba(82, 183, 136, 0.15);
    border-color: rgba(82, 183, 136, 0.3);
}

.entry-project {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.project-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #52b788;
}

.project-dot.dot-blue {
    background: #4a9ed4;
}

.project-dot.dot-purple {
    background: #9b7ed4;
}

.entry-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.entry-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #52b788;
    animation: recording 2s ease-in-out infinite;
}

@keyframes recording {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.entry-time.entry-running {
    color: #52b788;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', monospace;
}

/* Time Card */
.time-card {
    display: flex;
    flex-direction: column;
}

.time-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.time-header .bento-icon {
    margin-bottom: 0;
}

.time-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Calendar Visual */
.calendar-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.calendar-days span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-cell {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(82, 183, 136, 0.1);
}

.cal-cell.logged {
    background: rgba(82, 183, 136, 0.5);
}


.line-chart {
    width: calc(100% + 40px);
    height: 130px;
    margin-left: -20px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
}

.bento-visual {
    position: relative;
    flex: 1;
    min-height: 100px;
    margin: 20px -20px -20px -20px;
}

.chart-fill {
    fill: url(#chartGradient);
}

.chart-line {
    fill: none;
    stroke: #52b788;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Tags Visual */
.bento-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.tag-1 { background: #52b788; }
.tag-2 { background: #2d6a4f; }
.tag-3 { background: #1b4332; }



/* CTA Section */
.cta-section {
    padding: 80px 24px;
    text-align: center;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(45, 80, 60, 0.3);
    border: 2px solid rgba(100, 140, 120, 0.4);
    border-radius: 12px;
    color: rgba(180, 200, 190, 0.7);
}

.store-icon {
    opacity: 0.7;
    filter: brightness(0) saturate(100%) invert(52%) sepia(32%) saturate(567%) hue-rotate(101deg) brightness(95%) contrast(87%);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-soon {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

/* Footer */
.site-footer {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
    .features-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .features-layout .phone-mockup {
        position: relative;
        top: 0;
    }

    .bento-grid {
        max-width: 800px;
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-wide {
        grid-column: span 4;
    }

    .bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        max-width: 600px;
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-wide {
        grid-column: span 3;
    }

    .bento-large {
        grid-column: span 3;
        grid-row: span 1;
    }

    .circle-container {
        width: min(750px, 95vw, 70vh);
        height: min(750px, 95vw, 70vh);
    }
}

@media (max-width: 700px) {
    .bento-grid {
        max-width: 500px;
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .worklog-card {
        flex-direction: column;
        gap: 20px;
    }

    .worklog-content,
    .worklog-visual {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .phone-frame {
        width: 85px;
        height: 180px;
        border-radius: 14px;
        padding: 2px;
    }

    .phone-video {
        border-radius: 12px;
    }

    .site-header {
        padding: 12px 16px;
    }

    .header-cta span {
        display: none;
    }

    .header-cta {
        padding: 10px;
        border-radius: 50%;
    }

    .bento-grid {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bento-small {
        grid-column: span 1;
    }

    .bento-wide,
    .bento-large {
        grid-column: span 2;
    }

    .bento-card {
        padding: 14px;
    }

    .bento-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .bento-icon svg,
    .bento-icon img {
        width: 16px;
        height: 16px;
    }

    .bento-card h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .bento-card p {
        font-size: 13px;
        line-height: 1.4;
    }

    .time-card {
        min-height: auto;
    }

    .calendar-grid {
        gap: 10px;
    }

    .cal-cell {
        min-height: 20px;
    }

    .calendar-days span {
        font-size: 9px;
    }

    .worklog-entry {
        padding: 10px 12px;
    }

    .entry-project {
        font-size: 12px;
    }

    .entry-time {
        font-size: 12px;
    }

    .worklog-content h3 {
        font-size: 16px;
    }

    .worklog-content p {
        font-size: 13px;
    }


    .bento-card.bento-large:has(.line-chart) {
        min-height: 220px;
    }

    .line-chart {
        height: 150px !important;
    }

    .timer-display {
        font-size: 32px;
    }

    .bento-visual {
        margin-top: 12px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        width: calc(100% + 40px);
    }


    .bento-large h3 {
        font-size: 15px;
    }

    .bento-large p {
        font-size: 13px;
    }

    .time-hours {
        font-size: 32px;
    }

    .time-earnings {
        font-size: 24px;
    }

    .time-label,
    .time-sublabel {
        font-size: 12px;
    }

    .time-content {
        padding: 10px 0;
    }

    .section {
        padding: 60px 16px;
    }

    .section h2 {
        margin-bottom: 40px;
    }

    .circle-container {
        width: min(500px, 95vw);
        height: min(500px, 95vw);
    }

    .circle-text {
        width: 80%;
    }

    .circle-text h1 {
        font-size: clamp(20px, 6vw, 28px);
    }

    .circle-text .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .scroll-hint {
        bottom: 100px;
    }
}
