:root {
    --bg-color: #050505;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --secondary-glow: rgba(0, 212, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --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-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/** Background Animations **/
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    transition: transform 15s ease-in-out;
    transform: translate(0, 0) scale(1);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary-glow);
    bottom: -200px;
    right: -100px;
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    z-index: -1;
}

/** Navigation **/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: #fff;
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

/** Hero Section **/
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80; /* Light green for privacy */
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.badge i {
    width: 16px;
    height: 16px;
}

.title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.title span {
    background: linear-gradient(90deg, #b882ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/** Search Component **/
.search-container {
    width: 100%;
    max-width: 740px;
    position: relative;
    margin-bottom: 40px;
    z-index: 10;
}

.mode-toggle {
    display: flex;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 20px;
    position: relative;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 26px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-btn i {
    width: 16px;
    height: 16px;
}

.toggle-btn.active {
    color: #fff;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 50%; /* approximate */
    background: rgba(255,255,255,0.1);
    border-radius: 26px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 4px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.05);
}

.search-icon {
    color: var(--text-muted);
    width: 22px;
    height: 22px;
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 16px;
    font-size: 18px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.search-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.action-btn i {
    width: 20px;
    height: 20px;
}

/** Features below search **/
.features {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.feature-icon i {
    width: 14px;
    height: 14px;
}

/** Results Section **/
.results-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.ai-answer-card {
    background: linear-gradient(145deg, rgba(30, 20, 50, 0.4), rgba(15, 20, 40, 0.4));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

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

.ai-icon {
    color: #b882ff;
    width: 20px;
    height: 20px;
}

.ai-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.ai-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.sources {
    display: flex;
    gap: 8px;
}

.source-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.result-item {
    margin-bottom: 32px;
}

.result-url {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-title {
    font-size: 20px;
    color: #8ab4f8; /* Google-like blue but slightly softer for dark mode */
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.result-title:hover {
    text-decoration: underline;
}

.result-desc {
    font-size: 14px;
    color: #c0c0c0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 42px; }
    .features { flex-direction: column; gap: 16px; align-items: center; }
    .navbar { padding: 16px 20px; }
}
