/* ============================================
   Name: Simple
   Author: MevaSearch
   Colors: [Bg:#0f1115, Fg:#f1f5f9, Accent:#0ea5e9]
   ============================================ */

@font-face {
    font-family: 'Space Grotesk';
    src: url(/font/Space-Grotesk.ttf) format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

:root {
    
    color-scheme: dark;
    --background: #0f1115;
    --foreground: #f1f5f9;
    --card: #161a22;
    --card-hover: #1e242f;
    --muted: #64748b;
    --muted-background: #1e293b;
    --border: #2d3644;
    --primary: #0ea5e9;
    --primary-foreground: #ffffff;
    --success: #22c55e;
    --navbar-bg: rgba(15, 17, 21, 0.8);
    --grid-line: rgba(255, 255, 255, 0.03);
    --search-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}


:root[data-theme="black"] {
    color-scheme: dark;
    --background: #000000;
    --foreground: #ffffff;
    --card: #0a0a0a;
    --card-hover: #121212;
    --muted: #888888;
    --muted-background: #111111;
    --border: #1f1f1f;
    --primary: #ffffff;
    
    --primary-foreground: #000000;
    --navbar-bg: rgba(0, 0, 0, 0.85);
    --grid-line: rgba(255, 255, 255, 0.05);
    --search-shadow: 0 0 0 1px #222;
}


:root[data-theme="light"] {
    color-scheme: light;
    --background: #f8fafc;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-hover: #f1f5f9;
    --muted: #64748b;
    --muted-background: #f1f5f9;
    --border: #e2e8f0;
    --primary: #0ea5e9;
    --primary-foreground: #ffffff;
    --navbar-bg: rgba(248, 250, 252, 0.8);
    --grid-line: rgba(15, 23, 42, 0.04);
    --search-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}


.mobile-nav {
    position: fixed;
    top: 60px;
    
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    z-index: 99;

    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: 12px;
    transition: background 0.2s ease;
    border-bottom: none;
    
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: var(--muted-background);
    color: var(--primary);
}


.mobile-nav-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 100px;
    
    justify-content: center;
}


.mobile-nav a::after {
    content: '→';
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.2s;
}

.mobile-nav a:hover::after {
    opacity: 0.5;
    transform: translateX(0);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--foreground);
}


.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: 0 20px;
}

.search-container {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.logo-large {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, var(--foreground), var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    
    padding: 6px 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--search-shadow);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--foreground);
    font-size: 1.1rem;
    outline: none;
}

.search-icon {
    margin-left: 15px;
    color: var(--muted);
    width: 20px;
    height: 20px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--foreground);
    color: var(--background);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-outline {
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted-background);
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 0;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
}


.settings-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
    border-bottom: none;
}


.theme-pill-group {
    display: flex;
    background: var(--muted-background);
    padding: 4px;
    border-radius: 100px;
    gap: 4px;
}

.theme-pill {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.theme-pill.active {
    background: var(--card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}


.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}


@media (max-width: 768px) {
    .logo-large {
        font-size: 2.5rem;
    }

    .navbar-inner {
        height: 60px;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    
    .search-input-wrapper {
        border-radius: 24px;
    }
}


.hero-grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}