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

:root {
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --accent-warm: #e8ddd4;
    --accent-soft: #d4c5b9;
    --accent-ink: #2c2c2c;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.5);
    --gradient-soft: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Handwriting canvas - the animated background */
.handwriting-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.handwriting {
    position: absolute;
    filter: drop-shadow(0 0 25px rgba(80, 80, 80, 0.4)) drop-shadow(0 0 50px rgba(60, 60, 60, 0.2));
    animation: drawIn 2s ease-out forwards, gentlePulse 6s ease-in-out 2s infinite;
}

/* Multiple handwriting instances at different positions, sizes, angles */
.hw-1 {
    width: 700px;
    top: -8%;
    left: -12%;
    transform: rotate(-10deg);
    opacity: 0.6;
    animation-delay: 0s;
}

.hw-2 {
    width: 800px;
    top: 35%;
    right: -18%;
    transform: rotate(15deg);
    opacity: 0.55;
    animation-delay: 0.4s;
}

.hw-3 {
    width: 650px;
    bottom: -5%;
    left: 8%;
    transform: rotate(-6deg);
    opacity: 0.5;
    animation-delay: 0.8s;
}

.hw-4 {
    width: 400px;
    top: 8%;
    right: 8%;
    transform: rotate(10deg);
    opacity: 0.65;
    animation-delay: 1.2s;
}

.hw-5 {
    width: 300px;
    bottom: 25%;
    right: 25%;
    transform: rotate(-22deg);
    opacity: 0.6;
    animation-delay: 1.6s;
}

.hw-6 {
    width: 550px;
    top: 20%;
    left: -15%;
    transform: rotate(4deg);
    opacity: 0.55;
    animation-delay: 2s;
}

@keyframes drawIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
        filter: drop-shadow(0 0 0 transparent);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 25px rgba(80, 80, 80, 0.4)) drop-shadow(0 0 50px rgba(60, 60, 60, 0.2));
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 25px rgba(80, 80, 80, 0.4)) drop-shadow(0 0 50px rgba(60, 60, 60, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(80, 80, 80, 0.5)) drop-shadow(0 0 70px rgba(60, 60, 60, 0.3));
    }
}

/* Subtle gradient overlay for depth */
.gradient-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(250, 250, 250, 0.4) 70%, rgba(250, 250, 250, 0.8) 100%);
    pointer-events: none;
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 320px;
}

/* Product title */
.product-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 50%, #2a2a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

/* Coming soon text */
.coming-soon {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    min-height: 2em;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Blinking cursor */
.cursor {
    color: var(--accent-ink);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iOS Coming Soon Badge */
.ios-badge {
    position: fixed;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 1s ease-out 1s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ios-badge:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ios-icon {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ios-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Subtle noise texture for premium feel */
.container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .hw-1,
    .hw-2,
    .hw-3,
    .hw-4,
    .hw-5,
    .hw-6 {
        display: none;
    }

    .hw-1,
    .hw-3 {
        display: block;
    }
}