/* ExpiredDomains.network — shared brand styles.
   Colors, fonts, base reset, buttons, logo and form fields used by every page.
   Page-specific layout stays inside each page. */

/* ─────────────────────────────────────────────
   Tokens
   ───────────────────────────────────────────── */
:root {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --ink: #0A0A0B;
    --ink-2: #3F3F46;
    --muted: #71717A;
    --faint: #A1A1AA;
    --line: rgba(10, 10, 11, 0.08);
    --line-2: rgba(10, 10, 11, 0.14);
    --accent: #FFCC00;
    --accent-soft: #FFF6CC;
    --brand-red: #E5484D;
    --green: #30A46C;

    --dark: #0B0B0D;
    --dark-2: #141417;
    --dark-line: rgba(255, 255, 255, 0.08);
    --dark-muted: #8B8B93;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(10, 10, 11, 0.04), 0 0 0 1px var(--line);
    --shadow-md: 0 1px 2px rgba(10, 10, 11, 0.04), 0 8px 24px -8px rgba(10, 10, 11, 0.10), 0 0 0 1px var(--line);
    --shadow-lg: 0 2px 4px rgba(10, 10, 11, 0.04), 0 24px 64px -16px rgba(10, 10, 11, 0.18), 0 0 0 1px var(--line);

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    --container: 1160px;
    --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 40px; padding: 0 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em;
    white-space: nowrap;
    transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-dark {
    background: var(--ink); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(10, 10, 11, 0.2);
}
.btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-accent {
    background: var(--accent); color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 24px -8px rgba(255, 204, 0, 0.6);
}
.btn-lg { height: 48px; padding: 0 1.5rem; font-size: 0.97rem; }
.btn .arrow { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
    .btn-dark:hover { background: #26262B; }
    .btn-light:hover { box-shadow: var(--shadow-md); }
    .btn-accent:hover { background: #FFD633; }
    .btn:hover .arrow { transform: translateX(2px); }
}

/* ─────────────────────────────────────────────
   Logo
   ───────────────────────────────────────────── */
/* The two-line logo: wordmark + NETWORK pill with a red dot */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1; user-select: none; flex-shrink: 0; transition: transform 200ms var(--ease-out); }
.logo-main { font-family: var(--font); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: #0F172A; }
.logo-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 2.5px 8px;
    font-family: var(--font); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
    background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; border-radius: 6px;
    transition: background-color 200ms ease, color 200ms ease;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #E11D48; box-shadow: 0 0 6px rgba(225, 29, 72, 0.7); flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
    .logo:hover { transform: translateY(-1px); }
    .logo:hover .logo-pill { background: #E2E8F0; color: #0F172A; }
}

/* ─────────────────────────────────────────────
   Form fields and alerts
   ───────────────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.5rem; padding: 0.8rem 0.95rem; border-radius: var(--r-sm); font-size: 0.88rem; line-height: 1.5; }
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: #FEF2F2; color: #B42318; box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.22); }
.alert-success { background: #EEFBF3; color: #1F7A4D; box-shadow: inset 0 0 0 1px rgba(48, 164, 108, 0.25); }

.field label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.control { position: relative; }
.control > svg { position: absolute; left: 0.95rem; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; transition: color 150ms ease; }
.control input {
    width: 100%; height: 50px; padding: 0 0.95rem 0 2.7rem;
    font: inherit; font-size: 0.95rem; color: var(--ink);
    background: var(--bg); border: 0; border-radius: var(--r-sm);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow 150ms ease, background-color 150ms ease;
    -webkit-appearance: none; appearance: none;
}
.control input::placeholder { color: var(--faint); }
.control input:hover { box-shadow: inset 0 0 0 1px rgba(10, 10, 11, 0.24); }
.control input:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--accent-soft); }
.control:focus-within > svg { color: var(--ink); }
.control.has-toggle input { padding-right: 2.9rem; }
.pw-toggle {
    position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--muted);
    transition: color 150ms ease, background-color 150ms ease;
}
.pw-toggle svg { width: 17px; height: 17px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye { display: none; }
.pw-toggle.on .eye-off { display: block; }
@media (hover: hover) and (pointer: fine) { .pw-toggle:hover { color: var(--ink); background: rgba(10, 10, 11, 0.05); } }
.hint { margin-top: 0.35rem; font-size: 0.78rem; color: var(--muted); }
.req { color: var(--brand-red); margin-left: 2px; }
