@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

@font-face {
    font-family: "Geist";
    src: url("https://assets.codepen.io/605876/GeistVF.ttf") format("truetype");
}

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

:root {
    --size:       22px;
    --brand:      #3b82f6;
    --brand-2:    #2563eb;
    --accent:     #10b981;
    --accent-dim: rgba(16,185,129,0.15);
    --cyan:       #22d3ee;
    --text:       #e2e8f0;
    --muted:      #8b95a8;
    --border:     rgba(255,255,255,0.08);
    --surface:    rgba(255,255,255,0.04);
    --bg:         hsl(222 47% 7%);
}

html, * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
*:hover, *:focus { outline: none !important; }
::-webkit-scrollbar { display: none; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Dot-grid background ── */
.el {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: conic-gradient(from 180deg at 50% 70%,
        hsla(220,50%,98%,1) 0deg, #4d7cff 72deg, #2563eb 144deg,
        #1e40af 216deg, #3b82f6 288deg, hsla(220,50%,98%,1) 1turn);
    mask:
        radial-gradient(circle at 50% 50%, white 2px, transparent 2.5px) 50% 50% / var(--size) var(--size),
        url("https://assets.codepen.io/605876/noise-mask.png") 256px 50% / 256px 256px;
    mask-composite: intersect;
    animation: flicker 20s infinite linear;
    z-index: -2; opacity: 0.75;
}
@keyframes flicker { to { mask-position: 50% 50%, 0 50%; } }

body::after {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 35%, hsl(222 47% 4% / 0.65) 100%);
    z-index: -1; pointer-events: none;
}

/* ── Language switcher ── */
.lang-switch {
    position: fixed; top: 20px; right: 24px; z-index: 20;
    display: flex; align-items: center; gap: 2px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 3px;
}
.lang-btn {
    padding: 4px 10px; font-size: 0.72rem; font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border: none; border-radius: 5px; cursor: pointer;
    background: transparent; color: var(--muted);
    transition: background 0.2s, color 0.2s; letter-spacing: 0.05em;
}
.lang-btn.active { background: rgba(255,255,255,0.1); color: #fff; }
.lang-btn:hover:not(.active) { color: #cbd5e1; }

/* ── Mobile nav ── */
.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; right: 0;
    padding: 14px 1rem 10px; z-index: 100;
}
.mobile-nav-content { display: flex; justify-content: center; }
.mobile-nav-logo { height: 32px; /* logo_light.png = white logo (use without filter) */
    /* logo_dark.png  = dark logo (use with filter below) */
    filter: brightness(0) invert(1); opacity: 0.9; }

/* ── Desktop logo ── */
.logo { position: absolute; top: 24px; left: 24px; z-index: 10; }
.logo img { height: 34px; /* logo_light.png = white logo (use without filter) */
    /* logo_dark.png  = dark logo (use with filter below) */
    filter: brightness(0) invert(1); opacity: 0.9; }

/* ── Layout ── */
.container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: 5rem 1rem 4rem;
    text-align: center; max-width: 700px; margin: 0 auto;
    animation: fadeUp 0.65s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Owner pill ── */
.owner-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.28);
    border-radius: 999px;
    padding: 5px 13px;
    margin-bottom: 1.5rem;
}
.owner-pill::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); opacity: 0.8; flex-shrink: 0;
}
.owner-pill span {
    font-size: 0.75rem; font-weight: 400;
    color: rgba(186,218,255,0.8); letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Heading ── */
.main-heading {
    font-size: 2.1rem; font-weight: 300; color: #fff;
    margin-bottom: 0.85rem; letter-spacing: -0.02em; line-height: 1.2;
}
.underline { position: relative; display: inline-block; }
.underline::after {
    content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
    height: 2.5px; background: linear-gradient(90deg, var(--brand), var(--cyan));
    border-radius: 2px; transform: rotate(-0.8deg);
    width: 0; animation: drawLine 0.6s ease-out 0.4s forwards;
}
.underline::before {
    content: ''; position: absolute; bottom: -2px; left: 2px; right: -2px;
    height: 1.5px; background: rgba(59,130,246,0.25);
    border-radius: 1px; transform: rotate(0.4deg);
    width: 0; animation: drawLine 0.6s ease-out 0.55s forwards;
}
@keyframes drawLine { from { width: 0; } to { width: 100%; } }

.description {
    font-size: 0.92rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.4rem;
}

/* ── Domain badge ── */
.domain-frame {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.55rem 1.3rem;
    margin: 1rem auto;
    display: inline-flex; align-items: center; gap: 8px;
    backdrop-filter: blur(12px);
}
.domain-frame::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); opacity: 0.7; flex-shrink: 0;
}
.domain-name {
    color: #fff; font-weight: 300; font-size: 1.25rem;
    letter-spacing: 0.02em; font-family: 'Poppins', sans-serif;
}

.sub-description {
    font-size: 0.84rem; color: var(--muted); margin-bottom: 0.9rem; line-height: 1.5;
}

/* ── Info card ── */
.info-main-card {
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 14px;
    padding: 1.4rem 1.8rem;
    margin-bottom: 1.5rem;
    max-width: 480px; width: 100%;
    text-align: center;
    backdrop-filter: blur(16px);
    position: relative; overflow: hidden;
}
.info-main-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), var(--cyan), rgba(59,130,246,0.4), transparent);
}
.info-main-card p {
    font-size: 0.88rem; color: var(--muted); line-height: 1.6;
}
.info-main-card p a {
    color: var(--cyan); text-decoration: none; transition: color 0.2s;
}
.info-main-card p a:hover { color: #67e8f9; text-decoration: underline; }

/* ── Button with snake border ── */
.login-button-wrap {
    position: relative; display: inline-block;
    margin-bottom: 1.5rem; border-radius: 12px;
}
.login-button-wrap::after {
    content: ''; position: absolute; inset: 2px;
    border-radius: 10px; background: var(--bg); z-index: 1; pointer-events: none;
}
.btn-snake-canvas {
    position: absolute; inset: -2px;
    width: calc(100% + 4px); height: calc(100% + 4px);
    border-radius: 12px; z-index: 0; pointer-events: none;
    opacity: 0; transition: opacity 0.35s ease;
}
.login-button-wrap:hover .btn-snake-canvas { opacity: 1; }
.login-button {
    position: relative; z-index: 2;
    background: rgba(255,255,255,0.06);
    color: #fff; padding: 0.78rem 2.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; font-size: 0.95rem; font-weight: 400;
    cursor: pointer; text-decoration: none; display: block;
    transition: background 0.25s, border-color 0.25s;
    letter-spacing: 0.01em; font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.login-button-wrap:hover .login-button {
    background: rgba(255,255,255,0.09);
    border-color: transparent;
}

/* ── Contact card ── */
.info-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1rem 1.4rem;
    max-width: 460px; width: 100%;
    text-align: center; backdrop-filter: blur(16px);
    transition: border-color 0.2s;
}
.info-card:hover { border-color: rgba(255,255,255,0.13); }
.help-question {
    font-weight: 400; color: #f1f5f9;
    margin-bottom: 0.55rem; font-size: 0.9rem; display: block;
}
.contact-info { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.contact-item { font-size: 0.83rem; color: var(--muted); }
.contact-item a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: #67e8f9; }

/* ── Footer ── */
.copyright {
    position: fixed; bottom: 0; left: 0; right: 0;
    text-align: center; color: rgba(107,114,128,0.7);
    font-size: 0.72rem; padding: 0.6rem 1rem 0.75rem;
    display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.footer-links { display: flex; align-items: center; gap: 6px; }
.footer-links a {
    color: rgba(139,149,168,0.75); text-decoration: none;
    transition: color 0.2s; font-size: 0.72rem;
}
.footer-links a:hover { color: rgba(203,213,225,0.9); }
.sep { color: rgba(107,114,128,0.4); font-size: 0.65rem; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .logo { display: none; }
    .mobile-nav { display: block; }
    .container { padding-top: 5.5rem; padding-bottom: 3.5rem; }
    .main-heading { font-size: 1.75rem; }
    .info-main-card { padding: 1.1rem 1.2rem; }
    .domain-name { font-size: 1.1rem; }
    .info-card { max-width: 95%; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── Customer-specific additions ── */
.cta-heading {
    font-size: 1.5rem; font-weight: 300; color: #fff;
    margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.cta-text {
    font-size: 0.84rem; color: var(--muted); margin-bottom: 1.3rem;
}
.cta-text a {
    color: var(--cyan); text-decoration: none; transition: color 0.2s;
}
.cta-text a:hover { color: #67e8f9; text-decoration: underline; }

/* Domain dot: green for customer (active/registered), blue for internal */
.domain-frame::before { background: var(--accent); }

/* Underline: green for customer */
.underline::after {
    background: linear-gradient(90deg, var(--accent), #34d399);
}
.underline::before {
    background: rgba(16,185,129,0.25);
}

@media (max-width: 768px) {
    .cta-heading { font-size: 1.3rem; margin-bottom: 0.7rem; }
    .cta-text    { font-size: 0.8rem; }
}
