/* Hero Section */

/* ==============================================================
   HERO — Cinematic Edition
   ============================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9rem 5% 6rem;
    overflow: hidden;
    background: #07061a;
    color: #ffffff;
}

/* Animated aurora mesh base */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(90, 79, 243, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 15% 70%, rgba(37, 99, 235, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 60% 90%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: auroraShift 24s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auroraShift {
    0%, 100% { opacity: 1; transform: scale(1) translateY(0); }
    25%  { opacity: 0.88; transform: scale(1.03) translateY(-1%); }
    50%  { opacity: 1; transform: scale(0.97) translateY(1%); }
    75%  { opacity: 0.92; transform: scale(1.02) translateY(-0.5%); }
}

/* Noise texture overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* ---- Glows ---- */
.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(90, 79, 243, 0.22) 0%, rgba(37, 99, 235, 0.1) 45%, transparent 70%);
    top: -280px;
    left: -180px;
    animation: glowFloat1 16s ease-in-out infinite;
}

.glow-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(90, 79, 243, 0.08) 45%, transparent 70%);
    bottom: -200px;
    right: -180px;
    animation: glowFloat2 20s ease-in-out infinite;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    top: 35%;
    right: 8%;
    filter: blur(70px);
    animation: glowFloat3 13s ease-in-out infinite;
}

@keyframes glowFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(50px, -35px) scale(1.1); }
    66%  { transform: translate(-25px, 25px) scale(0.94); }
}

@keyframes glowFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-40px, 30px) scale(1.08); }
    66%  { transform: translate(30px, -20px) scale(0.96); }
}

@keyframes glowFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50%  { transform: translate(-25px, -20px) scale(1.15); opacity: 1; }
}

/* ---- Hero Content ---- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* ---- Badge ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(90, 79, 243, 0.15);
    border: 1px solid rgba(90, 79, 243, 0.35);
    color: #c4bfff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.48rem 1.4rem;
    border-radius: var(--radius-pill);
    margin-bottom: 2.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    animation: fadeSlideUp 0.8s ease both 0.1s;
    box-shadow: 0 0 20px rgba(90, 79, 243, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

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

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #22c55e; }
    50%  { opacity: 0.6; transform: scale(1.5); box-shadow: 0 0 14px #22c55e; }
}

/* ---- Headline ---- */
.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin-bottom: 1.6rem;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
    animation: fadeSlideUp 0.8s ease both 0.25s;
}

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

/* ---- Gradient Text ---- */
.gradient-text {
    background: var(--accent-gradient-text);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s linear infinite;
    display: inline;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Subtitle ---- */
.hero-subtitle {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.68);
    max-width: 640px;
    margin: 0 auto 2.8rem;
    line-height: 1.85;
    animation: fadeSlideUp 0.8s ease both 0.4s;
    letter-spacing: -0.01em;
}

/* ---- Domain Search ---- */
.domain-search {
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(90, 79, 243, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeSlideUp 0.8s ease both 0.55s;
    position: relative;
}

/* Glow ring on focus */
.domain-search:focus-within {
    box-shadow:
        0 12px 50px rgba(90, 79, 243, 0.22),
        0 0 0 3px rgba(90, 79, 243, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(90, 79, 243, 0.5);
    transform: translateY(-3px) scale(1.005);
}

.domain-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 1.4rem;
    gap: 0.7rem;
}

.domain-icon {
    font-size: 1.1rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.domain-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 1.2rem 0;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.domain-search input::placeholder {
    color: var(--text-placeholder);
    font-weight: 400;
}

.domain-search button {
    background: var(--accent-gradient);
    border: none;
    padding: 0 2.8rem;
    height: 60px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Shimmer effect on search button */
.domain-search button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.32s;
}

.domain-search button:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(90, 79, 243, 0.4);
}

.domain-search button:hover::after {
    opacity: 1;
}

.domain-search button:active {
    transform: scale(0.97);
}

/* ---- Domain Results ---- */
#domain-result,
#domain-result-2 {
    margin-top: 1.5rem;
    min-height: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeSlideUp 0.4s ease;
}

.result-available {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    color: #22c55e;
    backdrop-filter: blur(8px);
}

.result-taken {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    color: #f87171;
    backdrop-filter: blur(8px);
}

.result-checking {
    color: rgba(255,255,255,0.55);
    font-style: italic;
}

.btn-add-domain {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.65rem 1.8rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-add-domain:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(90, 79, 243, 0.45);
}

/* ---- Hero Domain Alt (already own) ---- */
.hero-domain-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
    animation: fadeSlideUp 0.8s ease both 0.65s;
}

.btn-skip-domain {
    background: none;
    border: none;
    color: #a89cff;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(168, 156, 255, 0.4);
    padding: 0;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.btn-skip-domain:hover {
    color: #c4bfff;
    text-decoration-color: rgba(196, 191, 255, 0.6);
}

/* ---- TLD Pills ---- */
.tld-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.8rem;
    animation: fadeSlideUp 0.8s ease both 0.75s;
}

.tld-pill {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 0.38rem 1.1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    cursor: default;
}

.tld-pill:hover {
    border-color: rgba(90, 79, 243, 0.5);
    background: rgba(90, 79, 243, 0.14);
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 15px rgba(90, 79, 243, 0.2);
}

.tld-pill strong {
    color: #a89cff;
    margin-left: 4px;
    font-weight: 700;
}

/* ---- Floating Shapes ---- */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: var(--radius-lg);
    animation: shapeFloat 22s ease-in-out infinite;
}

.shape-1 {
    width: 90px; height: 90px;
    top: 18%; left: 7%;
    border: 1px solid rgba(90, 79, 243, 0.18);
    box-shadow: 0 0 20px rgba(90, 79, 243, 0.1);
    transform: rotate(45deg);
    animation-duration: 24s;
    animation-delay: 0s;
}

.shape-2 {
    width: 55px; height: 55px;
    top: 62%; right: 10%;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.08);
    animation-duration: 18s;
    animation-delay: -4s;
}

.shape-3 {
    width: 65px; height: 65px;
    top: 28%; right: 16%;
    border: 1px solid rgba(14, 165, 233, 0.12);
    transform: rotate(30deg);
    animation-duration: 26s;
    animation-delay: -8s;
}

.shape-4 {
    width: 45px; height: 45px;
    bottom: 28%; left: 14%;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.08);
    animation-duration: 20s;
    animation-delay: -6s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
    25%  { transform: translateY(-22px) rotate(6deg); opacity: 0.8; }
    50%  { transform: translateY(10px) rotate(-4deg); opacity: 0.55; }
    75%  { transform: translateY(-16px) rotate(9deg); opacity: 0.9; }
}

/* ---- Particles ---- */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleRise linear infinite;
}

.hero-particle:nth-child(1)  { left: 8%;  width: 3px;  height: 3px;  background: rgba(90, 79, 243, 0.5);  animation-duration: 18s; animation-delay: 0s; }
.hero-particle:nth-child(2)  { left: 22%; width: 5px;  height: 5px;  background: rgba(37, 99, 235, 0.4);  animation-duration: 23s; animation-delay: -3s; }
.hero-particle:nth-child(3)  { left: 38%; width: 2px;  height: 2px;  background: rgba(90, 79, 243, 0.7);  animation-duration: 16s; animation-delay: -6s; }
.hero-particle:nth-child(4)  { left: 53%; width: 4px;  height: 4px;  background: rgba(37, 99, 235, 0.45); animation-duration: 21s; animation-delay: -2s; }
.hero-particle:nth-child(5)  { left: 68%; width: 3px;  height: 3px;  background: rgba(90, 79, 243, 0.35); animation-duration: 25s; animation-delay: -9s; }
.hero-particle:nth-child(6)  { left: 83%; width: 6px;  height: 6px;  background: rgba(37, 99, 235, 0.3);  animation-duration: 19s; animation-delay: -4s; }
.hero-particle:nth-child(7)  { left: 13%; width: 3px;  height: 3px;  background: rgba(255,255,255,0.22);  animation-duration: 22s; animation-delay: -11s; }
.hero-particle:nth-child(8)  { left: 57%; width: 4px;  height: 4px;  background: rgba(168,85,247,0.3);    animation-duration: 17s; animation-delay: -5s; }
.hero-particle:nth-child(9)  { left: 32%; width: 2px;  height: 2px;  background: rgba(90, 79, 243, 0.6);  animation-duration: 26s; animation-delay: -13s; }
.hero-particle:nth-child(10) { left: 76%; width: 5px;  height: 5px;  background: rgba(37, 99, 235, 0.35); animation-duration: 20s; animation-delay: -7s; }

@keyframes particleRise {
    0%   { transform: translateY(110vh) scale(0); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(-15vh) scale(1.2); opacity: 0; }
}
