:root {
    --bg-color: #05050A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --accent-color: #7B61FF;
    --accent-hover: #9B84FF;
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.6;
    filter: saturate(1.2) contrast(1.1);
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 0 60px;
}

.badge {
    background: rgba(123, 97, 255, 0.15);
    color: #C0B0FF;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(123, 97, 255, 0.3);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 400;
}

.waitlist-form-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 60px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
    }
}

.email-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    backdrop-filter: blur(10px);
}

.email-input:focus {
    border-color: var(--accent-color);
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    white-space: nowrap;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.form-note {
    font-size: 0.8rem;
    color: #606070;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.demo-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 100px;
}

.editor-window {
    text-align: left;
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 1.1rem;
    overflow: visible;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(123, 97, 255, 0.15);
    background: rgba(15, 15, 25, 0.85);
}

.mac-window-controls {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.editor-content {
    padding: 24px;
    line-height: 1.8;
    text-align: left;
}

.editor-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.line-num {
    color: #404050;
    width: 30px;
    user-select: none;
}

.code-comment { color: #6A9955; }
.code-keyword { color: #569CD6; }
.code-var { color: #9CDCFE; }
.code-operator { color: #D4D4D4; }
.code-string { color: #CE9178; }

.typing-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.typed-text {
    color: #CE9178;
}

.error-char {
    color: #FF5F56;
    text-decoration: underline wavy #FF5F56;
    text-underline-offset: 4px;
    font-weight: bold;
}

.corrected-text {
    color: #CE9178;
    animation: flashGreen 0.5s ease-out;
}

@keyframes flashGreen {
    0% { color: #27C93F; text-shadow: 0 0 10px rgba(39, 201, 63, 0.5); }
    100% { color: #CE9178; text-shadow: none; }
}

.cursor {
    color: #A0A0B0;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.ai-popup {
    position: absolute;
    top: 130%;
    left: 0;
    background: rgba(30, 25, 45, 0.95);
    border: 1px solid rgba(123, 97, 255, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.popup-icon {
    font-size: 1.2rem;
}

.popup-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.popup-shortcut {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #A0A0B0;
    margin-left: 8px;
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 100px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 45, 0.5);
}

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

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: white;
}

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

footer {
    text-align: center;
    padding: 40px 0;
    color: #606070;
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}
