:root {
    --bg-main: #06090f;
    --bg-secondary: #0b1220;
    --card: #0f172a;
    --card-hover: #111c34;
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.4);
    --border: rgba(34, 197, 94, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 20%, #0b1220, #06090f);
    color: var(--text-main);
    scroll-behavior: smooth;
}

header {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(6, 9, 15, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    vertical-align: middle;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.lang-switch:hover {
    background: var(--card-hover);
    box-shadow: 0 0 10px var(--accent-glow);
}

.header-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: 0.3s;
    margin-right: 14px;
}

.header-button img {
    height: 24px;
    width: auto;
    display: block;
}

.header-button:hover {
    background: var(--card-hover);
    box-shadow: 0 0 10px var(--accent-glow);
}

section {
    padding: 120px 40px;
    max-width: 1100px;
    margin: auto;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent);
}

p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 197, 94, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
    color: #a7f3d0;
    border-color: rgba(167, 243, 208, 0.8);
}

.btn {
    margin-top: 30px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    color: black;
    font-weight: 600;
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    width: 100%;
    margin-top: 30px;
    justify-content: center;
}

.search-engine {
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-main);
    font-size: 16px;
}

.search-engine:focus,
.search-form input:focus,
.search-btn:focus {
    outline: 2px solid rgba(34, 197, 94, 0.6);
    outline-offset: 2px;
}

.search-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-main);
    font-size: 16px;
}

.search-btn {
    margin-top: 0;
    padding: 12px 24px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 0px transparent;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    background: var(--card-hover);
}

.card:hover::after {
    box-shadow: 0 0 20px var(--accent-glow);
}

.mirror-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.mirror-card {
    display: block;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mirror-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent);
    font-size: 18px;
}

.mirror-card:hover .mirror-icon,
.mirror-card:focus-visible .mirror-icon {
    background: rgba(34, 197, 94, 0.24);
}

.mirror-card:hover,
.mirror-card:focus-visible {
    transform: translateY(-2px);
    background: var(--card-hover);
    box-shadow: 0 0 24px var(--accent-glow);
    border-color: rgba(34, 197, 94, 0.35);
}

.mirror-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.mirror-url {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    word-break: break-all;
}

footer {
    text-align: center;
    padding: 40px;
    color: #475569;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}