:root {
    /* Colors */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --surface: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-green { color: #4ade80; }
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-glow {
    background: var(--bg-darker);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: white;
    color: white;
}

/* Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, var(--bg-dark) 50%);
    position: relative;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Glass Card Visual */
.hero-visual {
    flex: 1;
    position: relative;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #eab308; }
.green { background: #22c55e; }

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    max-width: 90%;
}

.chat-bubble.ai {
    background: var(--gradient-main);
    color: white;
    border-bottom-left-radius: 2px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-bubble.user {
    background: rgba(255,255,255,0.1);
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Demo Section */
.demo-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); }

.demo-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Fake Browser */
.fake-browser {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    height: 600px;
    position: relative;
}

.browser-bar {
    background: #e2e8f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.url {
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #64748b;
    flex: 1;
}

.fake-content {
    padding: 30px;
    color: #334155;
}

.property-header {
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.property-header h3 { font-size: 1.5rem; }
.price-tag { font-size: 1.8rem; color: #ef4444; font-weight: bold; }

.property-image-placeholder {
    width: 100%;
    height: 250px;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.property-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.property-details li {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
}

/* AI Overlay Styles */
.ai-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 350px;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through when hidden/transparent */
}

/* Hook Bubble */
.ai-hook {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    gap: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fadeInUp 0.5s ease-out forwards;
    pointer-events: auto;
}

.ai-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.hook-content {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.5;
}

.hook-text .positive { color: #16a34a; font-weight: bold; background: #dcfce7; padding: 0 4px; }
.hook-text .negative { color: #64748b; text-decoration: underline; text-decoration-style: dotted; }

.hook-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.btn-action:hover { background: #2563eb; }

/* Chat Window */
.ai-chat-window {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    animation: scaleIn 0.3s ease-out forwards;
}

.chat-header {
    background: var(--gradient-main);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

/* Utility State Classes */
.hidden { display: none !important; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .fake-browser { height: auto; min-height: 500px; }
    .ai-overlay { width: 90%; right: 5%; bottom: 20px; }
}
