/* =============================================
   Domain Landing Page — Elegant Dark Theme
   ============================================= */

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

:root {
    --bg:        #0a0a0f;
    --bg-card:   #111118;
    --bg-input:  #16161f;
    --border:    rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --gold:      #c9a84c;
    --gold-light:#e8c97a;
    --white:     #f0ede8;
    --muted:     #7a7888;
    --accent:    #4a6cf7;
    --success:   #22c55e;
    --error:     #ef4444;
    --radius:    12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Background effects ---- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74,108,247,0.07) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* ---- Header ---- */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 32px 24px 0;
}

.header__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
}

/* ---- Main layout ---- */
.main {
    position: relative;
    z-index: 5;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 64px 0 80px;
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success); }
    50%       { opacity: 0.6; box-shadow: 0 0 16px var(--success); }
}

.hero__domain {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--white) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-all;
}

.hero__tagline {
    font-size: 1.05rem;
    color: rgba(240,237,232,0.65);
    max-width: 500px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.75;
}

.hero__tagline strong {
    color: var(--gold-light);
    font-weight: 500;
}

.hero__tagline em {
    font-style: italic;
    color: var(--white);
}

/* ---- Features ---- */
.hero__features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

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

.feature__icon {
    color: var(--gold);
    font-size: 10px;
}

/* ---- CTA Button ---- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #a87c2a 100%);
    color: #0a0a0f;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all var(--transition);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 24px rgba(201,168,76,0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,168,76,0.45);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

/* ---- Form Section ---- */
.form-section {
    animation: fadeUp 0.7s 0.15s ease both;
}

.form-section__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 52px);
    position: relative;
    overflow: hidden;
}

.form-section__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.form-section__header {
    margin-bottom: 36px;
}

.form-section__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-section__sub {
    color: var(--muted);
    font-size: 14px;
}

/* ---- Alert ---- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
}

.alert--success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #86efac;
}

.alert--error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}

.alert__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert--success .alert__icon { background: rgba(34,197,94,0.2); }
.alert--error   .alert__icon { background: rgba(239,68,68,0.2); }

/* ---- Form ---- */
.form-row { display: flex; flex-direction: column; gap: 20px; }
.form-row--half { flex-direction: row; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(240,237,232,0.75);
    letter-spacing: 0.02em;
}

.required { color: var(--gold); }

.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-input::placeholder {
    color: rgba(122,120,136,0.6);
}

.form-input:focus {
    border-color: rgba(201,168,76,0.45);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.form-input:hover:not(:focus) {
    border-color: var(--border-hover);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
    margin-top: 4px;
}

/* ---- Submit ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #a87c2a 100%);
    color: #0a0a0f;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    padding: 14px 36px;
    border-radius: 100px;
    width: 100%;
    transition: all var(--transition);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(201,168,76,0.25);
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,168,76,0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 32px 24px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.footer strong {
    color: var(--gold-light);
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .form-row--half {
        flex-direction: column;
    }
    .hero__features {
        gap: 20px;
    }
    .hero {
        padding: 48px 0 60px;
    }
}

/* =============================================
   Redirect Popup
   ============================================= */

.redirect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: overlayIn 0.3s ease both;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.redirect-overlay--hide {
    animation: overlayOut 0.35s ease both;
}

@keyframes overlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.redirect-popup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popupIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.redirect-popup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.redirect-popup__icon {
    width: 52px;
    height: 52px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
    color: var(--gold-light);
}

.redirect-popup__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.redirect-popup__msg {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.redirect-popup__msg strong {
    color: var(--white);
}

.redirect-popup__url {
    display: inline-block;
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 24px;
    word-break: break-all;
    transition: color var(--transition);
}

.redirect-popup__url:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Progress bar */
.redirect-popup__bar-wrap {
    background: rgba(255,255,255,0.07);
    border-radius: 100px;
    height: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.redirect-popup__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 100px;
}

.redirect-popup__counter {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
}

.redirect-popup__counter strong {
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    min-width: 12px;
    display: inline-block;
}

/* Buttons */
.redirect-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redirect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
}

.redirect-btn--go {
    background: linear-gradient(135deg, var(--gold) 0%, #a87c2a 100%);
    color: #0a0a0f;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.redirect-btn--go:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.45);
}

.redirect-btn--cancel {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.redirect-btn--cancel:hover {
    border-color: var(--border-hover);
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

/* ── Anti-spam honeypot ── */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
