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

:root {
    --peach: #FF9F0A;
    --peach-light: #FFB340;
    --peach-dark: #E88E00;
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, var(--bg-primary) 70%);
}

.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    z-index: 20;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 100%);
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-brand-logo {
    width: 28px;
    height: 28px;
}

.hero-brand span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-brand .hero-tagline {
    font-weight: 400;
    color: rgb(65, 65, 65);
}

.hero-download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-download-button:hover {
    border-color: var(--peach);
    color: var(--peach);
}

.hero-download-button .apple-logo {
    width: 16px;
    height: 16px;
}


/* Demo Area */
.demo-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.status-bar-left,
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menubar-icon {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

/* Icon + Timer Container */
.icon-timer-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 100px;
    height: 100px;
    cursor: grab;
    transition: transform 0.2s;
    flex-shrink: 0;
    animation: iconPulse 3s ease-in-out infinite;
}

.app-icon:hover {
    transform: scale(1.1);
    animation: none;
}

.app-icon:active {
    cursor: grabbing;
    animation: none;
}

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

.icon-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.icon-peach {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.icon-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    -webkit-mask-image: url('../assets/peach_mask.svg');
    mask-image: url('../assets/peach_mask.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.icon-progress {
    width: 100%;
    height: 100%;
    background-color: #FFBE98;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.demo-hint {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hint-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.6;
    }
}

.demo-hint.hidden {
    opacity: 0;
}

/* Drag Line */
.drag-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.drag-line line {
    stroke: var(--peach);
    stroke-width: 3;
    stroke-linecap: round;
}

.drag-line circle {
    fill: var(--peach);
    display: none;
}

.drag-line.active circle {
    display: block;
}

/* Info Panel */
.info-panel {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: var(--peach);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(255, 159, 10, 0.3);
    z-index: 15;
    transform: translateX(-50%);
}

.info-panel.visible {
    display: flex;
    animation: panelAppear 0.2s ease-out;
}

@keyframes panelAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.time-display {
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s;
}

.time-display.bounce {
    animation: timeBounce 0.3s ease-out;
}

@keyframes timeBounce {
    0% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.options-bar {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.option {
    padding: 2px 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.15s;
}

.option.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Active Timer Display */
.active-timer {
    display: none;
    align-items: center;
}

.active-timer.visible {
    display: flex;
}

.timer-countdown {
    font-size: 56px;
    font-weight: 600;
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 16px;
}

.hero-logo img {
    width: 200px;
    height: auto;
}

/* Hero Text */
.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--peach) 0%, var(--peach-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--peach);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--peach-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 159, 10, 0.3);
}

.apple-logo {
    width: 20px;
    height: 20px;
}

/* Section Styles */
.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--peach);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--bg-primary);
}

.cta-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 32px;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-section .cta-button {
    display: inline-flex;
}

/* Pricing Section */
.pricing {
    padding: 100px 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--peach);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--peach);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--peach);
}

.pricing-card .price-note {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--peach);
}

.pricing-button {
    display: block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pricing-button.primary {
    background: var(--peach);
    color: white;
}

.pricing-button.primary:hover {
    background: var(--peach-light);
}

.pricing-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.pricing-button.secondary:hover {
    border-color: var(--peach);
    color: var(--peach);
}

/* Footer */
.footer {
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo-svg {
    width: 28px;
    height: auto;
    border-radius: 0;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--peach);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .hero-bottom-bar {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        align-items: center;
    }

    .hero-brand {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-tagline {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .timer-countdown {
        font-size: 40px;
    }

    .status-bar {
        gap: 16px;
    }

    .menubar-icon {
        width: 20px;
        height: 20px;
    }

    .demo-hint {
        top: 130px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .feature-card {
        padding: 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }
}

/* Legal Pages */
.legal-page {
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
    background: var(--bg-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--peach);
    text-decoration: none;
    margin-bottom: 32px;
    font-size: 14px;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.legal-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
}

.legal-content section {
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.legal-content ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.legal-content ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--peach);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 32px;
    }

    .legal-page {
        padding: 40px 20px;
    }
}
